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

[sc-dev] SF.net SVN: supercollider:[8209] trunk/build/SCClassLibrary/Common/Core/ Clock.sc



Revision: 8209
          http://supercollider.svn.sourceforge.net/supercollider/?rev=8209&view=rev
Author:   jamshark70
Date:     2008-12-19 13:51:03 +0000 (Fri, 19 Dec 2008)

Log Message:
-----------
Minor: TempoClock sends better notifications to dependants.

Modified Paths:
--------------
    trunk/build/SCClassLibrary/Common/Core/Clock.sc

Modified: trunk/build/SCClassLibrary/Common/Core/Clock.sc
===================================================================
--- trunk/build/SCClassLibrary/Common/Core/Clock.sc	2008-12-19 13:45:23 UTC (rev 8208)
+++ trunk/build/SCClassLibrary/Common/Core/Clock.sc	2008-12-19 13:51:03 UTC (rev 8209)
@@ -86,6 +86,8 @@
 	}
 
 	stop {
+		this.changed(\stop);
+		this.releaseDependants;
 		all.take(this);
 		this.prStop;
 	}
@@ -143,6 +145,7 @@
 	// (even another TempoClock's logical time).
 	tempo_ { arg newTempo;
 		this.setTempoAtBeat(newTempo, this.beats);
+		this.changed(\tempo);  // this line is added
 	}
 	beatsPerBar_ { arg newBeatsPerBar;
 		if (thisThread.clock != this) { 
@@ -231,7 +234,7 @@
 		baseBarBeat = beats;
 		beatsPerBar = newBeatsPerBar;
 		barsPerBeat = beatsPerBar.reciprocal;
-		this.changed; 
+		this.changed(\meter);
 	}
 }
 


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/