On Apr 27, 2008, at 2:03 PM, Josh Parmenter wrote:
But every plot-able Class does need to be converted differently. Env needs to go through an asSignal->as(Array) process, where Buffer-data needs to be grabbed from the Server, and FloatArrays are ready to go. Doesn't it make sense that Env:plot should look something like this?
I wasn't clear enough... what I meant is, you should be able to plot Array, FloatArray, Signal, Wavetable etc. transparently. Really the better solution there is to get SCSoundFileView to accept subclasses of Array as well. That is, this...
if (!isKindOfSlot(slots+0, class_array)) return errWrongType;
... should also permit class_floatarray, class_doublearray, class_signal, and possibly the class_int*arrays as well.
Obviously something like Env must convert itself before passing the data into .plot :)
hjh
: H. James Harkins
: jamshark70@...
: http://www.dewdrop-world.net
.::!:.:.......:.::........:..!.::.::...:..:...:.:.:.:..:
"Come said the Muse,
Sing me a song no poet has yet chanted,
Sing me the universal." -- Whitman
_______________________________________________
Sc-devel mailing list
Sc-devel@...
http://lists.create.ucsb.edu/mailman/listinfo/sc-devel