GUI: js mods to export AudioConnection_F32 and include OpenAudio library

pull/5/head
Chip Audette 7 years ago
parent 9755f6cbdc
commit 837d347f6d
  1. 5
      docs/red/main.js
  2. 2
      docs/red/nodes.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 <Audio.h>\n#include <Wire.h>\n"
var cpp = "#include <OpenAudio_ArduinoLibrary.h>\n#include <Audio.h>\n"
+ "#include <Wire.h>\n"
+ "#include <SPI.h>\n#include <SD.h>\n#include <SerialFlash.h>\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);

@ -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) {

Loading…
Cancel
Save