changeset 555:5ef33a8c9702 prerelease

customRender example: added note to render files, added settings.json
author chnrx <chris.heinrichs@gmail.com>
date Fri, 24 Jun 2016 17:20:23 +0100
parents 3b0c860ef209
children ce391098f321
files examples/08-PureData/customRender/heavy/render.cpp examples/08-PureData/customRender/render.cpp examples/08-PureData/customRender/settings.json
diffstat 3 files changed, 78 insertions(+), 15 deletions(-) [+]
line wrap: on
line diff
--- a/examples/08-PureData/customRender/heavy/render.cpp	Fri Jun 24 17:14:24 2016 +0100
+++ b/examples/08-PureData/customRender/heavy/render.cpp	Fri Jun 24 17:20:23 2016 +0100
@@ -1,14 +1,33 @@
 /*
- * render.cpp
- *
- *  Template render.cpp file for on-board heavy compiling
- *
- *  N.B. this is currently *not* compatible with foleyDesigner source files!
- *
- *  Created on: November 5, 2015
- *
- *  Christian Heinrichs
- *
+ ____  _____ _        _    
+| __ )| ____| |      / \   
+|  _ \|  _| | |     / _ \  
+| |_) | |___| |___ / ___ \ 
+|____/|_____|_____/_/   \_\
+
+The platform for ultra-low latency audio and sensor processing
+
+http://bela.io
+
+A project of the Augmented Instruments Laboratory within the
+Centre for Digital Music at Queen Mary University of London.
+http://www.eecs.qmul.ac.uk/~andrewm
+
+(c) 2016 Augmented Instruments Laboratory: Andrew McPherson,
+	Astrid Bin, Liam Donovan, Christian Heinrichs, Robert Jack,
+	Giulio Moro, Laurel Pardue, Victor Zappi. All rights reserved.
+
+The Bela software is distributed under the GNU Lesser General Public License
+(LGPL 3.0), available here: https://www.gnu.org/licenses/lgpl-3.0.txt
+*/
+
+/*
+ *	USING A CUSTOM RENDER.CPP FILE FOR PUREDATA PATCHES - HEAVY
+ *  ===========================================================
+ *  ||                                                       ||
+ *  || OPEN THE ENCLOSED _main.pd PATCH FOR MORE INFORMATION ||
+ *  || ----------------------------------------------------- ||
+ *  ===========================================================
  */
 
 #include <Bela.h>
--- a/examples/08-PureData/customRender/render.cpp	Fri Jun 24 17:14:24 2016 +0100
+++ b/examples/08-PureData/customRender/render.cpp	Fri Jun 24 17:20:23 2016 +0100
@@ -1,8 +1,33 @@
 /*
- * render.cpp
- *
- *  Created on: Oct 24, 2014
- *      Author: parallels
+ ____  _____ _        _    
+| __ )| ____| |      / \   
+|  _ \|  _| | |     / _ \  
+| |_) | |___| |___ / ___ \ 
+|____/|_____|_____/_/   \_\
+
+The platform for ultra-low latency audio and sensor processing
+
+http://bela.io
+
+A project of the Augmented Instruments Laboratory within the
+Centre for Digital Music at Queen Mary University of London.
+http://www.eecs.qmul.ac.uk/~andrewm
+
+(c) 2016 Augmented Instruments Laboratory: Andrew McPherson,
+	Astrid Bin, Liam Donovan, Christian Heinrichs, Robert Jack,
+	Giulio Moro, Laurel Pardue, Victor Zappi. All rights reserved.
+
+The Bela software is distributed under the GNU Lesser General Public License
+(LGPL 3.0), available here: https://www.gnu.org/licenses/lgpl-3.0.txt
+*/
+
+/*
+ *	USING A CUSTOM RENDER.CPP FILE FOR PUREDATA PATCHES - LIBPD
+ *  ===========================================================
+ *  ||                                                       ||
+ *  || OPEN THE ENCLOSED _main.pd PATCH FOR MORE INFORMATION ||
+ *  || ----------------------------------------------------- ||
+ *  ===========================================================
  */
 
 #include <Bela.h>
@@ -433,7 +458,7 @@
 				gPhase -= 2.0 * M_PI;
 
 			/*********/
-			
+
 			for (k = 0, p1 = p0; k < context->audioOutChannels; k++, p1 += gLibpdBlockSize) {
 				audioWrite(context, audioFrameBase + j, k, *p1 * lfo); // MODIFICATION (* lfo)
 			}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/examples/08-PureData/customRender/settings.json	Fri Jun 24 17:20:23 2016 +0100
@@ -0,0 +1,19 @@
+{
+  "fileName": "main.pd",
+  "CLArgs": {
+    "-p": "16",
+    "-C": "8",
+    "-B": "16",
+    "-H": "-6",
+    "-N": "1",
+    "-G": "1",
+    "-M": "0",
+    "-D": "0",
+    "-A": "0",
+    "--pga-gain-left": "10",
+    "--pga-gain-right": "10",
+    "user": "",
+    "make": ""
+  },
+  "breakpoints": []
+}