JSON use to map Hardware in MAX MSP

Hello gardeners.

To start, I want to emphasize that I have studied this thread extensively to try not to repost anything that has already been said. I have also followed this wiki to make sure I am doing things right.

I have a single Daisy Seed on a breadboard, plugged into my 2018 Macbook Pro and am trying to code it using Gen~ in MAX/MSP. I have run a ground wire from Analog Ground pin to the Digital Ground pin. I have a simple switch with Digital V Out going into the middle pin of the switch, and another pin going out from one side of the switch and into the Seed’s [ADC 3][A3/D18][25] pin with the intention of that pin reading an input of HIGH or LOW depending on the switch. I have no resistors on my breadboard.

In MAX I have the Oopsy object and a gen~ object. Into the gen~ I have MAX’s drumloop.wav playing constantly into IN 2 in the gen~ object. Inside gen~ I have [param sw1 @min 0 @max 1] going into the left input of a [gate] object. The right input of the [gate] object is being fed the drumloop.wav audio from outside the gen~ object. Then I have [gate] flowing into OUT 1.

My JSON file is:

{
“components”: {
“sw1”: {
“component”: “Switch”,
“pin”: 18
}
}
}

I use Oopsy to point at that JSON file, push RESET and BOOT on my Seed board and upload it successfully to the board.

Why then, do I not hear the drumloop.wav file when I flip the switch on the breadboard?

I have also never been able to get an analog knob reading to work in MAX either.

Ive been working on this since February. I feel like a frustrated idiot. Any help would be amazing. Thank you all.

Hey Daruma,

I’m really sorry to hear that it’s been frustrating. I’ll do my best to help out!

Here are some thoughts to get us started :slight_smile:

  1. Were you able to get sound out of your Seed? A simple patcher that’s just a sine-tone at 440 hz.

  2. I think you do need a pull-up resistor when using a switch.

  3. Also, I think you should use the digital pins for the switch (look, I used to use ADC for buttons and switches too in the past, so I fully understand)

  4. Are there any other lines in that JSON file?

  5. Finally, let’s start simple! I suggest getting the analog knob reading to work. Let’s twist a knob and change a pitch of a sine-tone. And then let’s move on to switches and audio file playback.

1 Like