[sc-users] PV_HainsworthFoote?

Nick Collins nikolaicollinsky at yahoo.co.uk
Tue Oct 10 10:37:15 PDT 2006


Seems broken on my computer. I'll try to have a look and fix it later  
in the week.

N

btw, no percussive onset detector will be good at segmenting pitched  
monophonic instruments without strong initial note transients. Even  
when there are transients to cue off, you'll need to tune the  
threshold carefully to avoid misdetections.


On 10 Oct 2006, at 04:44, sc at stillmovement.org wrote:

> Hey, James!
>
> I tried some experiments with it myself and it just wasn't suitable  
> for my purposes.  I was trying to get event triggers for melodic  
> lines, though.  I wonder what your source is and if is just needs  
> something that's practically pure transient and not much else  
> (thinking more rhythmic here) or with very, very drastic spectral  
> changes?  My attempts on a single instrumental line were bunk.
>
>
>
>
>> Does PV_HainsworthFoote work?
>>
>> b = Buffer.alloc(s, 128, 1);
>> Instr("analysis.hainsworth-live", { |bus, fftbuf, proph = 0.25, propf
>> = 0.25,
>> 		threshold = 1.0, waittime = 0.1|
>> 	var	time = Line.kr(0, 10000, 10000, doneAction:2),
>> 		sig = In.ar(bus, 1),
>> 		fft = FFT(fftbuf, sig),
>> 		trig = PV_HainsworthFoote.ar(fft, proph, propf, threshold,  
>> waittime);
>> 	SendTrig.kr(A2K.kr(trig), 0, time - (BufDur.kr(fftbuf) * 0.5));
>> 	sig ! 2;
>> }, [\mybuf, \mybuf]);
>>
>> o = OSCresponderNode(s.addr, '/tr', { |t, r, m| m.postln; }).add;
>> p = Patch("analysis.hainsworth-live", [8, b.bufnum]).play;
>> p.gui;
>>
>> If I set proph to 1.0 in the gui, propf to 0 (helpfile says
>> "Hainsworth metric on it's [sic] own gives good results") and
>> threshold very low, even 0.01, I still get no triggers. Am I doing
>> something wrong, or is it broken?
>>
>> hjh
>>
>> : H. James Harkins
>> : jamshark70 at dewdrop-world.net
>> : http://www.dewdrop-world.net
>> .::!:.:.......:.::........:..!.::.::...:..:...:.:.:.:..:
>>
>> "Come said the Muse,
>> Sing me a song no poet has yet chanted,
>> Sing me the universal."  -- Whitman
> _______________________________________________
> sc-users mailing list
> sc-users at create.ucsb.edu
> http://www.create.ucsb.edu/mailman/listinfo/sc-users


		
___________________________________________________________ 
Try the all-new Yahoo! Mail. "The New Version is radically easier to use" – The Wall Street Journal 
http://uk.docs.yahoo.com/nowyoucan.html



More information about the sc-users mailing list