What's new

Open Stage Control (Tutorial) - An alternative to Lemur and TouchOSC

Haven't tried it, but I would think so. I see no reason, it shouldn't.
Yes, switches are great for these radio button scenarios. I also often use a matrix of buttons, altough a little complicated to setup, I like the way you can customise the actions and properties of every single button in the matrix
Yeah man flexibility is good. And thanks for sharing that json file. I've just understood how switches work with a panel and tabs.

I just successfully made a "nest" panel with switches that operate the tabs from the nested panel. :)

I now need to understand how to make a button switch tabs when the button is on a nested panel or modal box and that button will show different tabs. I can't just do everything I want using Switches so buttons are essential. If I can learn that, then this is just gonna be one of theist days I've had recently! I almost feel like a king! 😂

Screenshot 2021-04-24 at 17.50.26.png
 
Yeah man flexibility is good. And thanks for sharing that json file. I've just understood how switches work with a panel and tabs.

I just successfully made a "nest" panel with switches that operate the tabs from the nested panel. :)

I now need to understand how to make a button switch tabs when the button is on a nested panel or modal box and that button will show different tabs. I can't just do everything I want using Switches so buttons are essential. If I can learn that, then this is just gonna be one of theist days I've had recently! I almost feel like a king! 😂

Screenshot 2021-04-24 at 17.50.26.png
you're a mentalist ha ha, I love it :)
Clever as well :)
 
I'm wondering if someone can take this json file I've just worked on and see if they can make this but using buttons instead of switches? I'd be forever thankful. @Drjay sending that JSON was so amazing to learn from.
 

Attachments

  • JnB Panel With Switches.json.zip
    2.2 KB · Views: 24
Yeah man flexibility is good. And thanks for sharing that json file. I've just understood how switches work with a panel and tabs.

I just successfully made a "nest" panel with switches that operate the tabs from the nested panel. :)

I now need to understand how to make a button switch tabs when the button is on a nested panel or modal box and that button will show different tabs. I can't just do everything I want using Switches so buttons are essential. If I can learn that, then this is just gonna be one of theist days I've had recently! I almost feel like a king! 😂

Screenshot 2021-04-24 at 17.50.26.png
Not sure, I got it right. Lets say you have a toggle button. Simply put the number of the tab(s) in the ‚on’ and ‚off‘ properties of the button. Then make value of the panel dependent on the button value (@{my_button}). For more complex operations, you will need script something or could use variables to hold the state of several widgets, or ... :)
 
Not sure, I got it right. Lets say you have a toggle button. Simply put the number of the tab(s) in the ‚on’ and ‚off‘ properties of the button. Then make value of the panel dependent on the button value (@{my_button}). For more complex operations, you will need script something or could use variables to hold the state of several widgets, or ... :)
Ok, I'll digest this info and give it a go!
 
I'm no where near as clever as the people in here! 😂

Clever girl.jpg
most of it goes over my head mate, so you are cleverer than me by far with this stuff, its fascinating stuff though, and I love your drive with everything you do, as we have already discussed :)

I hope you get the info you seek, seems like you will from the helpful folks on here and your own tenacity :)

Good luck my friend :)
 
Here's a little conundrum with switches...

A screen shot of 5 common time switches 6/4 - 2/4 on the right and then on the left, a dual switch doing 7/8 and 7/8

First question about switches is...

They are always on. How do you make switches start in an off state. So. for example, let's say you press a button and a panel opens and in this opened panel there are those switch buttons. However, I don't want any of them on until the user selects what they want to turn on.

Second question about this is...
I would like the switch on the left to actually control tabs in the panel that the switch on the right is controlling. Is that possible? I have made these 2 switches purely because I don't know how to make 1 switch that looks like that (An L Shape basically)

Screenshot 2021-04-24 at 18.12.08.png
 
I'm wondering if someone can take this json file I've just worked on and see if they can make this but using buttons instead of switches? I'd be forever thankful. @Drjay sending that JSON was so amazing to learn from.
Here's a little conundrum with switches...

A screen shot of 5 common time switches 6/4 - 2/4 on the right and then on the left, a dual switch doing 7/8 and 7/8

First question about switches is...

They are always on. How do you make switches start in an off state. So. for example, let's say you press a button and a panel opens and in this opened panel there are those switch buttons. However, I don't want any of them on until the user selects what they want to turn on.

Second question about this is...
I would like the switch on the left to actually control tabs in the panel that the switch on the right is controlling. Is that possible? I have made these 2 switches purely because I don't know how to make 1 switch that looks like that (An L Shape basically)

Screenshot 2021-04-24 at 18.12.08.png
Not sure, but '-1' deselects all switches, but this means tab '-1' is selected, which is non existant. Although it does not throw an error, I am not sure about colateral damage. Additionally the tab would be still visible.
With regards to the 2nd switch: why not? If you make the correponding tabs dependent on this switch. The drawback is, you switch the tabs of all switches to the right.
If you want to keep the state of every single right 'instance' separately, you could keep track of the state of the switches in a variable an build the dependencies from there. But this gets complicated. A brute force idea would be to duplicate the left switches five times, link them to the tabs you want to control and hide the switches, which don't correspond to your righthand selection. You could also use Markrs suggestions with z-Indexes in this case.
 
Not sure, I got it right. Lets say you have a toggle button. Simply put the number of the tab(s) in the ‚on’ and ‚off‘ properties of the button. Then make value of the panel dependent on the button value (@{my_button}). For more complex operations, you will need script something or could use variables to hold the state of several widgets, or ... :)
Not sure, but '-1' deselects all switches, but this means tab '-1' is selected, which is non existant. Although it does not throw an error, I am not sure about colateral damage. Additionally the tab would be still visible.
With regards to the 2nd switch: why not? If you make the correponding tabs dependent on this switch. The drawback is, you switch the tabs of all switches to the right.
If you want to keep the state of every single right 'instance' separately, you could keep track of the state of the switches in a variable an build the dependencies from there. But this gets complicated. A brute force idea would be to duplicate the left switches five times, link them to the tabs you want to control and hide the switches, which don't correspond to your righthand selection. You could also use Markrs suggestions with z-Indexes in this case.
This is why I thought just having single buttons to select the tabs would be a lot easier for this. Have a button to select 4/4 tab and then it selects. Inside that I would still use switches as that's very efficient but I think buttons to select the tabs and then switches to select the tabs inside each tab.

Lets say you have a toggle button. Simply put the number of the tab(s) in the ‚on’ and ‚off‘ properties of the button. Then make value of the panel dependent on the button value (@{my_button}).
I'm unsure of how to do this. Makes sense reading it but in practise I still not grasping how to dow this.

Say there are 6 tabs, do I write it like this? I tried just writing 6 in the "on" part of the button panel but it just selects between 2 tabs.

{
"Tab 1": 0,
"Tab 2": 1,
"Tab 3": 2,
"Tab 4": 3,
"Tab 5": 4,
"Tab 6": 5

}
 
This is why I thought just having single buttons to select the tabs would be a lot easier for this. Have a button to select 4/4 tab and then it selects. Inside that I would still use switches as that's very efficient but I think buttons to select the tabs and then switches to select the tabs inside each tab.


I'm unsure of how to do this. Makes sense reading it but in practise I still not grasping how to dow this.

Say there are 6 tabs, do I write it like this? I tried just writing 6 in the "on" part of the button panel but it just selects between 2 tabs.

{
"Tab 1": 0,
"Tab 2": 1,
"Tab 3": 2,
"Tab 4": 3,
"Tab 5": 4,
"Tab 6": 5

}
Yes, thats the drawback. You only have two states. Your idea would work with switches only.
 
Last edited:
Anyway, I could not resist (you are challenging me and I am in the mood today :) ). One last file to get you going, although I don't know, if it is what you wanted:
The variable 'myVar' stores the selected 'sub tab' of the tab selected in the right switch in an array. Have a look at scripts in the two switches. 'myVar' is linked to correponding tab's values, which are changed accordingly. I don't know , if this is the most elegant solution, but it works. Have fun ...
 

Attachments

  • JnB Panel With Switches_2.zip
    2.4 KB · Views: 19
@jononotbono You should try the circular menu! Very useful to save room on your template!
I was having a play with and I already have it in the template for a couple of things. I like it. :)

However, some things, I feel, don’t make me want to have to instantly decide on choice (in this case having to keep my finger on the section tool button and releasing on selection) and having a menu that appears and sits there until I choose to close it is nice. It’s usually for those moments when I am in a trance and forget what I’m doing and especially forget why I have the menu open! 😂
 
I have finally figured out how to use Panels, Switches and Modal boxes to achieve what I want to do.

Finally, things are beginning to fall into place. Man, I am loving OSC! Thanks for everyone's help so far. No doubt I will be harassing you all again soon! 😂

Screenshot 2021-04-26 at 03.47.11.png
 
Looking forward to your video on creating your finished OSC template (I assume one is coming once you have it finished?)!
Yeah, I can make a video but it may not be for a little while. One idea grows to the next and now I have some other ideas I want to try which I fear is going to send me plummeting into the deepest of Rabbit holes. Probably an entire warren. I want The Jono not Bonophonic Touch Controller to be the best it can be! 😂
 
Top Bottom