Go Down

Topic: Arduino as midi sequencer (Read 468 times) previous topic - next topic

Gabe462

I'm doing an experiment where arduino is a midi sequencer. I don't have the hardware to build an actual midi port yet so I'm just using Max/MSP as my midi output.

I see that every serial function writes ascii FOR EACH PLACE! Is this how serial/midi interfaces around the world work? Why send a byte each for 9 and 0 when you could just send one byte for 90?

So what will my synth actually be looking for when I start sending messages to it? Will I use printHex()?

Gabe

kuuk

can't you use printByte() ?

printByte(90); // in your case

http://www.arduino.cc/en/Reference/PrintByte

or am i misunderstanding you?

kuuk

i may correct myself :-)

as of arduino version 0004 we have a new serial function

use serial.print( 90, BYTE); instead.

i must admit that i have no real experience with the new version yet. but that's how it's documented.

mellis

Capital 'S': Serial.print(90, BYTE);

Go Up