Revision: 7653
http://svn.sourceforge.net/supercollider/?rev=7653&view=revAuthor: cruxxial
Date: 2008-07-05 12:33:33 -0700 (Sat, 05 Jul 2008)
Log Message:
-----------
NumberEditor should have deferred to the spec to answer what rate it is, not tried to do it by its own class heirarchy
Modified Paths:
--------------
trunk/build/SCClassLibrary/crucial/Editors/NumberEditor.sc
Modified: trunk/build/SCClassLibrary/crucial/Editors/NumberEditor.sc
===================================================================
--- trunk/build/SCClassLibrary/crucial/Editors/NumberEditor.sc 2008-07-05 19:31:48 UTC (rev 7652)
+++ trunk/build/SCClassLibrary/crucial/Editors/NumberEditor.sc 2008-07-05 19:33:33 UTC (rev 7653)
@@ -88,7 +88,8 @@
instrArgFromControl { arg control;
^value
}
- rate { ^\scalar }
+ rate { ^spec.rate } // probably scalar
+
guiClass { ^NumberEditorGui }
@@ -102,7 +103,7 @@
super.init(val, aspec);
lag = defaultLag;
}
- rate { ^\control }
+ //rate { ^\control }
canDoSpec { arg aspec; ^aspec.isKindOf(ControlSpec) }
addToSynthDef { arg synthDef,name;
@@ -191,6 +192,8 @@
^super.new.value_(val)
}
// value returns true/false
+ // this means this could only be a noncontrol
+ // i should change this
instrArgFromControl { arg control;
^value
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
_______________________________________________
sc-dev mailing list
sc-dev@...
http://lists.create.ucsb.edu/mailman/listinfo/sc-dev