Quantcast
Channel: NAudio
Viewing all articles
Browse latest Browse all 5831

New Post: MIDI IN letters notes, insetad numbers?..... a big problem

$
0
0

if e.MidiEvent is an instance of NoteEvent, cast it to a NoteEvent, and then you have access to the NoteNumber property which is an int

if e.MidiEvent is an instance of ControlChangeEvent, cast it to a ControlChangeEvent, and then you have access to the ControllerValue property which is an int

The NAudioDemo app is just using the MidiEvent ToString(), but there is no reason for you to use it if you don't like the format it displays data in.


Viewing all articles
Browse latest Browse all 5831

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>