On Sonntag, 24. Februar 2019 17:30:15 CET Jacek Roszkowski wrote: > I'm sorry. I forgot to include the attachment file. Now I've also > found out that it compiles only with developer mode enabled. Otherwise > it fails, because the required interface is not public: > > EngineChannel.cpp:250:52: error: ‘void > LinuxSampler::AbstractVoice::EnterReleaseStage()’ is protected within > this context > itVoice->EnterReleaseStage();
Mja, the thing is that src/engines/sfz/EngineChannel.cpp is usually not the right place for doing such core engine event handling that you attempt with your patch. The source files dediciated for the individual formats (gig/sf2/ sfz) only cover the most minimalistic stuff required specifically only for the individual format itself, all the rest is shared, common code available to all engines, so when a new feature is added for one engine that it could still easily be adopted by all other engines as well (like it usually always happens after some time). But first things first. If I understand it correctly, you are already aware that there is already a feature for all our engines/formats which is called "exclusive groups" or "key groups", right? This feature allows to assign individual keys on a keyboard to individual "key groups", and within one key group there is always only 1 note intended to be active at a time, so if you trigger a key being member of a key group and there is already another note active of that same key group, then the previous note of that group will automatically be released. So that's a feature typically required for drum kits. Having said, your intention is to extend this existing feature for optionally raising the amount of active notes in a key group to another higher value than just 1, is that correct? CU Christian _______________________________________________ Linuxsampler-devel mailing list Linuxsampler-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linuxsampler-devel