Home > english, Interaction, Programming > Harmony in Max / MSP with multiple brushes

Harmony in Max / MSP with multiple brushes

February 23rd, 2011 Leave a comment Go to comments

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:

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!

All JavaScript codes and Max / MSP patches are included in the example file. For the sound drawing patch you must install the Max MSP Fiddler object, before you can try experimenting.

Download Harmony with multible brushes

  1. No comments yet.
  1. No trackbacks yet.