This project has moved and is read-only. For the latest updates, please go here.

Simple midi input response

Jan 27, 2015 at 12:37 PM
Hi,
I need help with simple code that create response to midi messages.

for example:
if midi device name "device" send message "ch1-cc18-value127"
do something.

can anyone help me with that?

Thanks
Jan 29, 2015 at 6:15 PM
:(
Jan 29, 2015 at 10:43 PM
have you had a look at the code in the NAudioDemo project? There is a very simple midi in and out demo there.
Start off looking here
Jan 31, 2015 at 3:42 PM
Yes i did,
but theres only a demo of log and monitoring midi commands and i need to responde to a specific one.
i just need an example of one command and i will do the rest.

there is not much midi references in the help and wiki.

Thanks for your help
Feb 1, 2015 at 9:03 PM
well midi commands are quite easy to work with. Just look at the command code, and see if it is the type you are looking for, then cast to the appropriate type (e.g. NoteOnEvent) and get more information out