// setup: se ejecuta al iniciar
flux.on("setup", () => {
const u1 = flux.createNode("THAT4301", { id: "u1" });
const sw = flux.createNode("DPDT", { id: "sw" });
const ledPwr = flux.createNode("LED", { id: "ledPwr", color: "red" });
const ledGr = flux.createNode("LED", { id: "ledGr", color: "green" });
const rPwr = flux.createNode("RESISTOR", { id: "rPwr", value: 1e3 });
const rGr = flux.createNode("RESISTOR", { id: "rGr", value: 1e3 });
const potIn = flux.createNode("POT", { id: "potIn", value: 100e3 });
const potTh = flux.createNode("POT", { id: "potTh", value: 100e3 });
const potRt = flux.createNode("POT", { id: "potRt", value: 100e3 });
const potAt = flux.createNode("POT", { id: "potAt", value: 100e3 });
const potRe = flux.createNode("POT", { id: "potRe", value: 100e3 });
const potOut = flux.createNode("POT", { id: "potOut", value: 100e3 });
const capHp = flux.createNode("CAP", { id: "capHp", value: 10e-9 });
const rHp = flux.createNode("RESISTOR", { id: "rHp", value: 10e3 });
const jackIn = flux.createNode("AUDIO_JACK", { id: "jackIn" });
const jackSc = flux.createNode("AUDIO_JACK", { id: "jackSc" });
const jackOut = flux.createNode("AUDIO_JACK", { id: "jackOut" });
const pwr = flux.createNode("DC_JACK", { id: "pwr" });
// Conexiones power + LED