I thought I'd start a basics for beginners thread to better understand OSC for myself, but also to help anyone else who is new to OSC. As I continue to build different aspects of my template, I come across certain issues, syntax problems, or ways widgets work that I have questions about.
I'm trying to make a tap button that sends a midi cc message of a specific value. In this case, I'd like a button to send channel 1, cc1 value of 64.
I've made a button, but how come this doesn't work?
Got another basic question about text and the textarea widgets.
I would like to label my faders with the CC# but also the description of what the control does. I can use multiple text widgets per fader...but I wanted to know if there's a more simplified way, since my description will typically be a single word.
The question is can I add a line break into the text widget? So the Top line reads "CC#" and beneath that it reads "Expression" for example.
Answering your previous question:
You can use the linkId prop, setting a button to be the master and all the faders to be slaves (prepending the linkId name with >> or << respectively)
I've added this functionality to the previous fader example I did before.
Here is the new session demonstrating it: fader_composite.json (11.9 KB)
and it gets more complex
Not sure if it's the best approach, but it works fine.
Basically I created some variables to reset faders groups, and I'm using them as linkdId masters.
Then, in the button, I removed the linkId and added an onValue script to set the variables groups to their corresponding values.
Here is the session example (too lazy to rename it, lol) fader_composite.json (12.4 KB)
Well, learning a language is quite a long journey. The hardest thing is not the syntax, but to make your mind thinking logically. I suggest starting with the basic concepts, operators and types definition, like string, boolean, array, object, etc.