PureData Midi Integration

Hey there,

I am currently working on a Pd Synthesizer running on the Daisy Seed. I am looking for ways to integrate Midi and i’m a bit confused which is the best solution. I figured, in my case it would be the most useful to use a 5-pin Midi jack or preferably a 3.5mm stereo jack for the Midi Input.

I’ve seen examples with Arduino boards, using an optocupler to create serial data from the Midi input and route it to the USART RX Input. Now my question: Is it possible to receive this data from the USART RX input in Pd? (and how do i set it up?) Will the data come in the standard Midi format and can be easily split into the individual data sets as with a notein object?

Should i rather go for the midi via USB connection? In my case it seems less compatible with the devices i was going to use the synthesizer with.

Or is there even another option which i haven’t stumbled across yet?

Thanks in advance for your help!

At the moment you do this by adding this bit to your json file:

  "defines": {
    "OOPSY_TARGET_HAS_MIDI_INPUT": 1
  },

Like here in the Field json for instance: json2daisy/src/json2daisy/resources/field.json at main · electro-smith/json2daisy · GitHub

The name is a bit confusing as it enables both INPUT and OUTPUT at the same time (we may change this name to be more clear in the future. also it’s a legacy from Oopsy compatibility as you can see).

Using USART1_RX and USART1_TX you can then have MIDI Input and Outpout over DIN/TRS connection.

When using USB MIDI it will currently only work on the micro-usb port of the Daisy. You will then need to route your MIDI via a computer or other USB Host device. Enabling USB MIDI is done separately in the plugdata compiler menu.

You can read more about it in the hvcc docs: Daisy | hvcc

1 Like

Hey, that’s great! Thanks so much for the quick help!

1 Like