carrierdown / mutateful

Add-on for Ableton Live that enables live coding functionality fully integrated into Live's session view.
GNU General Public License v3.0
406 stars 13 forks source link

Enhancement: Invertable filters. #5

Closed twobob closed 5 years ago

twobob commented 5 years ago

Passing the arg -invert to a filter command would leave the result rather than deleting it.

Reasoning: Often less interesting passages contain longer note to accentuate cadence and the flourishes would be shorter.

I could look at this, if it is non trivial. Many thanks

carrierdown commented 5 years ago

That's a good idea. Feel free to submit a pull request for this. Adding options is very easy since reflection is used to autopopulate the options object passed into a command. You'll need to add a mapping from "-invert" to TokenType.Invert in the lexer, and add an Invert bool property on the options object in question.

twobob commented 5 years ago

Done. I'll put together the pull