on init
declare polyphonic $new_id
end on
on note
ignore_event($EVENT_ID)
$new_id := play_note($EVENT_NOTE,$EVENT_VELOCITY,0,0)
end on
on
release
ignore_event($EVENT_ID)
wait(200000)
note_off($new_id)
end on
Delaying the release of each note by 200ms
See Also
fade_out()
play_note()
7.6. play_note()
play_note(
,
,
ple-offset>,)
Generate a note, i.e. generate a note-on message fol-
lowed by a note-off message
The note number to be generated (0 - 127)
Velocity of the generated note (1 - 127)
Sample offset in microseconds
Length of the generated note in microseconds
This parameter also accepts two special values:
-1: releasing the note which started the callback stops the sample
0: the entire sample is played
Remarks
• In DFD mode, the sample offset is dependent on the Sample Mod (S.Mod) value of the respec-
tive zones. Sample offset value greater than the zone's S.Mod setting will be ignored and no
sample offset will be applied.
• You can retrieve the event ID of the played note in a variable by writing:
variable> := play_note(, , , tion>)
Examples
on note
play_note($EVENT_NOTE+12,$EVENT_VELOCITY,0,-1)
Do'stlaringiz bilan baham: