-
February 28th, 2013, 05:49 AM
#1
Create a midi file using vb
I am doing a mini vb program on midi files. I need help on how to create a midi file that only plays the musical notes. When the user press a key like C or A, the proocedure simply generate a midi tone that corresponds to only the pressed character and after ward saved the press character in midi form
-
February 28th, 2013, 05:58 PM
#2
Re: Create a midi file using vb
You can get the key pressed in the keypressed event or you can use the keydown or KeyUp events beyond that would need more info from you.
Always use [code][/code] tags when posting code.
-
February 28th, 2013, 06:13 PM
#3
Re: Create a midi file using vb
the MIDI format is available for download, except that it is over 900 pages of text.
-
February 24th, 2014, 10:27 AM
#4
Re: Create a midi file using vb
I've just done some work on this. Not sure if it's bisuitable for you, but my code accepts a table of values as a parameter and converts it into a MIDI file. It doesn't play the notes though. I'm currently using a program called MIDIox to handle the MIDI in and out streams. It's freeware and a really useful MIDI debugging tool. If you add a reference to that in your program, you can just call a method to send MIDI notes. There a good section on scripting in the MIDIox help text. If you have a lookup from ASCII value to MIDI out code, you can just output that. Eg, ASCII 67 for C might be note 60 (middle C in MIDI). Hope this helps. This is a good resource on the MIDI file format: http://www.fileformat.info/format/midi/corion.htm.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|