Link Search Menu Expand Document

Address pattern tools

Four address-processing branches using Pattern applier, Pattern combiner, Spammer and Sweeper

A bank of lights or an array of sensors is easier to compose as a group than as a collection of individual connections. This score uses OSC parameters as stand-ins: distribute different values across the group, gather them into one list, or move a changing signal from destination to destination. No physical lights or sensors are required to inspect the pattern.

Try this on web

Download the example

Try it

Start playback and inspect the OSC device trees. The patterns select groups of parameters by name, so the same patch works unchanged when more matching parameters are added.

  • In the Pattern applier branch, change Arraygen’s expression from 10 * i to 5 * i. The spacing between the matched values halves while the destinations stay the same.
  • Change several parameters in the Pattern combiner group and watch the collected list: the group arrives as one input for further processing.
  • Switch Sweeper’s modes and watch which destination receives the signal at each step, then lengthen its interval to make each step last longer.
  • With an OSC receiver connected, observe Spammer’s regular transmissions. It sends on a dedicated thread instead of updating the device tree, so use the receiver, not the tree, to inspect this branch.

Pattern matches use lexicographical order: a name such as 10 comes before 2. Check the ordering before assigning spatial meaning to list positions, or a smooth sequence of values may visit destinations in an unexpected order.

Spammer is saved with a delay of about one millisecond. Its high message rate is intentional; do not direct it at an unprepared endpoint. Increase the delay before adapting it to a slower receiver.

Network settings

The ordinary OSC device listens on UDP 9997 and sends to 127.0.0.1:9996. OSC_fast listens on 10001 and sends to 127.0.0.1:10002; use a receiver on 10002 for the fast stream. The fast pattern matches eleven destinations, so account for messages to the whole group when choosing a transmission rate.

No external files are needed. See pattern matching for alternatives such as foo{0..9} and /{foo,bar}.