diff --git a/pde/IF3Si/IF3Si.pde b/pde/IF3Si/IF3Si.pde index 6631e36..412ae78 100644 --- a/pde/IF3Si/IF3Si.pde +++ b/pde/IF3Si/IF3Si.pde @@ -57,6 +57,7 @@ float[] multXZ; PGraphics sphere; +// tiles int tilesOverlap; // testPicture @@ -74,6 +75,9 @@ PFont fpsFont; // siLines ArrayList siLinesData; +// drawSpectrum +float drawSpectrumAFactor; + /////////////////////////////////////////////////////////////////////////////// void setup() { // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -183,7 +187,11 @@ void draw() { // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - // drawSpectrum drawSpectrum(boolean(1), - siLinesData); + siLinesData, // ArrayList 2D data + 0, // threshold + drawSpectrumAFactor, // alpha factor (58 = 1) + 127 // line height + ); // draw spheress```````````````````````````````````````````````````| diff --git a/pde/IF3Si/osc.pde b/pde/IF3Si/osc.pde index 12ce39a..e111dd7 100644 --- a/pde/IF3Si/osc.pde +++ b/pde/IF3Si/osc.pde @@ -15,10 +15,11 @@ void ctlin(int cc, int val) { // midi control values, from Renoise (via SC) // debug - println("### OSC: /ctlin cc:" + cc + " value:" + val); + // println("### OSC: /ctlin cc:" + cc + " value:" + val); // patchbay if (cc == 2) { tilesOverlap = val; } + if (cc == 10) { drawSpectrumAFactor = val; } // example: // if (cc == 2) { flySpeedXfactor = (val - 64); } @@ -33,7 +34,7 @@ void scosc(String mount, int val) { // stuff coming directly from SuperCollider // debug - println("### OSC: /sc mount:" + mount + " value:" + val); + // println("### OSC: /sc mount:" + mount + " value:" + val); // patchbay if (mount.equals("testPatternToggle")) { testPatternToggle = boolean(val); } diff --git a/scd/midiosc.scd b/scd/midiosc.scd index ede90b1..194b8d5 100644 --- a/scd/midiosc.scd +++ b/scd/midiosc.scd @@ -14,7 +14,7 @@ MIDIIn.connect("Renoise MIDI Output", "SuperCollider: in0"); midiFunc = MIDIFunc.cc({ arg val1, val2; - postln(">>> sending: /ctlin " + val2 + " " + val1); + //postln(">>> sending: /ctlin " + val2 + " " + val1); // we need to send /ctlin CCnum CCvalue ~zarquOsc.sendMsg("/ctlin", val2, val1); @@ -23,4 +23,4 @@ midiFunc = MIDIFunc.cc({ }, (0..127)); // match all cc (from 1..127) // testing testing -~zarquOsc.sendMsg("/sc", "testingmount", 10); +//~zarquOsc.sendMsg("/sc", "testingmount", 10);