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

[sc-dev] SF.net SVN: quarks:[2676] redSys



Revision: 2676
          http://sourceforge.net/p/quarks/code/2676
Author:   redfrik
Date:     2013-12-28 13:22:46 +0000 (Sat, 28 Dec 2013)
Log Message:
-----------
redSys: added default values for RedTime-new and some more examples

Modified Paths:
--------------
    redSys/HelpSource/Classes/RedTime.schelp
    redSys/HelpSource/Overviews/redSysOverview.schelp
    redSys/redTools/RedTime.sc

Modified: redSys/HelpSource/Classes/RedTime.schelp
===================================================================
--- redSys/HelpSource/Classes/RedTime.schelp	2013-12-28 02:18:09 UTC (rev 2675)
+++ redSys/HelpSource/Classes/RedTime.schelp	2013-12-28 13:22:46 UTC (rev 2676)
@@ -50,3 +50,15 @@
 
 c.asArray
 ::
+
+CODE::
+//calculating the number of hours and minutes between two points in time
+RedTime(13, 30)-RedTime(12, 20)	//from 13:30 backwards to 12:20
+//-> 1h 10m difference
+
+RedTime(3, 30)-RedTime(12, 20)	//from 03:00 backwards to 12:20
+//-> 15h 10m difference
+
+RedTime(0, 0, 50)-RedTime(22, 10, 51)	//from 00:00:50 backwards to 22:10:51
+//-> 1h 49m 59s difference
+::

Modified: redSys/HelpSource/Overviews/redSysOverview.schelp
===================================================================
--- redSys/HelpSource/Overviews/redSysOverview.schelp	2013-12-28 02:18:09 UTC (rev 2675)
+++ redSys/HelpSource/Overviews/redSysOverview.schelp	2013-12-28 13:22:46 UTC (rev 2676)
@@ -167,7 +167,7 @@
 ## link::Classes/RedLive:: || sample and repeat
 ## link::Classes/RedOnePole:: || one pole filter with separate up and down coefficients
 ## link::Classes/RedOverdub:: || overdub recording
-## link::Classes/RedRamp:: resettable phasor with per period rate control|| 
+## link::Classes/RedRamp:: || resettable phasor with per period rate control
 ## link::Classes/RedSequencer:: || simple sequencer
 ## link::Classes/RedSequencer2:: || simple sequencer
 ## link::Classes/RedSlide:: || logarithmic lag
@@ -179,6 +179,8 @@
 SECTION:: changeLog
 
 code::
+//--changes 131228:
+//added default values for RedTime-new and some more examples
 //--changes 130927:
 //minor speed up by replacing & with bitAnd, << with leftShift and >> with rightShift
 //--changes 130902:

Modified: redSys/redTools/RedTime.sc
===================================================================
--- redSys/redTools/RedTime.sc	2013-12-28 02:18:09 UTC (rev 2675)
+++ redSys/redTools/RedTime.sc	2013-12-28 13:22:46 UTC (rev 2676)
@@ -2,7 +2,7 @@
 
 RedTime {
 	var <>h, <>m, <>s;
-	*new {|h, m, s| ^super.newCopyArgs(h, m, s)}
+	*new {|h= 0, m= 0, s= 0| ^super.newCopyArgs(h, m, s)}
 	*newFromSeconds {|sec|
 		var sx, mx, my, hx;
 		sx= sec%60;

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/