Created
September 4, 2024 16:32
-
-
Save flordefuego/557530a7a8ff0574ce5abde49aae6c16 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //Adaptation from Echopon https://gist.github.com/echophon/1c7325f907b0e4eb1850e956c25dafd4 | |
| // to try this example, run the processing sketch in the folder processing. | |
| // clicking on the sketch window sends the mouse x and y position to hydra via osc | |
| // set port to listen to osc messages. default port is 57101 | |
| // 49162 is the default OSC port that Orca sends from | |
| msg.setPort(49162) | |
| //init a single letter object for Hydra to use & to match the msg we send from Orca | |
| window.z = [0,0,0,0] | |
| //update on msg received | |
| msg.on('/z', (args) => { z = args }) | |
| // end setup | |
| // | |
| // reference this object in hydra with indices | |
| osc(10) | |
| .color(()=>z[0],1,()=>z[3]) | |
| .modulate(noise(()=>z[2]*10)) | |
| .modulate(src(o0),()=>z[1]) | |
| .out() | |
| /* Run this section in ORCA | |
| .#.....HYDRA.....# | |
| .................. | |
| .#.SETUP.#........ | |
| .....#..SOME.#.... | |
| .........#..VARS.# | |
| .................. | |
| ..2Cz.3C2..1Ca.5C. | |
| .bVr.cV1..dV5.eV7. | |
| .................. | |
| .................. | |
| ..D2..#.SEND.AN..# | |
| ...H..#.OSC.PACK.# | |
| ..gE.....5K.bcde.. | |
| ...E*.....=zr157.. | |
| */ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment