Hi,
We (the Mandelbrots) have used midi controllers some times for some performances. What I do for my 8 knobs setup is something like:
On 28 Dec 2013, at 17:52, sandrovale <alessandro.valentino@xxxxxxxxx> wrote:
> Anyone uses midi controllers during live coding? Do you hard code the busses
> in your SynthDef, or else?
p = ProxySpace.push(s.boot);
#[cc1, cc2, cc3, cc4, cc5, cc6, cc7, cc8].do{ |k| p[k] = { |cc=0| (cc/127).lag(0.01) } };
MIDIIn.connectAll; // wait...
#[cc1, cc2, cc3, cc4, cc5, cc6, cc7, cc8].do{ |k, i|
MIDIdef.cc(k, { |v|
p[k].set(\cc, v);
}, i+1)
};
And then use ~ccN.kr wherever I want.
I think Patrick made a class with a funny name (MIDIGang) for this kind of purpose:
https://github.com/cappelnord/CNToolsSC3/blob/master/MIDIGang.sc
Cheers,
Juan
_______________________________________________
sc-users mailing list
info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: https://listarc.bham.ac.uk/marchives/sc-users/
search: https://listarc.bham.ac.uk/lists/sc-users/search/