Beginner need help with max/msp to create to create a soundboard with light sensor

Calvin Le's icon
Source Audio's icon

What did you research or found so far ?
And for what exactly is help needed ?
Basically a simple arduino and a max patch would do.
If you have arduino and sensors working,
it wouldn't be too difficult to make max patch to do
what you want.

Source Audio's icon

post the arduino sketch, than I can see what does it send.

Source Audio's icon

This is not arduino. It looks like midi controller board of some sort.
Do you connect the sensors to that board ?
If it is a midi controller with only 5 pol connectors
then it would send over midi cable some data.
Maybe controllers, maybe notes ...
Depends how it is programmed.
In that case one would have to know what is being sent for each sensor
and what you want to do with that.
Midi notes with velocity ?
Or trigger Audio File playback ?
And many other questions.
So I am afraid without details one can't provide much help.
-------
But at least one could go on with max part which
creates notes or sounds, and add the rest when infos
about board are available.

So please just post what exactly you want to play with 7 sensors.

Source Audio's icon

Yes this can work, but don't load the sound each time
it should play.It should be loaded at start, and then just triggered.
have a look here, You can finish the patch yourself:

Max Patch
Copy patch and select New From Clipboard in Max.


Source Audio's icon

The example you posted was just fine, so I thought it should be
no problem for you to connect the rest of the players or add some volume control etc.
It is only a guess that your midi controller sends CC# 0 -7
for 7 sensors on one midi channel.
It could be also CC# 0 on 7 midi channels ?
Who knows ?
Now tell me what do you not understand in the patch I posted ?
How to connect output of remaining sfplay objects to dac~ output ?

Source Audio's icon

You have to look at the objects and think a bit.
Loadmess is a loadmessage that sends set value to connected objects.
min 20, max 100 is message that sets the min and max range of the int box
that sets threshold for sound trigger. I left it there so that you can understand
that int box can have it's range limited to min and max values.
----------------
Ctlin has output, mtr has input and output.
Here are 3 options with explanation:

Read help file for objects that are in the patch.
That is the best way to learn.
--------
You should rather control all 7 tracks of mtr by single messages
to first (leftmost) inlet.

eriver's icon

The simplicity of your goal doesn't require max. You should have a look on this: https://www.bareconductive.com/shop/touch-board/