monome / teletype

monome eurorack module
GNU General Public License v2.0
199 stars 83 forks source link

Should variables be initialised on SCENE load? #36

Closed samdoshi closed 7 years ago

samdoshi commented 8 years ago

At the moment variables stay at the previously set value when switching scenes. Should they?

You don't have enough lines in the I script to initialise all of them.

samdoshi commented 8 years ago

The other option is to save the current value for all variables in the preset

tehn commented 8 years ago

saving the variable state in the scene seems like it introduces some obfuscation as to how a scene works. i'd rather have things be set in INIT.

but yes, there's only 6 lines (can be more by using dummy scripts or eventually timeline).

perhaps we should introduce CLEAR which would zero out runtime variables.

note that the pattern data is considered separate and is indeed stored with scenes.

On Tue, Apr 12, 2016 at 4:50 AM, Sam Doshi notifications@github.com wrote:

At the moment variables stay at the previously set value when switching scenes. Should they?

You don't have enough lines in the I script to initialise all of them.

— You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub https://github.com/monome/teletype/issues/36

burnsauce commented 7 years ago

How about a Variables screen that can both serve as a live view and a method to initialize variables?

My init scripts are crowded enough as it is, and live view was already on my radar.

tehn commented 7 years ago

TL (timeline) is a possible solution for this.

designing value-preset systems is tricky business-- i wouldn't suggest we save them in scenes or use live view/etc.