# Sustain Pedal MIDI

**URL:** <https://uzu.lurk.org/t/sustain-pedal-midi/2607>\
**Category:** TidalCycles\
**Tags:** questions\
**Created:** [16 December 2020 23:32 UTC](https://uzu.lurk.org/t/sustain-pedal-midi/2607 "2020-12-16T23:32:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Elefou](https://uzu.lurk.org/user_avatar/uzu.lurk.org/elefou/32/1495_2.png) [@Elefou](https://uzu.lurk.org/u/Elefou)\
**Post date:** [16 December 2020 23:32 UTC](https://uzu.lurk.org/t/sustain-pedal-midi/2607/1 "2020-12-16T23:32:31Z")

</div>

Hi,  
I was trying the [MIDI in method](https://www.youtube.com/watch?v=biynSrFygUo&feature=youtu.be&t=650) from @eris and it's great but I'm trying to use a sustain pedal conected to my MIDI (Arturia Minilab Mkii) to latch the chords/notes and be able to code at the same time. Anybody knows how could I achieve that?

This is what I attempted with no success:

```haskell
p "midiintest" $ stack [fast 2 $ s "supervibe(3,8)" #legato 3.5 |+ n (cP "midiin")
                          #octave "[4|5]" #sustainpedal (cF 0 "64") ,
                        fast 2 $ s "supersaw(4,8)" #legato 3.5 |+ n (mono $ cP "midiin" - 24)] 

-- I renamed 'notes' to 'midiin'

```

I also tried with #sustain but no luck and I do get the message in post window of ' [0, 64, 127]  
[0, 64, 0]' when pressed and released.

Any help would be really appreciated 🙂
