diff scripts/hvresources/heavy_render.cpp @ 486:7f8d1a3e4cef prerelease

Heavy scope can have arbitrary number of channels
author Giulio Moro <giuliomoro@yahoo.it>
date Tue, 21 Jun 2016 15:18:13 +0100
parents 4d5edf7ee953
children 7eefd4b3aec3
line wrap: on
line diff
--- 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);
 		}
 	}