[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[sc-dev] SF.net SVN: supercollider:[8147] trunk/Source/plugins/NoiseUGens.cpp
Revision: 8147
http://supercollider.svn.sourceforge.net/supercollider/?rev=8147&view=rev
Author: danstowell
Date: 2008-12-15 15:00:33 +0000 (Mon, 15 Dec 2008)
Log Message:
-----------
Fix for another bug which can cause scary explosions! Seems like the constructor for PinkNoise was wrong - on its very first run it output the "total" value... but this is not what's normally output, in fact it's a very large number indeed (on the order of 4 million). If you feed PinkNoise.ar into a filter such as MoogFF, then you get about a second of high-intensity pollution... this patch fixes it.
Modified Paths:
--------------
trunk/Source/plugins/NoiseUGens.cpp
Modified: trunk/Source/plugins/NoiseUGens.cpp
===================================================================
--- trunk/Source/plugins/NoiseUGens.cpp 2008-12-15 14:18:19 UTC (rev 8146)
+++ trunk/Source/plugins/NoiseUGens.cpp 2008-12-15 15:00:33 UTC (rev 8147)
@@ -343,9 +343,10 @@
dice[i] = newrand;
}
unit->mTotal = total;
-
- ZOUT0(0) = total;
+
RPUT
+
+ PinkNoise_next(unit, 1);
}
////////////////////////////////////////////////////////////////////////////////////////////////////////
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
_______________________________________________
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/