| Thank you!
I use Onsets and magic!! I have a percussion granulator. Now I have to work with gran parameters and more and more things...... For example have 3 or more granulators freeze at the same time (polyphonic gran).
James, the Help.gui is really nice but unfortunately doesn't work like aspected, nothing appears in the white right window, I have to press "Open Help File" to see the content (sc 3.3.1 rev 9267). Btw, here is a basic code for a percugranular synth. It's also funny with voice fx.
Best,
p
( // allocate a Buffer s = Server.local; b = Buffer.alloc(s, 44100 * 1.0, 1); // a one second 1 channel Buffer // Prepare the buffers q = Buffer.alloc(s, 512); )
( { var trate, dur, clk, pos, pan, in, chain, onsets, thresh; trate = MouseY.kr(8,120,1); dur = 12 / trate; thresh = 0.5; clk = Impulse.kr(trate); pos = MouseX.kr(0,BufDur.kr(b.bufnum)) + TRand.kr(0, 0.01, clk); pan = WhiteNoise.kr(0.6); in = SoundIn.ar(0); chain = FFT(q, in); style="color: #0000bf">Onsets.kr(chain, thresh); RecordBuf.ar(in, b.bufnum, loop: 0, trigger: onsets); TGrains.ar(2, clk, b, 1, pos, dur, pan, 0.1); }.play; )
Le 26 juil. 09 à 21:36, Batuhan Bozkurt a écrit : Yes, Onsets UGen is the pretty much standard way of doing that and works beautifully. There is also the Coyote UGen which is in sc-plugins package under BatUGens which works in time domain (without fft processing) so I think it responds a wee bit faster to attacks and works very well for percussion for me (I initially coded it for tracking guitar onsets where fft based solutions were not working well for me, so it works for not-so percussive attacks as well, but of course has its drawbacks too). On Jul 26, 2009, at 10:23 PM, James Harkins wrote: On Jul 26, 2009, at 1:54 PM, Perdo wrote: So now I want to trigger the RecordBuf from a transient attack (ex: percussion) with loop mode at 0 ( of RecordBuf). I saw Amplitud for amp following but not an specific attack detection ugen (maybe not difficult to implement).
Any idea haw to trigger the recording buffer from an attack detection?
Onsets.kr.
The Help.gui is really nice for finding UGens. In this case, you'd open the help gui, click on [[UGens]] and see a category [[Machine Listening]]... oh, that sounds promising... then there is Onsets under that.
Browse around... you'll find all kinds of stuff you haven't seen yet :)
Onsets, btw, is some very nice work -- I've been meaning to offer public thanks to Dan for that one.
hjh
: H. James Harkins
.::!:.:.......:.::........:..!.::.::...:..:...:.:.:.:..:
"Come said the Muse, Sing me a song no poet has yet chanted, Sing me the universal." -- Whitman
|