[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sc-users] Live coding and MIDI control



Hi Juan,
thanks for replying. I guess in ProxySpace things are easier, but there's something I don't see: where is the scaling? I understand you rescale your knobs at startup, to have them in a range from 0.0 to 1.0. I guess you perform the rescaling directly in the node where you use ~ccN.kr, right?
Best,
Alessandro


On 28 December 2013 20:12, Juan Gabriel Alzate Romero <rukano@xxxxxxxxx> wrote:
Hi,

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?

We (the Mandelbrots) have used midi controllers some times for some performances. What I do for my 8 knobs setup is something like:

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/



--
Website:
http://www.math.uni-hamburg.de/home/valentino/
"Una volta delegato il potere, questo non puo' piu' essere revocato"