The spray object takes numerically indexed input values and lists and outputs them to corresponding outlets. This can be very useful for managing MIDI style input, creating custom state management solutions for storing and recalling parameters, and much more.
Spray is a great way to route MIDI input data.
This patch shows three different ways to parse MIDI control data:
This patch converts MIDI notes to bangs:
The default behavior for spray is to use the the first number as the outlet number, and one or more values that follow are sent out that outlet and those to its right, in right-to-left order. Spray also has a "list mode", which causes the entire list following the first number to be send out the corresponding outlet. This is necessary when sending many multi-element commands, such as those used to control most jitter objects. This patch uses the "list mode" to send commands to an openGL scene and also shows how this can be useful for controlling remote clients:
(please list things that you believe to be errors or omissions from the existing refpage)