Sending MIDI data using P1 COGS with Tachyon FORTH
I haven't chanced upon many examples of Tachyon FORTH code and none that help me understand how Cogs work. Below the most simple example demonstrating my question. And Merry Christmas!
( Thanks for the back ticks)
: mINIT 31250 SERBAUD ; \ sets MIDI baudrate : tx1 6 SEROUT ; \ data will be output by pin 6 : C3 $90 tx1 60 tx1 $127 tx1 500 ms $90 tx1 60 tx1 0 tx1 ; \ middle C half second : C2 $91 tx1 48 tx1 $127 tx1 500 ms $91 tx1 48 tx1 0 tx1 ; \ C one octave lower
** using Parallax P1 cogs and Tachyon, how to send these two notes to a MIDI device so they play at the same time?