Clamps Dictionary
make-sfz-synth
Function
(make-sfz-synth &rest args)
Return a closure for a polyphonic sfz synth, playable by MIDI using a midi-port as input.
Arguments
:port |
midi-port to connect to. Defaults to *default-midi-port*. |
:channel |
Integer in the range [1..16], denoting the MIDI channel of the synth. Defaults to *default-midi-channel*. |
:preset |
Keyword denoting the registered sfz preset to use. |
Note
The returned closure can be controlled by funcalling it with a keyword command and optional arguments. The following commands are implemented:
:connect &optional port &key channel preset - (Re)connect the synth to a port with channel and preset.
:disconnect - Disconnect the synth from any MIDI input, sending a note-off to all pending notes.
:channel <num> - Set the MIDI in channel of the synth to num being an Integer in the range [1..16].
:preset <preset> - Set the preset of the synth to the registered sfz preset to use.
:note-on <keynum> <velo> - Simulate a Note-on event of keynum and velo.
:note-off <keynum> - Simulate a Note-off event of keynum and velo.