swap

Calculate the range of rslider

This example shows how to get the range of a rslider object. The right outlet of rslider outputs the max value, and the left outlet outputs the min value. In order to calculate the range, simply subtract the min from the max. However, one thing you should not overlook is that the max value comes out of rslider before the min value (because it’s farther to the right).

Delay MIDI note messages

To delay a single bang message by a certain amount of time, use the delay object. But to delay any other sort of message—a number, a list, even a group of different messages—use pipe. The pipe object dynamically allocates memory as it stores more and more messages, so it can keep track of many messages at once, even if they arrived at different times and have different delay times (unlike the delay object, which can only hold one bang at a time).