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

[sc-users] open a stereo buffer in SCSoundFileView



Hello list, 

I'm trying to open a stereo buffer (not a file) with SCSoundFileView, but it only opens one channel

The example I'm sending, I'm using loadDialog to create a stereo buffer...

can anyone help?

Thanks,
Miguel


(
b = Buffer.loadDialog(s);
b.plot;
)
(
b.loadToFloatArray(0, action: { 
arg array;
{
b.updateInfo();
    array = array.as(Array);
w = GUI.window.new(\test, Rect(10, 50, 600, 200)).front;
v = GUI.soundFileView.new(w, Rect(2, 2, 596, 196));
v.elasticMode = true;
v.data = "">
v.xZoom = array.size / 596;
v.refresh;
}.defer;
"done".postln;
});
b.free;
)


.
.
.
.
.
+351 96 566 57 48
.
chat: mmcvirus
skype: mcardoso_soopa.org