diff scripts/hvresources/heavy_render.cpp @ 492:e9821d65b9ba prerelease

Heavy: your patch on the enzienaudio website should be called bela. You need to update that from your enzienaudio.com account.
author Giulio Moro <giuliomoro@yahoo.it>
date Tue, 21 Jun 2016 17:36:58 +0100
parents 45dee9066d43
children eb237b131ec7
line wrap: on
line diff
--- a/scripts/hvresources/heavy_render.cpp	Tue Jun 21 17:24:20 2016 +0100
+++ b/scripts/hvresources/heavy_render.cpp	Tue Jun 21 17:36:58 2016 +0100
@@ -15,7 +15,7 @@
 #include <Midi.h>
 #include <Scope.h>
 #include <cmath>
-#include <Heavy_bbb.h>
+#include <Heavy_bela.h>
 #include <string.h>
 #include <stdlib.h>
 #include <string.h>
@@ -25,7 +25,7 @@
  *	HEAVY CONTEXT & BUFFERS
  */
 
-Hv_bbb *gHeavyContext;
+Hv_bela *gHeavyContext;
 float *gHvInputBuffers = NULL, *gHvOutputBuffers = NULL;
 unsigned int gHvInputChannels = 0, gHvOutputChannels = 0;
 
@@ -173,7 +173,7 @@
 	hvMidiHashes[kmmChannelPressure] = hv_stringToHash("__hv_touch");
 	hvMidiHashes[kmmPitchBend] = hv_stringToHash("__hv_bendin");
 
-	gHeavyContext = hv_bbb_new(context->audioSampleRate);
+	gHeavyContext = hv_bela_new(context->audioSampleRate);
 
 	gHvInputChannels = hv_getNumInputChannels(gHeavyContext);
 	gHvOutputChannels = hv_getNumOutputChannels(gHeavyContext);
@@ -359,9 +359,9 @@
 
 
 	// replacement for bang~ object
-	//hv_vscheduleMessageForReceiver(gHeavyContext, "bbb_bang", 0.0f, "b");
+	//hv_vscheduleMessageForReceiver(gHeavyContext, "bela_bang", 0.0f, "b");
 
-	hv_bbb_process_inline(gHeavyContext, gHvInputBuffers, gHvOutputBuffers, context->audioFrames);
+	hv_bela_process_inline(gHeavyContext, gHvInputBuffers, gHvOutputBuffers, context->audioFrames);
 
 	// Bela digital out
 	// Bela digital out at signal-rate
@@ -430,7 +430,7 @@
 void cleanup(BelaContext *context, void *userData)
 {
 
-	hv_bbb_free(gHeavyContext);
+	hv_bela_free(gHeavyContext);
 	if(gHvInputBuffers != NULL)
 		free(gHvInputBuffers);
 	if(gHvOutputBuffers != NULL)