# HG changeset patch # User Giulio Moro # Date 1466518693 -3600 # Node ID 7f8d1a3e4cef08046969ac3d016f58c5629242d2 # Parent 506a319c08cfe6ccb2192da72062d2078d3b29c0 Heavy scope can have arbitrary number of channels diff -r 506a319c08cf -r 7f8d1a3e4cef examples/08-PureData/scope/_main.pd --- a/examples/08-PureData/scope/_main.pd Tue Jun 21 15:17:38 2016 +0100 +++ b/examples/08-PureData/scope/_main.pd Tue Jun 21 15:18:13 2016 +0100 @@ -6,9 +6,9 @@ #X obj 267 175 noise~; #X obj 192 170 phasor~ 10; #X text 16 15 Bela Scope; -#X text 116 15 Make sure the IDE is running and then bring up the scope -in your browser http://192.168.7.2/scope/ You can log to the scope -by sending to dac~ 27 to 30; +#X text 11 46 Make sure the IDE is running ( ./ide.sh start ) and then +bring up the scope in your browser http://192.168.7.2/scope/ You can +log to the scope by sending to dac~ 27 to 30; #X connect 2 0 1 0; #X connect 3 0 1 1; #X connect 4 0 1 3; diff -r 506a319c08cf -r 7f8d1a3e4cef scripts/hvresources/heavy_render.cpp --- a/scripts/hvresources/heavy_render.cpp Tue Jun 21 15:17:38 2016 +0100 +++ b/scripts/hvresources/heavy_render.cpp Tue Jun 21 15:18:13 2016 +0100 @@ -149,7 +149,6 @@ unsigned int hvMidiHashes[7]; // Bela Scope Scope scope; -const unsigned int gMaxScopeChannels = 4; unsigned int gScopeChannelsInUse; float* gScopeOut; @@ -394,7 +393,7 @@ for (k = 0, p1 = p0 + gLibpdBlockSize * gFirstScopeChannel; k < gScopeChannelsInUse; k++, p1 += gLibpdBlockSize) { gScopeOut[k] = *p1; } - scope.log(gScopeOut[0], gScopeOut[1], gScopeOut[2], gScopeOut[3]); + scope.log(gScopeOut); } }