charonn0 / RB-MidiFile

A Realbasic and Xojo binding to HP MIDIFILE
MIT License
0 stars 0 forks source link

Working with HP_midifile.dll #2

Open djangobaer opened 2 years ago

djangobaer commented 2 years ago

Hello charonn0!

I work with the HP_midifile.dll from Heiko Plate in different programs. Mostly in MixMaster from Etienne Volbragt. A great tool such as yours.

I use that applications in connection with a Yamaha ePiano Clavinova-CSP-170. Main issue is to change MIDIs in case of Voices and Channels. I use a lot of Sysex-Commands to change that values.

Now I will build a helping hand to listen to selected voices on the ePiano and copy the Sysexdatas to MixMaster.

I tried to use your connection-coding, but after loading the MIDI I got an error.

_Sub Load(MidiFile As FolderItem) mLastError = HPLoad(mMidi, MidiFile.NativePath) '# App i stopping here!!!! End Sub

May be I did something wrong! I opened your Proram and my own empoty program. After that I have selected all items in your program and make copy and paste in my xojo-File.

I am working on a PC - Windows 10-64 bit(latest Image) and using XOJO 2021 1.1

Thank you for helping Tipps

best regards Harald from Austria

charonn0 commented 2 years ago

mLastError = HP_Load(mMidi, MidiFile.NativePath) '# App i stopping here!!!!

The Xojo IDE should tell you what kind of exception occurred on the line. That will likely point the way to the problem.

djangobaer commented 2 years ago

Thank you for your hint! I found out more information on that way, but I could not save my problem. I will go deeper in the theme and will have a look on my code. I think there are problems with the HP_midifile.dll integration. I have to learn more!!!