|
View:
New views
4 Messages
—
Rating Filter:
Alert me
|
|
|
TWIChoose...?Hello
I would like the amp of a TGrains to be modulated by something to the effect of [0, 1].wchoose([x, y]) at each trigger. What's a smart way to do that - can it be done inside a synthdef? I was playing with a workaround involving a Dseq([0,1], inf) and then delaying the trigger at random with a TRand, but that doesn't seem like such a sexy solution. The point is to be able to modulate gradually from only 0's (constant silence) to only 1's (every grain is heard), so that you can create a rhythm with a random element, where you can control the density of the rhythm. Would be nice to be able to control the amount of randomness as well, actually, so that with a [0.5, 0.5] weight you could modulate from a regular pattern of 10101010101010 etc to something very random but with the same average amount of 0's and 1's over a stretch of time. Does anybody have a ugen with this kind of functionality? Or should I just forget about doing this inside the synthdef? This is probably something completely obvious, that I'm overlooking, as usual, but I would very much appreciate any pointers. Thank you! Martin _______________________________________________ sc-users mailing list info (subscribe and unsubscribe): http://swiki.hfbk-hamburg.de:8888/MusicTechnology/880 archive: http://www.listarc.bham.ac.uk/marchives/sc-users/ search: http://www.listarc.bham.ac.uk/lists/sc-users/search/ |
|
|
Re: TWIChoose...?Hi Martin,
I don't know about modulating the amp of the grains, but you can create an appropriate trigger signal like this: trigger = Impulse.ar(10)*(WhiteNoise.ar.range(0,1)>prob) the ">" symbol will create a signal that constantly flips between 0 and 1 depending on the probability. Multiplying by this signal will either cancel out the impulse or let it through. Your second example can be done with some code like this, which morphs from 101010101010 to a completely random pattern of impulses over 30 seconds: ( // TURN THE VOLUME DOWN FIRST as it plays raw impulses. { var switch_noise, random_noise, prob, sig1, sig2; prob = Line.kr(0,1,30); switch_noise = WhiteNoise.ar.range(0,1); random_noise = WhiteNoise.ar.range(0,1); sig1 = Impulse.ar(5); sig2 = Impulse.ar(10)*(random_noise>0.5); (sig1*(switch_noise>prob)) + (sig2*(switch_noise<=prob)) }.play ) Hope this helps Nathaniel 2008/7/11 Martin Vognsen <gnormaninvest@...>: Hello |
|
|
Re: TWIChoose...?So you are looking for a CoinGate maybe?
if you want to plug a demand ugen directly into the amp input, you could try it with Dswitch1 and Dwhite: Dswitch1([0, 1], Dwhite() > x) >Hello > >I would like the amp of a TGrains to be modulated by something to >the effect of [0, 1].wchoose([x, y]) at each trigger. What's a smart >way to do that - can it be done inside a synthdef? I was playing >with a workaround involving a Dseq([0,1], inf) and then delaying the >trigger at random with a TRand, but that doesn't seem like such a >sexy solution. The point is to be able to modulate gradually from >only 0's (constant silence) to only 1's (every grain is heard), so >that you can create a rhythm with a random element, where you can >control the density of the rhythm. Would be nice to be able to >control the amount of randomness as well, actually, so that with a >[0.5, 0.5] weight you could modulate from a regular pattern of >10101010101010 etc to something very random but with the same >average amount of 0's and 1's over a stretch of time. > >Does anybody have a ugen with this kind of functionality? Or should >I just forget about doing this inside the synthdef? > >This is probably something completely obvious, that I'm overlooking, >as usual, but I would very much appreciate any pointers. > >Thank you! >Martin > > >_______________________________________________ >sc-users mailing list > >info (subscribe and unsubscribe): >http://swiki.hfbk-hamburg.de:8888/MusicTechnology/880 >archive: http://www.listarc.bham.ac.uk/marchives/sc-users/ >search: http://www.listarc.bham.ac.uk/lists/sc-users/search/ -- . _______________________________________________ sc-users mailing list info (subscribe and unsubscribe): http://swiki.hfbk-hamburg.de:8888/MusicTechnology/880 archive: http://www.listarc.bham.ac.uk/marchives/sc-users/ search: http://www.listarc.bham.ac.uk/lists/sc-users/search/ |
|
|
Re: TWIChoose...?Nathaniel, Julian -
Thank you so much for the suggestions. Very useful tricks. I knew there had to be elegant solutions. Martin Den 11/07/2008 kl. 20.28 skrev Julian Rohrhuber: > So you are looking for a CoinGate maybe? > > if you want to plug a demand ugen directly into the amp input, you > could try it with Dswitch1 and Dwhite: > > Dswitch1([0, 1], Dwhite() > x) > > >> Hello >> >> I would like the amp of a TGrains to be modulated by something to >> the effect of [0, 1].wchoose([x, y]) at each trigger. What's a >> smart way to do that - can it be done inside a synthdef? I was >> playing with a workaround involving a Dseq([0,1], inf) and then >> delaying the trigger at random with a TRand, but that doesn't seem >> like such a sexy solution. The point is to be able to modulate >> gradually from only 0's (constant silence) to only 1's (every >> grain is heard), so that you can create a rhythm with a random >> element, where you can control the density of the rhythm. Would be >> nice to be able to control the amount of randomness as well, >> actually, so that with a [0.5, 0.5] weight you could modulate from >> a regular pattern of 10101010101010 etc to something very random >> but with the same average amount of 0's and 1's over a stretch of >> time. >> >> Does anybody have a ugen with this kind of functionality? Or >> should I just forget about doing this inside the synthdef? >> >> This is probably something completely obvious, that I'm >> overlooking, as usual, but I would very much appreciate any pointers. >> >> Thank you! >> Martin >> >> >> _______________________________________________ >> sc-users mailing list >> >> info (subscribe and unsubscribe): http://swiki.hfbk-hamburg.de: >> 8888/MusicTechnology/880 >> archive: http://www.listarc.bham.ac.uk/marchives/sc-users/ >> search: http://www.listarc.bham.ac.uk/lists/sc-users/search/ > > > -- > > > > > > . > > _______________________________________________ > sc-users mailing list > > info (subscribe and unsubscribe): http://swiki.hfbk-hamburg.de:8888/ > MusicTechnology/880 > archive: http://www.listarc.bham.ac.uk/marchives/sc-users/ > search: http://www.listarc.bham.ac.uk/lists/sc-users/search/ _______________________________________________ sc-users mailing list info (subscribe and unsubscribe): http://swiki.hfbk-hamburg.de:8888/MusicTechnology/880 archive: http://www.listarc.bham.ac.uk/marchives/sc-users/ search: http://www.listarc.bham.ac.uk/lists/sc-users/search/ |
| Free Forum Powered by Nabble | Forum Help |