Forums > MaxMSP

Gradual fade instead of split

Apr 19 2013 | 1:10 am

So I’m having trouble wording what I want to do, but here goes: I’m making a patch that takes input from my iPhone’s compass via c74. It plays a set of random notes in a certain key, with the key changing depending on the direction the compass is pointing (ie North is C, East G, etc). The compass spits out a float in the range 0-360, and right now I have 4 "split" objects, one for each direction (0-90, 91-180, etc) that parse the incoming number and route it to the proper key.

-- Pasted Max Patch, click to expand. --

This works ok, but I’d like to be able to have it gradually fade from key to key. So maybe, if North (0-90) is C, the 70-80 range starts pulling some notes from the next key, and 80-90 pulling even more notes, and then decreasing the frequency of C notes as it passes over 90. Hopefully that makes sense, anybody have any suggestions? Much appreciated.

Viewing 1 post (of 1 total)

Forums > MaxMSP