Discussion:
[sc-dev] In.kr().pow(2) produces negative results
Ali Rustamov
2014-09-26 12:21:08 UTC
Permalink
In my synthdef I have a part like this:

inctl = In.kr(inCtlBus);
rel = inctl.pow(2);

So for example when In.kr (raw) gets -0.650048 (negative)
inctl.pow(2) gives -0.422562 (negative again).

_______________________________________________
sc-users mailing list

info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: http://www.listarc.bham.ac.uk/marchives/sc-users/
search: http://www.listarc.bham.ac.uk/lists/sc-users/search/
Beechside
2014-09-27 08:18:38 UTC
Permalink
Odd as it may seem, I believe this is by design. For confirmation, see a
comment on this page by the excellent Charles CĂ©leste Hutchins:

http://swiki.hfbk-hamburg.de:8888/MusicTechnology/867

It's to allow you to compress audio signals and still have an appropriate
range. If you definitely need positive numbers then you have to use n*n,
rather than n.pow(2)




-----
OS X 10.8.5; SuperCollider 3.6.5
--
View this message in context: http://new-supercollider-mailing-lists-forums-use-these.2681727.n2.nabble.com/sc-dev-In-kr-pow-2-produces-negative-results-tp7613574p7613587.html
Sent from the SuperCollider Users New (Use this!!!!) mailing list archive at Nabble.com.

_______________________________________________
sc-users mailing list

info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: http://www.listarc.bham.ac.uk/marchives/sc-users/
search: http://www.listarc.bham.ac.uk/lists/sc-users/search/

Loading...