Harmony in Max / MSP with multiple brushes
For my interactive installation "Sound Drawings" I decided to use the Harmony Drawing application. Meanwhile, the single brush version worked pretty stable with the sound analyzing. There was still one thing missing. It would be much cooler if more than one person can draw on the canvas. From the technical view it was very easy to implement. In the beginning I was a little bit scared if the realtime feedback is still good with more brushes at the same time. It was! For this reason here is the source code and my versions of testing for you.
I prepared a screencast for getting an idea and overview how it works. The principles are exactly the same as in the first version. The only exception is the "brushID" as a new parameter. Every API call uses this syntax:
apiFunctionName <em>brushID</em> parameter1 parameter2 ...
For creating a new brush use the command "setBrush brushID brushType". Afterwards you can use the API command "setCoordinate brushID xPos yPos" for drawing programmatically. If you want to use the mouse for drawing you must use the API command "selectBrush brushID" before drawing directly on the canvas!