solidsnake745 / MIDI_Device_Controller

An Arduino based library for controlling various devices via the MIDI interface
GNU General Public License v3.0
6 stars 0 forks source link

Center usage around MIDI_Collection_Controller #37

Open solidsnake745 opened 4 years ago

solidsnake745 commented 4 years ago

Having used it couple times, would be simpler to just be able to add devices to the collection instances with an assignment strategy; rather than making the user create the objects, assign them to the MIDI_Device_Controller, and THEN configure the different chains,

Want something along the lines of creating collections by passing in device references (straight from factory creation) and then assignment strategy. Can probably reuse recursive decay from MIDI_Collection_Controller to do this.

solidsnake745 commented 3 years ago

Some more thought on this: good first step would be to refactor some of the involved logic into the factories to simplify creating devices and collections. Want to have the factory responsible for adding devices to the respective controllers.