JInT_TriggerFinger

superclass: JInT

/**

2006 Till Bovermann (IEM)

*/

implements JustInTerface for an M-Audio Trigger Finger.

s.boot;

(

// plug in a TriggerFinger

var inPorts = 3;

var outPorts = 3;

MIDIClient.init(inPorts,outPorts); // explicitly intialize the client

inPorts.do({ arg i;

MIDIIn.connect(i, MIDIClient.sources.at(i));

});

)

k = JInT_TriggerFinger.new(

s,

MIDIClient.sources.detect{|device| device.name == "USB Trigger Finger"}.uid

)

k.start

// get information on device

k.info

p = p ? ProxySpace.push(s)

(

~x = {

SinOsc.ar(k.at([\c1, \c2]).collect(_.kr).poll.lag(0.025) * 400 + [400, 800])

// SinOsc.ar(k.at([\c1, 11]).collect(_.kr).lag(0.025) * 400 + [400, 800])

// SinOsc.ar(k.kr([\c1, \c2], \polar).lag(0.025) * 400 + [400, 800])

*

k[\pad1].kr(2)[1].lag(0.1)

* 0.5

}

)

~x.play

~x.free

~x.clear

j.stop

HIDresponder.releaseAll