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


    Mar 25 2020 | 11:40 am
    Hello everyone is my first time using MaxMsp I need help because I'm looking to create a soundboard that works with a light sensor or a touch sensor using max. Indeed I would like with my 7 light sensors or touch sensor that each of them launch a sound when it detects light. Thanks for your help in advance

    • Mar 25 2020 | 3:04 pm
      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.
    • Mar 25 2020 | 3:49 pm
      Thank you so much for your reply. Yes I have a arduino but I don't know how to make the max patch to do what I want. Here's a diagram of what I want to do.
    • Mar 25 2020 | 4:11 pm
      post the arduino sketch, than I can see what does it send.
    • Mar 25 2020 | 4:51 pm
      I don't have my arduino with me because of confinement in France but it's look like this and i know that my sensor give number between 0 and 128 if that can help you. I'm sorry if I'm not very understanding, it's because I'm a little confused.
    • Mar 26 2020 | 7:53 am
      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.
    • Mar 26 2020 | 12:38 pm
      I want every sensor to trigger a sound. Example: sensor 1 triggers a DO sound, sensor 2 triggers a RE sound, sensor 3 triggers a MI sound etc... I made this patch max I think it can work. Thank you so much for you help
    • Mar 26 2020 | 1:15 pm
      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:
    • Mar 26 2020 | 1:45 pm
      I don't understand how to finish the patch, sorry I'm not very good to do patch
    • Mar 26 2020 | 4:27 pm
      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 ?
    • Mar 26 2020 | 4:47 pm
      I don't understand what "min 20, max 100" and "loadmess 80" do. Another thing my friend gave me a patch with a mtr to record the simulation of the sensors but I don't know how to call it in the max patch you gave me. Thanks a lot for your answers it helps me a lot.
    • Mar 27 2020 | 9:02 am
      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.
    • Mar 27 2020 | 12:11 pm
      The simplicity of your goal doesn't require max. You should have a look on this: https://www.bareconductive.com/shop/touch-board/