[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [sc-dev] Donce?
- To: sc-dev@xxxxxxxxxxxxxxxx
- Subject: Re: [sc-dev] Donce?
- From: Nick Collins <clicksonnil@xxxxxxxxx>
- Date: Tue, 3 Feb 2015 12:46:51 +0000
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to; bh=vuxf/FFm9xzV3mgATffGgCUMnK6I8dYCAa75alIX0rY=; b=c9uKml7wO1DsHrXKuh1SVCx7cYKU/+DfB3ISc/itjaYzk/2yOlcI8MLxRnd3LHVag8 rueIaMSRYTZug8l6HWsV6EWH5pQhOPzAZk4P3sKMJlMQDjJfyFppMEVe/g3LZ1pRlGu4 gAyq9ZnUq31J/p6nDoZB1wbdH6ORl03iafGoRxmlYh5wpHm1mCRiFKgl5RjTkvIWUPAq 98LQAYBXyF3mpUkeKKMN4To/OngMMcGJdavWtyCRhmKhaGDcWhSZvWR9o7QYdiCUWxWH HCtAkmmgryJs7+VtuWg5ZwH1sCia7GH4Cd2a4tWceiWLoK9kEuwHO3g9YPsBo8/zyqP+ G98g==
- In-reply-to: <87h9v4fx6q.wl-jamshark70@qq.com>
- List-id: SuperCollider developers mailing list <sc-devel.create.ucsb.edu>
- References: <87h9v4fx6q.wl-jamshark70@qq.com>
- Reply-to: sc-dev@xxxxxxxxxxxxxxxx
- Sender: owner-sc-dev@xxxxxxxxxxxxxxxx
electronic donce music, clearly. Perhaps related to the Dunce synthesis UGen : )
Um, curious, I had a quick look and see in the code:
void Donce_next(Donce *unit, int inNumSamples)
{
if (inNumSamples) {
if (unit->m_bufcounter == unit->mWorld->mBufCounter) {
OUT0(0) = unit->m_prev;
} else {
float x = DEMANDINPUT(0);
unit->m_prev = x;
OUT0(0) = x;
}
} else {
RESETINPUT(0);
}
}
void Donce_Ctor(Donce *unit)
{
SETCALC(Donce_next);
OUT0(0) = 0.f;
}
apparently unit->m_bufcounter uninitialised. Perhaps assumed initialised zero, so the if test triggers only once when unit->mWorld->mBufCounter = 0 at start? Are the clauses the wrong way around, should take demand rate once and then just repeat?
best
N
On 2 Feb 2015, at 10:02, James Harkins <jamshark70@xxxxxx> wrote:
> Donce seems to be undocumented. What does it do?
>
> 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/
_______________________________________________
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/