I would like to have a slider with a starting value/position at the 50% position, so for example if the slider range is 1 - 100, then the starting value and position would be 50. I have used a bang to a message to the slider to set the starting value.
bang
|
50(
|
slider
This works fine but requires manual input on my part to set the value of the slider by clicking the bang button. I would prefer have this happen automatically, essentially reset the patch user interface controls to defaults when I run the patch. I tried an abstraction and use loadbang to trigger this routine
abstraction
loadbang
|
50(
|
outlet
end of abstraction
|
slider - main patch
But this did not output anything when the main patch runs.
how would I get something to run automatically in the main patch when the patch executes?