From: Tobias D. <tob...@gm...> - 2008-06-26 21:29:14
|
Am Donnerstag, 26. Juni 2008 23:15:42 schrieb Achim Settelmeier: > Hi, > > As my request on the lmms-users mailinglist [1] got no solutions, I decided > to get my hands dirty and implement a plugin that can generate MIDI control > commands. > > To achive this (and to not duplicate the MIDI setup code already present in > the midiTabWidget class), it needs to access the midiPort object in the > instrumentTrack class which is declared private and only available to > friend classes. > > Attached you'll find my patch against LMMS 0.3.2 that exports the midiPort > object and makes one of the friend classes use this getter method instead > of direct access. Would be great if someone includes it into the SVN :-) I don't want to disappoint you but 0.3.x branch isn't really maintained anymore and we're currently focussing at 0.4.x which has a rewritten core, better plugin-infrastructure, is Qt4-based and has a lot of other improvements. Therefore you shouldn't spend any time on writing a plugin for 0.3.x. Instead you should port it to 0.4.0-svn so it's also usable in the future. If you need help, mail again. You should also note, that 0.4.0 has controllers, e.g. MIDI-controllers - dunno whether they already do what you want to achieve with your plugin. toby |