midi-message-case message {(type {form}*)}*
|
[Macro] |
Conditional evaluation based on MIDI message types. A clause is selected if
its type matches the MIDI type of message.
In addition to the message types enumnerated in
MIDI Messages, midi-message-case
supports the following abstract types:
- key-down
- A note-on with a velocity greater than zero. This filters out note-on messages with zero velocity, which MIDI interprets as note-off messages.
- key-up
- Either a note-off or a note-on with zero velocity.
- {t | else}
- A clause with either of these types is evaluated if none of the previous clauses matched the actual type of the message.
See Also:
Working with Algorithms in Real-Time
Last Modified: 5-Mar-1998