I think the reason for the difference in the UGen is for signal
processing reasons, where negative values should be retained for
signals less then 0. There are a few other instances of this I think
(though I can't remember them off the top of my head). I am pretty
sure this is what James McCartney was referring to a ways back when
he said the implementations in scsynth and in sclang SHOULD be
different.
Josh
On Dec 17, 2009, at 10:33 AM, Tim Blechmann wrote:
the unit generator implements it as defined in wikipedia (according
to
Graham, Knuth, & Patashnik) [2]:
x - floor(x)
the language as defined at wolfram [3] and the c99 modf function [4]:
x - trunc(x)
******************************************
/* 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/