From 837d347f6dabc1cce098ec53e14a549221a66efa Mon Sep 17 00:00:00 2001 From: Chip Audette Date: Mon, 13 Feb 2017 23:14:06 -0500 Subject: [PATCH] GUI: js mods to export AudioConnection_F32 and include OpenAudio library --- docs/red/main.js | 5 +++-- docs/red/nodes.js | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/red/main.js b/docs/red/main.js index 2e58777..ecb7f9d 100644 --- a/docs/red/main.js +++ b/docs/red/main.js @@ -60,7 +60,8 @@ var RED = (function() { nns.sort(function(a,b){ return (a.x + a.y/250) - (b.x + b.y/250); }); //console.log(JSON.stringify(nns)); - var cpp = "#include \n#include \n" + var cpp = "#include \n#include \n" + + "#include \n" + "#include \n#include \n#include \n\n" + "// GUItool: begin automatically generated code\n"; // generate code for all audio processing nodes @@ -89,7 +90,7 @@ var RED = (function() { if (wire) { var parts = wire.split(":"); if (parts.length == 2) { - cpp += "AudioConnection patchCord" + cordcount + "("; + cpp += "AudioConnection_F32 patchCord" + cordcount + "("; var src = RED.nodes.node(n.id); var dst = RED.nodes.node(parts[0]); var src_name = make_name(src); diff --git a/docs/red/nodes.js b/docs/red/nodes.js index ea8f864..0ebf09e 100644 --- a/docs/red/nodes.js +++ b/docs/red/nodes.js @@ -362,7 +362,7 @@ RED.nodes = (function() { var words = []; const NODE_COMMENT = "//"; - const NODE_AC = "AudioConnection"; + const NODE_AC = "AudioConnection_F32"; var parseLine = function(line) {