[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[sc-dev] Duty bug



Want to see something funny?

{
	var sig = SinOsc.ar(440, 0, 0.1),
	bufs = Array.fill(2, { LocalBuf(1, 1) }),
	read = Dbufrd(bufs, 0),
	write = Dbufwr(sig, bufs, 0);
	Duty.ar(SampleDur.ir, [0, DC.ar(0)], read <! write)
}.plot;

Expand to full screen, and you'll see that the right-hand channel (where Duty's reset input is audio rate) has been decimated by a factor of 2!

It's an easy fix... actually, it was fixed some six years ago for Duty_next_dk (control rate reset), but the fix was not put into Duty_next_da at the same time.

https://github.com/supercollider/supercollider/commit/76c22f4ea3801eac8df3b97c5cf7fdd1af65bdfc

That just means that nobody is using an audio-rate reset trigger alongside single-sample feedback. That makes sense :)

I'll push the fix shortly. I don't think there's any need for a pull request.

hjh



_______________________________________________
sc-dev mailing list

info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: https://listarc.bham.ac.uk/marchives/sc-dev/
search: https://listarc.bham.ac.uk/lists/sc-dev/search/