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");
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.
Source: https://habr.com/ru/post/1391332/More articles:Android wallpapers have not changed - javaMVC ActionLink, how to specify text, name of action, controller and htmlattributes - asp.net-mvcGet the identifier of an element where it is not? - jqueryContinuous Minutes UIDatePicker - iosbreaking a pearl? - ruby ​​| fooobar.comCan my Clojure function be very slow with lists or vectors? - performanceIs there an Ember.js equivalent for Backbone.js Router for changing history and hash? - javascriptError starting native application from web application - iOS - URL does not appear - iosC ++: STL: set: stored value constant - c ++How to transfer the parameter in the button and get the value in the code behind to redirect to another page depending on the parameter value in the Windows 7 phone? - parametersAll Articles