TWChoose

View: New views
6 Messages — Rating Filter:   Alert me  

TWChoose

by rags música :: Rate this Message:

Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message

Hi all,

Can I use TWChoose to choose from a list instead of single values?

The code below doesn't seem to work for me:

  ({  var tap1, tap2, tap3, tap4, tap5, tap6, source, rec, times, trig;
    source = SoundIn.ar(0, 1);
    trig = MouseButton.kr(-1.0, 1.0);
    times = TWChoose.kr(trig,  [
        [1.0, 2.0, 3.0, 4.0, 5.0, 6.0],
        [0.5, 1.0, 3.5, 5.0, 6.0, 6.5],
        [2.0, 3.0, 3.5, 4.5, 5.5, 5.75]], [0.5, 0.5, 0.3].normalizeSum);
    rec = BufWr.ar(source, bufnum, Phasor.ar(0,1, 0, BufFrames.ir(bufnum),1));
    tap1 = Tap.ar(bufnum, 1, times.at(0));
    tap2 = Tap.ar(bufnum, 1, times.at(1));
    tap3 = Tap.ar(bufnum, 1, times.at(2));
    tap4 = Tap.ar(bufnum, 1, times.at(3));
    tap5 = Tap.ar(bufnum, 1, times.at(4));
    tap6 = Tap.ar(bufnum, 1, times.at(5));
    Out.ar(0, [tap1, tap2, tap3, tap4, tap5, tap6]);
})

the code is inside a syntheDef.

thanks,

R


Re: TWChoose

by rags música :: Rate this Message:

Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message

sorry people, the problem is that Tap cannot modulate the delay time, it is not a TWChoose problem...


2008/10/10 rags música <ragsmusica@...>
Hi all,

Can I use TWChoose to choose from a list instead of single values?

The code below doesn't seem to work for me:

  ({  var tap1, tap2, tap3, tap4, tap5, tap6, source, rec, times, trig;
    source = SoundIn.ar(0, 1);
    trig = MouseButton.kr(-1.0, 1.0);
    times = TWChoose.kr(trig,  [
        [1.0, 2.0, 3.0, 4.0, 5.0, 6.0],
        [0.5, 1.0, 3.5, 5.0, 6.0, 6.5],
        [2.0, 3.0, 3.5, 4.5, 5.5, 5.75]], [0.5, 0.5, 0.3].normalizeSum);
    rec = BufWr.ar(source, bufnum, Phasor.ar(0,1, 0, BufFrames.ir(bufnum),1));
    tap1 = Tap.ar(bufnum, 1, times.at(0));
    tap2 = Tap.ar(bufnum, 1, times.at(1));
    tap3 = Tap.ar(bufnum, 1, times.at(2));
    tap4 = Tap.ar(bufnum, 1, times.at(3));
    tap5 = Tap.ar(bufnum, 1, times.at(4));
    tap6 = Tap.ar(bufnum, 1, times.at(5));
    Out.ar(0, [tap1, tap2, tap3, tap4, tap5, tap6]);
})

the code is inside a syntheDef.

thanks,

R



Re: Re: TWChoose

by Josh Parmenter :: Rate this Message:

Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message

if you have sc3-plugins, check out DelTapWr and DelTapRd.

HTH

Josh

On Oct 10, 2008, at 3:38 AM, rags música wrote:

sorry people, the problem is that Tap cannot modulate the delay time, it is not a TWChoose problem...


2008/10/10 rags música <ragsmusica@...>
Hi all,

Can I use TWChoose to choose from a list instead of single values?

The code below doesn't seem to work for me:

  ({  var tap1, tap2, tap3, tap4, tap5, tap6, source, rec, times, trig;
    source = SoundIn.ar(0, 1);
    trig = MouseButton.kr(-1.0, 1.0);
    times = TWChoose.kr(trig,  [
        [1.0, 2.0, 3.0, 4.0, 5.0, 6.0],
        [0.5, 1.0, 3.5, 5.0, 6.0, 6.5],
        [2.0, 3.0, 3.5, 4.5, 5.5, 5.75]], [0.5, 0.5, 0.3].normalizeSum);
    rec = BufWr.ar(source, bufnum, Phasor.ar(0,1, 0, BufFrames.ir(bufnum),1));
    tap1 = Tap.ar(bufnum, 1, times.at(0));
    tap2 = Tap.ar(bufnum, 1, times.at(1));
    tap3 = Tap.ar(bufnum, 1, times.at(2));
    tap4 = Tap.ar(bufnum, 1, times.at(3));
    tap5 = Tap.ar(bufnum, 1, times.at(4));
    tap6 = Tap.ar(bufnum, 1, times.at(5));
    Out.ar(0, [tap1, tap2, tap3, tap4, tap5, tap6]);
})

the code is inside a syntheDef.

thanks,

R



******************************************

/* Joshua D. Parmenter

http://www.realizedsound.net/josh/


“Every composer – at all times and in all cases – gives his own interpretation of how modern society is structured: whether actively or passively, consciously or unconsciously, he makes choices in this regard. He may be conservative or he may subject himself to continual renewal; or he may strive for a revolutionary, historical or social palingenesis." - Luigi Nono

*/


Re: Re: TWChoose

by rags música :: Rate this Message:

Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message

Thanks Josh, are the delay time of those ugens moduleable after the synth is running?


2008/10/10 Josh Parmenter <josh@...>
if you have sc3-plugins, check out DelTapWr and DelTapRd.

HTH

Josh

On Oct 10, 2008, at 3:38 AM, rags música wrote:

sorry people, the problem is that Tap cannot modulate the delay time, it is not a TWChoose problem...


2008/10/10 rags música <ragsmusica@...>
Hi all,

Can I use TWChoose to choose from a list instead of single values?

The code below doesn't seem to work for me:

  ({  var tap1, tap2, tap3, tap4, tap5, tap6, source, rec, times, trig;
    source = SoundIn.ar(0, 1);
    trig = MouseButton.kr(-1.0, 1.0);
    times = TWChoose.kr(trig,  [
        [1.0, 2.0, 3.0, 4.0, 5.0, 6.0],
        [0.5, 1.0, 3.5, 5.0, 6.0, 6.5],
        [2.0, 3.0, 3.5, 4.5, 5.5, 5.75]], [0.5, 0.5, 0.3].normalizeSum);
    rec = BufWr.ar(source, bufnum, Phasor.ar(0,1, 0, BufFrames.ir(bufnum),1));
    tap1 = Tap.ar(bufnum, 1, times.at(0));
    tap2 = Tap.ar(bufnum, 1, times.at(1));
    tap3 = Tap.ar(bufnum, 1, times.at(2));
    tap4 = Tap.ar(bufnum, 1, times.at(3));
    tap5 = Tap.ar(bufnum, 1, times.at(4));
    tap6 = Tap.ar(bufnum, 1, times.at(5));
    Out.ar(0, [tap1, tap2, tap3, tap4, tap5, tap6]);
})

the code is inside a syntheDef.

thanks,

R



******************************************

/* Joshua D. Parmenter

http://www.realizedsound.net/josh/


"Every composer – at all times and in all cases – gives his own interpretation of how modern society is structured: whether actively or passively, consciously or unconsciously, he makes choices in this regard. He may be conservative or he may subject himself to continual renewal; or he may strive for a revolutionary, historical or social palingenesis." - Luigi Nono

*/



Re: Re: TWChoose

by Josh Parmenter :: Rate this Message:

Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message

definitely:

b = Buffer.alloc(s, s.sampleRate * 1, 1);

// write a signal into a delay, tap it at mutiple times
SynthDef(\test, {arg buffer;
var src, tapPhase, tap1, tap2, tap3;
src = WhiteNoise.ar(0.2) * Decay.kr(Dust.kr(3), 0.2);
tapPhase = DelTapWr.ar(buffer, src);
#tap1, tap2, tap3 = DelTapRd.ar(buffer, tapPhase, 
[0.2, 0.27, SinOsc.kr(0.1).range(0.1, 0.3)],  // tap times
1,  // no interp
[1.0, 0.4, 0.2] // muls for each tap
);
Out.ar(0, [src + tap2, tap1 + tap3])
}).send(s);


x = Synth(\test, [\buffer, b]);
x.free;
b.free;

Josh

On Oct 10, 2008, at 3:50 AM, rags música wrote:

Thanks Josh, are the delay time of those ugens moduleable after the synth is running?


2008/10/10 Josh Parmenter <josh@...>
if you have sc3-plugins, check out DelTapWr and DelTapRd.

HTH

Josh

On Oct 10, 2008, at 3:38 AM, rags música wrote:

sorry people, the problem is that Tap cannot modulate the delay time, it is not a TWChoose problem...


2008/10/10 rags música <ragsmusica@...>
Hi all,

Can I use TWChoose to choose from a list instead of single values?

The code below doesn't seem to work for me:

  ({  var tap1, tap2, tap3, tap4, tap5, tap6, source, rec, times, trig;
    source = SoundIn.ar(0, 1);
    trig = MouseButton.kr(-1.0, 1.0);
    times = TWChoose.kr(trig,  [
        [1.0, 2.0, 3.0, 4.0, 5.0, 6.0],
        [0.5, 1.0, 3.5, 5.0, 6.0, 6.5],
        [2.0, 3.0, 3.5, 4.5, 5.5, 5.75]], [0.5, 0.5, 0.3].normalizeSum);
    rec = BufWr.ar(source, bufnum, Phasor.ar(0,1, 0, BufFrames.ir(bufnum),1));
    tap1 = Tap.ar(bufnum, 1, times.at(0));
    tap2 = Tap.ar(bufnum, 1, times.at(1));
    tap3 = Tap.ar(bufnum, 1, times.at(2));
    tap4 = Tap.ar(bufnum, 1, times.at(3));
    tap5 = Tap.ar(bufnum, 1, times.at(4));
    tap6 = Tap.ar(bufnum, 1, times.at(5));
    Out.ar(0, [tap1, tap2, tap3, tap4, tap5, tap6]);
})

the code is inside a syntheDef.

thanks,

R



******************************************
/* Joshua D. Parmenter

"Every composer – at all times and in all cases – gives his own interpretation of how modern society is structured: whether actively or passively, consciously or unconsciously, he makes choices in this regard. He may be conservative or he may subject himself to continual renewal; or he may strive for a revolutionary, historical or social palingenesis." - Luigi Nono
*/



******************************************

/* Joshua D. Parmenter

http://www.realizedsound.net/josh/


“Every composer – at all times and in all cases – gives his own interpretation of how modern society is structured: whether actively or passively, consciously or unconsciously, he makes choices in this regard. He may be conservative or he may subject himself to continual renewal; or he may strive for a revolutionary, historical or social palingenesis." - Luigi Nono

*/


Re: Re: TWChoose

by rags música :: Rate this Message:

Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message

beautiful, thanks!

2008/10/10 Josh Parmenter <josh@...>
definitely:

b = Buffer.alloc(s, s.sampleRate * 1, 1);

// write a signal into a delay, tap it at mutiple times
SynthDef(\test, {arg buffer;
var src, tapPhase, tap1, tap2, tap3;
src = WhiteNoise.ar(0.2) * Decay.kr(Dust.kr(3), 0.2);
tapPhase = DelTapWr.ar(buffer, src);
#tap1, tap2, tap3 = DelTapRd.ar(buffer, tapPhase, 
[0.2, 0.27, SinOsc.kr(0.1).range(0.1, 0.3)],  // tap times
1,  // no interp
[1.0, 0.4, 0.2] // muls for each tap
);
Out.ar(0, [src + tap2, tap1 + tap3])
}).send(s);


x = Synth(\test, [\buffer, b]);
x.free;
b.free;

Josh

On Oct 10, 2008, at 3:50 AM, rags música wrote:

Thanks Josh, are the delay time of those ugens moduleable after the synth is running?


2008/10/10 Josh Parmenter <josh@...>
if you have sc3-plugins, check out DelTapWr and DelTapRd.

HTH

Josh

On Oct 10, 2008, at 3:38 AM, rags música wrote:

sorry people, the problem is that Tap cannot modulate the delay time, it is not a TWChoose problem...


2008/10/10 rags música <ragsmusica@...>
Hi all,

Can I use TWChoose to choose from a list instead of single values?

The code below doesn't seem to work for me:

  ({  var tap1, tap2, tap3, tap4, tap5, tap6, source, rec, times, trig;
    source = SoundIn.ar(0, 1);
    trig = MouseButton.kr(-1.0, 1.0);
    times = TWChoose.kr(trig,  [
        [1.0, 2.0, 3.0, 4.0, 5.0, 6.0],
        [0.5, 1.0, 3.5, 5.0, 6.0, 6.5],
        [2.0, 3.0, 3.5, 4.5, 5.5, 5.75]], [0.5, 0.5, 0.3].normalizeSum);
    rec = BufWr.ar(source, bufnum, Phasor.ar(0,1, 0, BufFrames.ir(bufnum),1));
    tap1 = Tap.ar(bufnum, 1, times.at(0));
    tap2 = Tap.ar(bufnum, 1, times.at(1));
    tap3 = Tap.ar(bufnum, 1, times.at(2));
    tap4 = Tap.ar(bufnum, 1, times.at(3));
    tap5 = Tap.ar(bufnum, 1, times.at(4));
    tap6 = Tap.ar(bufnum, 1, times.at(5));
    Out.ar(0, [tap1, tap2, tap3, tap4, tap5, tap6]);
})

the code is inside a syntheDef.

thanks,

R



******************************************
/* Joshua D. Parmenter

"Every composer – at all times and in all cases – gives his own interpretation of how modern society is structured: whether actively or passively, consciously or unconsciously, he makes choices in this regard. He may be conservative or he may subject himself to continual renewal; or he may strive for a revolutionary, historical or social palingenesis." - Luigi Nono
*/



******************************************

/* Joshua D. Parmenter

http://www.realizedsound.net/josh/


"Every composer – at all times and in all cases – gives his own interpretation of how modern society is structured: whether actively or passively, consciously or unconsciously, he makes choices in this regard. He may be conservative or he may subject himself to continual renewal; or he may strive for a revolutionary, historical or social palingenesis." - Luigi Nono

*/


LightInTheBox - Buy quality products at wholesale price!