Searching \ for 'Midi receiver' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: techref.massmind.org/techref/index.htm?key=midi+receiver
Search entire site for: 'Midi receiver'.

Truncated match.
PICList Thread
'Midi receiver'
2000\03\09@195925 by Peter Lima

flavicon
face
Hello

I would like to know if there is anyone out there that has created a
Midi receiver.

I need to turn on some relays with Midi Note on information CH1 Note 1 =
relay 1 ( latched )

I have a Pic relay board from a previous project that was operated by a
16c63
with 2 hc595 and 16 CP Claire relays.
The board is done. Now I am looking for some code, or some one, to
complete the board.
The Note on information to relay shall be fixed.
E.G.:    Channel 1    Note 1( c-6) turns on Relay 1
         Channel 1    Note 2           turns on Relay 2
etc. etc.               to note 20           turns on relay 20

Note off = relay off
1  I/O pins would be master clear

Any help will be appreciated
If any one is interested please contact me spam_OUTPeteritsTakeThisOuTspamidirect.ca

Thanks..

2000\03\10@110904 by Peter Lima

flavicon
face
Hello

I would like to know if there is anyone out there that has created a
Midi receiver.

I need to turn on some relays with Midi Note on information CH1 Note 1 =

relay 1 ( latched )

I have a Pic relay board from a previous project that was operated by a
16c63
with 2 hc595 and 16 CP Claire relays.
The board is done. Now I am looking for some code, or some one, to
complete the board.
The Note on information to relay shall be fixed.
E.G.:    Channel 1    Note 1( c-6) turns on Relay 1
         Channel 1    Note 2           turns on Relay 2
etc. etc.               to note 20           turns on relay 20

Note off = relay off
1  I/O pins would be master clear

Any help will be appreciated
If any one is interested please contact me .....PeteritsKILLspamspam@spam@idirect.ca

Thanks..

2000\03\11@090502 by Byron A Jeff

face picon face
>
> Hello
>
> I would like to know if there is anyone out there that has created a
> Midi receiver.

The last time I did it was a while ago when I was still using 8031's but
it certainly isn't difficult.

The physical hardware is an optoisolator connected to pins 4 and 5 of
the 5 pin DIN connected. Use a 220 ohm resistor for current limiting.
The circuit I used could be found in Hal Chamberlin's "Musical Applications
for Microprocessors". However I've found an online version here:

http://www.usyd.edu.au/anaes/rpa/Loadsmanextras/PCmidi.html

with more circuits located:

http://www.harmony-central.com/MIDI/interface.html

That implements MIDI in, MIDI out, and MIDI through. BTW you are not obligated
to implement MIDI through, or have multiple MIDI outs unless you want them.
Note that the output of the 6N138 optoisolator is pin 6 and that it does
require the 470 ohm pull-up resistor.

The output of the opto goes to the serial in, and the serial out of the PIC
goes to the buffers. The last time I implemented it instead of using 4049
inverters I used a 7406 open collector inverting buffer.

Configure the serial port for 31250 BPS, 8 bits, no parity. 31250 should
be trivial to get from any crystal that's a multiple of 1 Mhz. In fact that
bit rate was picked precisely because it's easily derivable from standard
clocks rates.

{Quote hidden}

OK. Just check the MIDI spec. Just be aware of a couple of optimizations that
most MIDI equipment make to the input stream:

- Channel information does not have to be repeated if it's the same event type
on the same channel.
- That a volume of 0 for a note on is the equivalent of a note off.

So for example instead of the sequence: 91 01 40 80 01 40
where the first three bytes turn on note 1 channel 1 and the last three turn
off note 1 channel one, most controllers would send: 91 01 40 01 00
where the 80 (note off) is replated by a repeated note on with a volume of 0.

So then it's just a matter of parsing the packets and setting the appropriate
relays based on the results.

Here's a online version of the MIDI spec with comments:

http://vision1.cs.umr.edu/~johns/links/music/midispec.htm

> Any help will be appreciated
> If any one is interested please contact me PeteritsspamKILLspamidirect.ca
>
> Thanks..

Hope these resouces help you get this project done. A hardware MIDI sequencer
is somewhere in my future. I plan to use Atmel's 8 and 16 Megabit serial
EEPROMs as data storage units attached to a 16F87X part for the controller.

BAJ
>

More... (looser matching)
- Last day of these posts
- In 2000 , 2001 only
- Today
- New search...