Get Scalemem

This object allows you to access current prevailing scale structure from the MPG network and choose pitches based on their position within the scale.


inlet 1 - An integer representing the index within the overall scale. The scale structure array contains values representing the number of half-steps above tonic for a given scale degree. When a 0 is received, the array looks for the value at the 0th position in the array, combines it with the tonic and outputs the proper MIDI pitch value. The array is mapped over a 10 octave (+5/-5) range so that register shifts are easily used. 0 represents the tonic as assigned by the network. Negative values access octaves below the tonic, while positive values access octaves above. The value of -999 is reserved to access a random value with the 10 octave range.

inlet 2 - Musical structure messages sent from the master via the musiclinks object. You will very likely get erroneous data until messages have been received here. The "scale_struct" and "tonic" messages are the only messages used.

outlet 1 - MIDI pitch value corresponding to a given index. The value is output as a floating point number, since fractional values are permitted by the MPG network. These can be used to easily control the pitch of a user-designed synthesizer.


Below you can see an image of the source patch for this abstraction. The included comments provide some insight into how the patch works.

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License