[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[sc-dev] DemandEnvGen gate inconsistency
- To: "SuperCollider developers list" <sc-dev@xxxxxxxxxxxxxxxx>
- Subject: [sc-dev] DemandEnvGen gate inconsistency
- From: "Dan Stowell" <danstowell@xxxxxxxxx>
- Date: Tue, 9 Dec 2008 15:43:28 +0000
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type:content-transfer-encoding :content-disposition; bh=+cGSUL1sXCVVgYk4HTkdqeNVHx9edk6FTG5zcwDn6qU=; b=x21UQRrbEUbvly7uk5ebolCacVsFAggIIMfynD717aTWfwt1/V5fwRGl4r4jGgMZmn ENtmedDs2ghYTIU/mHQXNcLI1UdCs7QZxfrfG6xj+3xGxDkFS6ig1KEE0ESDobKEzCwe kuhvH3BI7Z/nuSCUDOaPo+09p/mGUBJyDDLUs=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=kAqTz2T/8fZ+cvlb20D++2UqSK1xKjlJwcu4+n/Tas+LqhQPENJiWYUocsoqKKJnCA fCW4ZUHdhnI/Tul5sQhJjT0TfAzy1JolEDJeokIfY9mt+b1+RgDyePXcthRHuXraHBXW ssrT+CSun/skd4RNDDnETK+iwlKinszRybJZs=
- List-id: SuperCollider developers mailing list <sc-devel.create.ucsb.edu>
- Reply-to: sc-dev@xxxxxxxxxxxxxxxx
- Sender: owner-sc-dev@xxxxxxxxxxxxxxxx
Hi -
The DemandEnvGen helpfile says of its gate input:
if gate is x >= 1, the ugen runs
if gate is 0 > x > 1, the ugen is released at the next level (doneAction)
if gate is x < 0, the ugen is sampled end held
whereas the source code says
float zgate = ZIN0(d_env_gate);
if(zgate >= 0.5f) {
unit->m_running = true;
} else if (zgate > 0.f) {
unit->m_running = true;
release = true; // release next time.
} else {
unit->m_running = false; // sample and hold
}
so the upper threshold is 0.5, not 1.0. I don't use this ugen and
don't care which threshold is used, but it should be consistent.
Should the doc be changed, or the unit?
Dan
--
http://www.mcld.co.uk
_______________________________________________
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/