# HG changeset patch # User chnrx # Date 1466785223 -3600 # Node ID 5ef33a8c97024686ba8f8ac28cd769a277e8e062 # Parent 3b0c860ef2097db92ac18c0228bfab2f4cc86c35 customRender example: added note to render files, added settings.json diff -r 3b0c860ef209 -r 5ef33a8c9702 examples/08-PureData/customRender/heavy/render.cpp --- 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 diff -r 3b0c860ef209 -r 5ef33a8c9702 examples/08-PureData/customRender/render.cpp --- 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 @@ -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) } diff -r 3b0c860ef209 -r 5ef33a8c9702 examples/08-PureData/customRender/settings.json --- /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": [] +}