JInT_Surface
implementation of JInT for a surface equipped with a contact microphone.
s.boot
k = JInT_Surface(s, 8)
k.start
k.stop
k.info;
k[\knock].action = {|me|
me.value.postln
};
// turn off again;
k[\knock].action = nil;
p = ProxySpace.push(s)
ProxyMixer(p)
k.sensitivity = 0.25
k.dt = 0.1
k.audioInBus = 1
~a = {
var trig = k[\knock].ar;
//Poll.ar(trig, trig);
Splay.ar(Ringz.ar(
trig,
Demand.ar(trig, 0, Dseq([
49, 46, 46, 47, 44, 44, 42, 44, 46, 47, 49, 49, 49,
49, 46, 46, 47, 44, 44, 42, 46, 49, 49, 42,
44, 44, 44, 44, 44, 46, 47,
46, 46, 46, 46, 46, 47, 49,
49, 46, 46, 47, 44, 44, 42, 46, 49, 49, 42], inf)).midicps *.t [2, 4, 7],
0.11
))
}
// shootout
~a = {
var trig = k[\knock].ar;
Splay.ar(Ringz.ar(
trig,
[400, 800, 1600]*TRand.ar(0.5, 2, k[\knock].ar),
0.1
))
}
~a.rebuild
{K2ATrig1.ar(k[\knock].kr)}.plot(0.5)