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

[sc-dev] SF.net SVN: supercollider: [7387] trunk/Source/plugins/DelayUGens.cpp



Revision: 7387
          http://svn.sourceforge.net/supercollider/?rev=7387&view=rev
Author:   joshpar
Date:     2008-02-26 14:58:40 -0800 (Tue, 26 Feb 2008)

Log Message:
-----------
fix Pluck problem

Modified Paths:
--------------
    trunk/Source/plugins/DelayUGens.cpp

Modified: trunk/Source/plugins/DelayUGens.cpp
===================================================================
--- trunk/Source/plugins/DelayUGens.cpp	2008-02-26 22:29:15 UTC (rev 7386)
+++ trunk/Source/plugins/DelayUGens.cpp	2008-02-26 22:58:40 UTC (rev 7387)
@@ -6071,7 +6071,17 @@
 */
 void Pluck_Ctor(Pluck *unit)
 {
-	FeedbackDelay_Reset(unit);
+//	FeedbackDelay_Reset(unit);
+	float maxdelaytime = unit->m_maxdelaytime = IN0(2);
+	float delaytime = unit->m_delaytime = IN0(3);
+	unit->m_dlybuf = 0;
+	DelayUnit_AllocDelayLine(unit);
+	unit->m_dsamp = CalcDelay(unit, unit->m_delaytime);	
+	
+	unit->m_numoutput = 0;
+	unit->m_iwrphase = 0;
+	unit->m_feedbk = CalcFeedback(unit->m_delaytime, unit->m_decaytime);
+	
 	if (INRATE(1) == calc_FullRate) {
 	    if(INRATE(5) == calc_FullRate){
 		SETCALC(Pluck_next_aa_z);


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.