[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[sc-dev] Duty bug
- To: sc-dev <sc-dev@xxxxxxxxxxxxxxxx>
- Subject: [sc-dev] Duty bug
- From: James Harkins <jamshark70@xxxxxx>
- Date: Fri, 30 Jan 2015 10:32:04 +0800
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qq.com; s=s201307; t=1422585126; bh=zrQPcvdcQfNinSrFdDq2UTubiUZtQkQoBPJ4HlEC5jE=; h=X-QQ-mid:Received:X-QQ-SSF:X-QQ-FEAT:X-QQ-GoodBg:Date:Message-ID:From:To:Subject:User-Agent:MIME-Version:Content-Type: X-QQ-SENDSIZE; b=sXObIN564AcajJBgKqzkyIfso5H3MmcyA5ZwPHhguw+qWJvZnv1TtQedjJtK/mB6m mWZN8LnRDSc6zSXHTVeZ5sX/YvD7n7WRUGuduqjwrQ6fCpNWCdK9TqsjG1RSz0gxl4 p/KaklecU/UH00C6a0kt96HuAHQkbNxt9FqBPaSQ=
- List-id: SuperCollider developers mailing list <sc-devel.create.ucsb.edu>
- Reply-to: sc-dev@xxxxxxxxxxxxxxxx
- Sender: owner-sc-dev@xxxxxxxxxxxxxxxx
- User-agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM/1.14.9 (Gojō) APEL/10.8 EasyPG/1.0.0 Emacs/24.3 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO)
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/