igorski/MWEngine

SampledInstrument event clearEvents/removeEvent methods has no effect

hypeastrum opened this issue · 2 comments

Methods updateEvents(), clearEvents() and removeEvent() are not implemented in sampledinstrument.cpp. It makes SampledInstrument unusable from Java.

@hypeastrum See my answer on #10 as it basically involves the same answer when concerning the removal of a single AudioEvent. I shall refactor the updateEvents() and clearEvents() methods into the BaseInstrument class as the inheriting classes don't have any custom overrides.

@hypeastrum I have updated the BaseInstrument to take care of this, you should now be able to use it for SampledInstrument too. Please pull the master branch. Also updated the Wiki and unit tests accordingly.