Midi out plugin and music reading trainer - need advice.
Posted: Mon Jun 20, 2011 2:42 am
I'm working on a music sight reading trainer for 25 key input devices.
I'll share DLL extention after I add some more functions.
So far:
I'm having a bit of difficulty here though. first, I could not pass strings with function calls. The reason for this makes sense so -
As a work around to get the midi device names
"writeDeviceNames" creates a a text file in the project directory. this "DeviceListExist()" makes sure the text file was created.
The text file get's named: "devnames.txt"
I've spent a way too much time trying to parse this though. If anyone can give me some tips it would be appreciated. All I want to do is read the file and create a user selection menu for it.
snap shot of the project -
I'll share DLL extention after I add some more functions.
So far:
Code: Select all
int GetNumMidiDevices(){}
int OpenDevice(int devnum){}
int SendNoteOn(int Chn,int Note,int Vel){}
int SendNoteOff(int Chn,int Note){}
void closedevice(){}
void writeDeviceNames(int devcount){}
int DeviceListExist(){}
As a work around to get the midi device names
"writeDeviceNames" creates a a text file in the project directory. this "DeviceListExist()" makes sure the text file was created.
The text file get's named: "devnames.txt"
Code: Select all
"0$Microsoft GS Wavetable Synth$"
"1$Maple Midi Out: Port 1$"
"2$Maple Midi Out: Port 2$"
"3$Maple Midi Out: Port 3$"
"4$Maple Midi Out: Port 4$"
"5$LPK25$"
"6$nanoKONTROL$"
"]"
I've spent a way too much time trying to parse this though. If anyone can give me some tips it would be appreciated. All I want to do is read the file and create a user selection menu for it.
snap shot of the project -