Good day folks.
I'm attempting to get the TouchOSC keyboard to work in PD. My issue is that the keys on the keyboard come into pure data as toggle on/off instead of MIDI notes.
I was taught a way to use bangs to trigger MIDI notes but I can't for the life of me remember how to do it.
The example I was shown was 12 bangs arranged to look like keyboard keys (just for aesthetics), and each bang would then trigger the relevant MIDI note for the key which would then be sent to osc~/phasor~ etc to then to go mtof. So you could click the bang and get a C, click the bang next to it and get a C#.
[DumpOSC] > [route 1/Toggle1] > [Bang] > [Midi note 60 (C)] > [Mtof] \
[DumpOSC] > [route 1/Toggle2] > [Bang] > [Midi note 61 (C#)] > [Mtof] > Osc~
[DumpOSC] > [route 1/Toggle3] > [Bang] > [Midi note 62 (D)] > [Mtof] /
etc...
The object to be triggered to create the Midi note bit in the above is where I'm getting stuck.
Or is there a more intuitive way I could be doing this?
I hope this makes sense.
Many thanks in advanced