christofmuc / KnobKraft-orm

The KnobKraft Orm - The free modern cross-platform MIDI Sysex Librarian
GNU Affero General Public License v3.0
200 stars 25 forks source link

Adaptations 2.0 - use class based Adaptation instead of module functions #254

Open christofmuc opened 1 year ago

christofmuc commented 1 year ago

@bboc I'm back now and slowly starting to work on this again. Thinking about this there might be an opportunity to create a "version 2" Adaptation interface in Python that can work with objects/classes rather than modules. The original modules are good but run into problems as soon as you want to use inheritace like I do with the generic Sequential and Roland modules - jumping through hoops there.

Generally, the C++ capabilities are maybe better designed with the Python code a simplified layer on top of them to make it easier (but less powerful) to write adaptations. In the beginning I thought we might want to implement complex synths in C++, but by now I think all synths should be in Python, it is so much easier than C++.

Originally posted by @christofmuc in https://github.com/christofmuc/KnobKraft-orm/issues/238#issuecomment-1529804491