Patch/Load object


#22

very simple, a controller object is just a subpatch.
in preferences give the name of a subpatch you wish to use as a controller object
(and ensure its enabled... theres a checkbox so its quick to enable/disable without having to enter the object name again)

whilst enabled, this subpatch will be wired into every patch you compile (ie. go live or put on sdcard)

it can do anything you want, but of course does not have inlets/outlets (by design, as if it did you would have to wire it in)

its normal use case is to use with a (hardware) controller (doh, hence the name :wink: ) so hence intercept the midi and then do something... this could be simple like intercept program change messages and change patches, or more complex like my Push object which intercepts all midi, applies scales, looks at parameters and displays them etc.
(you don't have to do midi it could for example use GPIO encoders)

the 'limitation' of not having outlets, means you will tend to use 'internal bus' to communicate with the main patch if necessary, or drive parameters directly... the later is more 'advanced' since its only possible via the C api.
quite likely other things are possible too, and it may be later I introduce some objects which allow controller objects to be built more easily ...

but for now Ive been using it really with my Push so that I can drive patches without having to patch the push in to each patch :smile:

tip: be careful with size/resources (e.g. preset allocation etc) a controller object uses, as its applied to all your patches, so its an 'overhead'... if a patch doesnt work with it enabled, try disabling it... if it works then probably your expecting a bit much the axoloti board, so you need to simplify your controller object

enjoy
Mark


New Version 1.0.4
#23

Since the last update, this controller object has replaced the choice we had with all the midi inputs on the system (in the preference menu).
How can I now, using only axoloti on my system, choose which input device I can play to send midi information to my midi/in objects?
I can do the routing in my DAW, but I quite liked not having to load it.


#24

no, the controller object change was completely unrelated.

I coded the midi input (which was in the preferences) before Axoloti exposed itself as a class compliant midi device. it was at that time the only way to send midi from the PC/Mac to the Axoloti, as it had to go via the serial interface.

once Johannes added midi class compliance to the usb implementation, it was no longer needed for that purpose so could be removed.

we could add something similar back I suppose, it would be a bit different, since now it would make sense to go via the midi device (as should the 'onscreen keyboard') rather than as it was previously, but its not hard.

... questionable though if this is right the direction for axoloti, as its adding general midi functionality to the PC/Mac UI, rather than something that is particular to axoloti.

alternatively, there are quite a few lightweight (non-daw) products that do this... and with more control/manipulation e.g. on the mac I use midipipe, similar things exist for the PC


#25

midi-OX is quite nice on windows