Csound Csound-dev Csound-tekno Search About

[Csnd] daisy and midi

Date2025-07-19 15:57
Fromthorin kerr
Subject[Csnd] daisy and midi
Hi all,

I'm having trouble getting the Midi example working on a Daisy Pod. 
I can get the Generative example working fine.
However, while the midi example compiles and flashes fine. It just doesn't make any sound. 
I think perhaps it's expecting midi to come from a different pin? From what I can see, the Pod midi input is on D14. I can't decipher the code well enough to see if it's expecting something different.

Any hints, or suggestions on how I can debug? 

Thorin


Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2025-07-19 19:30
FromAman Jagwani
SubjectRe: [Csnd] daisy and midi
Hi Thorin, 

Are you trying to use MIDI over USB, connected directly to the Daisy Seed on the Pod or are you trying to use the mini-jack/TRS MIDI in?
The example is designed to use MIDI over USB on the Seed. 
If you want to use the Pod's TRS MIDI input, the MidiUartHandler provided by libDaisy needs to be used instead of the MidiUsbHandler, which the example uses. 

So on line 63 of daisyCsoundMidi.cpp you can replace:
MidiUsbHandler midi;
with
MidiUartHandler midi;

And on line 256
MidiUsbHandler::Config midi_cfg;
with 
MidiUartHandler::Config midi_config;


Lastly, on line 257, you can comment out:
midi_cfg.transport_config.periph
                = MidiUsbTransport::Config::INTERNAL;


With these steps MIDI in from the TRS input on the pod should work.

Hope this helps!
Thanks,
Aman Jagwani

On Sat, Jul 19, 2025 at 8:28 PM thorin kerr <thorin.kerr@gmail.com> wrote:
Hi all,

I'm having trouble getting the Midi example working on a Daisy Pod. 
I can get the Generative example working fine.
However, while the midi example compiles and flashes fine. It just doesn't make any sound. 
I think perhaps it's expecting midi to come from a different pin? From what I can see, the Pod midi input is on D14. I can't decipher the code well enough to see if it's expecting something different.

Any hints, or suggestions on how I can debug? 

Thorin


Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2025-07-19 19:31
FromVictor Lazzarini <000010b17ddd988e-dmarc-request@LISTSERV.HEANET.IE>
SubjectRe: [Csnd] [EXTERNAL] [Csnd] daisy and midi
Afaik MIDI comes through USB, according to the code:

MidiUsbHandler::Config midi_cfg;
midi_cfg.transport_config.periph = MidiUsbTransport::Config::INTERNAL;
midi.Init(midi_cfg);

best
Prof. Victor Lazzarini
Maynooth University
Ireland

On 19 Jul 2025, at 15:58, thorin kerr <thorin.kerr@gmail.com> wrote:



*Warning*

This email originated from outside of Maynooth University's Mail System. Do not reply, click links or open attachments unless you recognise the sender and know the content is safe.

Hi all,

I'm having trouble getting the Midi example working on a Daisy Pod. 
I can get the Generative example working fine.
However, while the midi example compiles and flashes fine. It just doesn't make any sound. 
I think perhaps it's expecting midi to come from a different pin? From what I can see, the Pod midi input is on D14. I can't decipher the code well enough to see if it's expecting something different.

Any hints, or suggestions on how I can debug? 

Thorin


Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2025-07-25 14:40
Fromthorin kerr
SubjectRe: [Csnd] daisy and midi
Thank you Aman and Victor,
I have the pod working. I am using the midi trs input, and even have audio input too now, so I'm quite happy.
Your advice was useful Aman... although it didn't quite work (and that's probably a simple error on my part), but it gave me direction. In the end I found an actual daisy_pod header which wrapped a lot of the seed in convenience functions.

Thorin



On Sun, Jul 20, 2025 at 4:30 AM Aman Jagwani <amanjagwani1998@gmail.com> wrote:
Hi Thorin, 

Are you trying to use MIDI over USB, connected directly to the Daisy Seed on the Pod or are you trying to use the mini-jack/TRS MIDI in?
The example is designed to use MIDI over USB on the Seed. 
If you want to use the Pod's TRS MIDI input, the MidiUartHandler provided by libDaisy needs to be used instead of the MidiUsbHandler, which the example uses. 

So on line 63 of daisyCsoundMidi.cpp you can replace:
MidiUsbHandler midi;
with
MidiUartHandler midi;

And on line 256
MidiUsbHandler::Config midi_cfg;
with 
MidiUartHandler::Config midi_config;


Lastly, on line 257, you can comment out:
midi_cfg.transport_config.periph
                = MidiUsbTransport::Config::INTERNAL;


With these steps MIDI in from the TRS input on the pod should work.

Hope this helps!
Thanks,
Aman Jagwani

On Sat, Jul 19, 2025 at 8:28 PM thorin kerr <thorin.kerr@gmail.com> wrote:
Hi all,

I'm having trouble getting the Midi example working on a Daisy Pod. 
I can get the Generative example working fine.
However, while the midi example compiles and flashes fine. It just doesn't make any sound. 
I think perhaps it's expecting midi to come from a different pin? From what I can see, the Pod midi input is on D14. I can't decipher the code well enough to see if it's expecting something different.

Any hints, or suggestions on how I can debug? 

Thorin


Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here