C # XNA generates MIDI

I want to play MIDI as notes from a C # XNA program. I really do not need to create a MIDI file, just be able to start and stop recordings or play them for a certain time.

play("flute", "D4", "start"); play("flute", "D4", "stop"); play("flute", "E4", "5 secs"); 
+4
source share
1 answer

I recommend watching the XNA Midi Project .

It includes two examples and is easy to use:

 NoteOn(int channel, int note, int velocity, int program) 

Unlike other solutions, such as using WinAPI, this will also work on XBox and WP7.

+6
source

Source: https://habr.com/ru/post/1391332/


All Articles