[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[sc-dev] UnaryOpUGen with dbamp and ampdb broken for audio-rate?



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

I think there is a severe problem here with some unary ops and audio-rate.

Compare:

 play {
   var lin;
   var in = DC.kr(0);
   var db = in.ampdb;
   db.poll(0, "db");
   lin = db.dbamp;
   lin.poll(0, "lin");
   0.0
 }

 // db: -inf
 // lin: 0.0

OK!

 play {
   var lin;
   var in = DC.ar(0);  // audio-rate!
   var db = in.ampdb;
   db.poll(0, "db");
   lin = db.dbamp;
   lin.poll(0, "lin");
   0.0
 }

 // db: -764.616   huh?
 // lin: -nan      WTF !?!


This is with SC 3.6.5; I don't know if this is fixed in master? Looks
like a very severe bug to me.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBAgAGBQJUlBmkAAoJEKZFmaPaYk6QQRQP/3HS/Q2vW8Q4oRfdY37K7ZCo
lBlFCR7FSUXxYCeI0fwIZod8O5OoZ4h2mo/rvy2Y12xOcX33HXfddLOm/Xx9bJlA
Cv3SZDMSNag02U3Z83g48fn+p+UsBjYiLdAn7sWf+Xktc5bVKU0fZWIFvc070YZh
G50cgT6wILNNIrE4V8lQNrGxXg93QGgBXxBzhlv22eFFr8pcTK85ji64eLYkQnpN
zdyyIltC6rXtrAJd0oNKHOG2bcsGMjy7NoLqMxeyzrUnSp6rxKCPnz9jMW2XRIsg
2j2pBXnfIfuaetVY2F1tPjvN1c6XBp/Z4mgxgzAK5ZAeCKmK2Z6ZrFJes9oUBIDs
/EDnwc56TAwxEMa+5JVhclGFjvwcTHBhETyr/YGIlIeuw9onnYI9f8RzxAeZFVKB
9wP2zY5nit3XMWRh9/kB6nXy+tIl4VzZziyUrFk8ZaJg6k2RqFmu0wnEoKDWWWlo
O80S+vHnNrAfkQxHqP+kvpKnVcu2NCZYFfXbfJmbTX5qSyEIgvCGDIuUqKNpq800
rcQo3QF4lDIPguv2Ze8Mu+OBPdtV9GuqqQNQkmgoIA45VfyKa4PIO+YRTzyFeB7a
vww/KCOp9G9aiZDcf7+h+sib1uNUF000+CIH+SaKS7vIogzkelW1jHlsJNba1ZbS
0ox7joqXSxYdqBZoU5OD
=AmzL
-----END PGP SIGNATURE-----

_______________________________________________
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/