[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [sc-dev] .frac, .sign - perhaps other SimpleNumber primitives???
- To: sc-dev@xxxxxxxxxxxxxxxx
- Subject: Re: [sc-dev] .frac, .sign - perhaps other SimpleNumber primitives???
- From: Axel Balley <axel.lists@xxxxxxxxx>
- Date: Wed, 16 Dec 2009 00:41:24 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to :in-reply-to:content-type:content-transfer-encoding:mime-version :subject:date:references:x-mailer; bh=7Em18JIzP9XyrSQEDEOtMn0FN7JwlCOoCXcGFvJxp3E=; b=hGIchuM7dqPmTCoPgeTZaHujVq7Q9xEzknkaf2kAPTPHVmphf5zQm77jD1pfyUzeQl mjqXyCrFAqgDPWZi0P0iOxYhbc86IHMnZb0cbeG2bzEUAJh9f51+xgPCng+Le6EAPfHu fnL8rvWfroAu34/40ODX+y4V4oQWFn7mi0JiU=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:from:to:in-reply-to:content-type :content-transfer-encoding:mime-version:subject:date:references :x-mailer; b=h88Lr8uXqf/jAkgdVVXc/wu/2mCA1SEmAfxoOjGmWm7wcYLHjKnuu7nQLn0SjOc3La pHiVgGkz2aFqo2kzOyCwTiHlFdrIDd4dfb5teZ8AUtwpyrrb7v+YAlyud8yWIxHlgvAx QstWxCMRRhwmr5lzudmuN10iYly8ETAnzFa/o=
- In-reply-to: <7A701E66-AAD0-4C34-9EAC-272F51D0DEF1@xxxxxxxxxxxxxxxxx>
- List-id: SuperCollider developers mailing list <sc-devel.create.ucsb.edu>
- References: <7A701E66-AAD0-4C34-9EAC-272F51D0DEF1@xxxxxxxxxxxxxxxxx>
- Reply-to: sc-dev@xxxxxxxxxxxxxxxx
- Sender: owner-sc-dev@xxxxxxxxxxxxxxxx
In PyrMathOps, opFrac was changed from a->uf - floor(a->uf) to using
the sc_frac inline function
This is the same code that is used in the frac Unary UGen, that seems
to present the same wrong behaviour
There's a comment in the UnaryOps code that says :
// NOTE: this will only work if the FPU is set to round downward.
// That is NOT the default rounding mode. SC sets it to this mode.
It looks like SC no longer sets rounding to this mode, I'm not sure
where and how this was done before...
Le 15 déc. 09 à 21:35, Josh Parmenter a écrit :
Hi Tim...
Just saw this in the new build:
0.6.frac
-0.4
it should return 0.6
0.6.sign
returns a float, not 1
Josh
******************************************
/* Joshua D. Parmenter
http://www.realizedsound.net/josh/
“Every composer – at all times and in all cases – gives his own
interpretation of how modern society is structured: whether actively
or passively, consciously or unconsciously, he makes choices in this
regard. He may be conservative or he may subject himself to
continual renewal; or he may strive for a revolutionary, historical
or social palingenesis." - Luigi Nono
*/
_______________________________________________
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/