|
|
|
|
Sustain Pedal
Modification
| |
|
|
|
| |
Sustain pedal is
nothing but an ON-OFF switch. A very simple hardware unit that sends a
signal when being pressed or released. It is being used to make some notes
sound longer. Clever interpretation of these ON-OFF events gives us many new
possibilities to expand the expressiveness of the instrument. |
|
 |
| |
|
|
|
The Code:
| |
|
|
|
| |
 |
|
Not
exactly the most 'elegant' piece of code... 8)
|
| |
|
|
|
This part of the code simply
obtains the sustain ONOFF event and the moment it occured. The ONOFF event is
the event of releasing the previously pressed pedal. The moment of this release
is stored in the variable 'sustainONOFF_ts' and can then be furtherly used to
analyse for how long the sustain has been pressed.
|