om-synth
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Om-synth] sustain pedal


From: Lars Luthman
Subject: Re: [Om-synth] sustain pedal
Date: Mon, 12 Dec 2005 23:23:14 +0100

On Mon, 2005-12-12 at 20:35 +0100, Atte André Jensen wrote:
> Strange. Sustain pedal doesn't seem to have any effect on om, although I 
> have a vague recollection of it working once-upon-a-time. At least I can 
> see that my computer recieves an event when I press the pedal, so I 
> asume the pedal is working (plus I tried with 3 diffrent ones). So What 
> I'd like to know:
> 
> 1) Is sustain pedal supposed to work out of the box, that is holding it 
> will sustain notes?

Don't know, I've never tested it.


> 2) If not, how to program something that works in the normal way?

It might be possible to use the "Slide" plugin with "Rise time" set to 0
and "Fall time" set to RIDICULOUSLY_LARGE_NUMBER * SUSTAIN_IS_ON, and
connect that to the gate output of the note module. Then the gate
(passed through the slide plugin) will stay open (almost) indefinitely
when the sustain pedal is pressed, and be identical to the gate from the
note module when it isn't.


> 3) More technically: Exactly what happens when a sustain pedal is 
> pressed? Is it a controller, and if so, which number?

It's controller number 64 (if you mean the hold pedal, there's something
called the sustenuto pedal too which is number 66). Values 0-63 is off,
64-127 is on, so I guess you need some sort of comparator plugin to
change that to a 0/1 signal if you use my idea above. Or maybe your
pedal does The Right Thing and sends 0 for off and 127 for on, in which
case you have a boolean signal already.

By the way, here's a good MIDI protocol reference:

 http://www.borg.com/~jglatt/tech/midispec.htm


-- 
Lars Luthman
PGP key:     http://www.d.kth.se/~d00-llu/pgp_key.php
Fingerprint: FCA7 C790 19B9 322D EB7A  E1B3 4371 4650 04C7 7E2E

Attachment: signature.asc
Description: This is a digitally signed message part


reply via email to

[Prev in Thread] Current Thread [Next in Thread]