[sdiy] MIDI Switch

DJ Marmalade djmarmalade at planetp.org
Sun Mar 17 13:44:18 CET 2002


on 3/15/02 9:47 PM, The Old Crow at oldcrow at oldcrows.net wrote:

> On Fri, 15 Mar 2002, Andre Majorel wrote:
> 
>> On 2002-03-15 11:01 -0800, Moho Disco wrote:
>> 
>>> I want to make a little box with
>>> a 3-way switch on it that changes
>> 
>> Doesn't look too hard. I guess you would need an UART and a
>> microcontroller that runs a code somewhat like this one :
>> 
>> int chin  = 0;
>> int chout = 1;
>> for (;;)
>> {
>> unsigned char b = getc (midi_in);
>> if ((b & 0x80) && b < 0xf0 && (b & 0x0f) == chin)
>> b = (b & 0xf0) | chout;
>> putc (b, midi_out);
>> }
> 
> Easy for a PIC/AVR, etc.  Can use something like PIC16F628 or its AVR
> equivalent.  (Actually, it could be done in a 12C508 8-pin part if
> hardware uarts aren't desired).
> 
> Crow
> /**/

Is anyone aware of a simple midi library with source available for the PIC ?
It'd be fun to just start writing code without having to deal with debugging
the midi hw/sw.

Thanks
Daryl
  




More information about the Synth-diy mailing list