2015-09-11 15:19:06 +02:00
|
|
|
/*
|
|
|
|
This file is part of "Interface Fractures III - Silicon".
|
|
|
|
Copyright (c) 2015 Luka Prinčič, All rights reserved.
|
|
|
|
This program is free software distributed under
|
|
|
|
GNU General Public Licence. See COPYING for more info.
|
|
|
|
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
|
|
|
|
|
|
|
osc.pde - open sound control communication
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
2015-09-13 13:50:46 +02:00
|
|
|
//_____________________________________________________________________________
|
|
|
|
void ctlin(int cc, int val) { // midi control values, from Renoise (via SC)
|
2015-09-10 22:00:52 +02:00
|
|
|
|
2015-09-13 13:50:46 +02:00
|
|
|
// debug:
|
2015-09-11 20:22:39 +02:00
|
|
|
// println("### OSC: /ctlin cc:" + cc + " value:" + val);
|
2015-09-10 22:00:52 +02:00
|
|
|
|
2015-09-11 15:19:06 +02:00
|
|
|
// patchbay
|
2015-09-10 22:00:52 +02:00
|
|
|
if (cc == 2) { tilesOverlap = val; }
|
2015-09-11 20:22:39 +02:00
|
|
|
if (cc == 10) { drawSpectrumAFactor = val; }
|
2015-09-13 13:50:46 +02:00
|
|
|
if (cc == 11) { drawSpectrumThreshold = val; }
|
|
|
|
if (cc == 12) { drawSpectrumHeight = val; }
|
|
|
|
if (cc == 13) { drawSpectrumWidth = val; }
|
|
|
|
if (cc == 14) { drawSpectrumAwidth = val; }
|
2015-09-10 22:00:52 +02:00
|
|
|
|
2015-09-13 13:50:46 +02:00
|
|
|
}
|
2015-09-11 15:19:06 +02:00
|
|
|
|
|
|
|
|
2015-09-13 13:50:46 +02:00
|
|
|
// ____________________________________________________________________________
|
|
|
|
void scosc(String mount, int val) { // stuff coming directly from SuperCollider
|
2015-09-10 22:00:52 +02:00
|
|
|
|
2015-09-13 13:50:46 +02:00
|
|
|
// debug:
|
2015-09-11 20:22:39 +02:00
|
|
|
// println("### OSC: /sc mount:" + mount + " value:" + val);
|
2015-09-10 22:00:52 +02:00
|
|
|
|
2015-09-11 15:19:06 +02:00
|
|
|
// patchbay
|
2015-09-10 22:00:52 +02:00
|
|
|
if (mount.equals("testPatternToggle")) { testPatternToggle = boolean(val); }
|
|
|
|
if (mount.equals("testPictureToggle")) { testPictureToggle = boolean(val); }
|
|
|
|
|
|
|
|
|
2015-09-13 13:50:46 +02:00
|
|
|
} // - - - - - - - - - - - - - - - - - - - -
|
2015-09-10 22:00:52 +02:00
|
|
|
|
|
|
|
|