I am writing a small application in VB6 that requires the playing of randomly generated single jazz guitar notes (#27), at varying intervals, which can be quite close, i.e. the notes are sometimes required to be played in quite quick succession.
I have been using the MCI control to open and play each midi note (thay have been recorded and saved in a music sequencer application and are saved as separate files on the hard drive), but find that this method is too slow and does not function correctly all the time.
i) Is there a way of reading those files into memory and having the control playing them from there or;
ii) Can the notes be produced and played in some other way. Each note event is triggered by a command button click and/or a variable timed routine that calls the same click event.
iii) I have often noticed that the control does not work at all and on placing a meesage box to trap errors after the open command I get the the message "Invalid MCI device ID. Please use the ID returned."
Can someone give me a hand there.
I am reasonably experienced in VB mainly in database related work but have not done any, and know little about, MIDI and sound programming. Hope someone can help!
Thanks in anticipation,