Pages: [1]   Go Down
Author Topic: Arduino as midi sequencer  (Read 423 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 24
Dont think like a computer, make it think like you
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

berlin
Offline Offline
Sr. Member
****
Karma: 0
Posts: 295
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

can't you use printByte() ?

printByte(90); // in your case

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

or am i misunderstanding you?
Logged

berlin
Offline Offline
Sr. Member
****
Karma: 0
Posts: 295
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Forum Administrator
Cambridge, MA
Offline Offline
Faraday Member
*****
Karma: 12
Posts: 3538
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Pages: [1]   Go Up
Jump to: