0xtob / dsmi

Automatically exported from code.google.com/p/dsmi

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pre-defined message types

GoogleCodeExporter opened this issue · comments

sending and receiving MIDI messages would be easier with pre-defined
message types like NOTE_ON, CC_CHANGE, etc.

Original issue reported on code.google.com by wey...@gmail.com on 9 Feb 2009 at 4:03

I think that this might be handled decently already.

Originally I had thought maybe making a MIDI Message struct would be nice for 
users
of the library.   but now I'm leaning towards keeping the old model of calling a
function like

send_message(message, data1, data2);

Or in the iphone port, this is split out to 
send_message(message_type, midi_channel, data1, data2);

The thing I like about the iphone version is that the user doesn't need to 
understand
how the or | operator works.

Original comment by collin.m...@gmail.com on 24 Feb 2009 at 9:18