Thanks so much for the idea. I’ll give that a go. Thanks again for all the development work you do!

thought of a better idea. add this as the first line in the init script:

IF EZ I: I + 1 I; BREAK

now when you load the scene I should get initialized with 0, so it will skip the rest of the init script, but on repeated script execution I will be non zero, so the rest of the script will execute. so just load the scene and if you need the init executed press F10.

8 Likes

oh man, I love this solution!

Why not just:

IF EZ I: I 1; BREAK

4 Likes

I figured out another solution to my dilemma and its a real face-smack.

I’ll just reserve sections of patterns. Steps 0-15 can be reserved for randomization while 16- 31 can be part 1 of song, 32-47 can be part 2 of the song and I can even set 48-56 and 57-64 as little 8 step breakdown moments.

Then, I’ll just have to figure out how smoothly adjust pattern start/end and index number to jump to the different parts of the song.

Albeit, pattern recall would still be a cool feature. Thanks again!

3 Likes

Help. I’m not sure how this has happened but I have lost all my scenes using 3.0. I have been using another case today which power cycles at the same time as the case with TT in it. I’ve come to do some work on Teletype and there are no scenes in any of the slots… Can i undo this or revert to a previous state (if I haven’t saved the scenes)? What could I have done?? so as to avoid ever making this mistake again.

was the teletype on when this happened, or did it happen after a power cycle?

assuming this somehow happened while it was on then turning it off and on again should load what’s stored in flash, unless the flash memory itself failed somehow. i can’t think of any other reason that would cause this though, it’s possible a single scene would get wiped out if you used INIT or INIT.SCENE (especially in a script), or when loading from a usb stick, but there is no code that wipes out every single scene.

if you do get them back after a power cycle make sure to back them up to a usb stick just in case.

Thanks for responding. Not sure exactly when it happened as I had not been using it or anything connected to the scene for the last couple of sessions. I tried to restart and nothing is there. Even the default scenes with the 3.0 firmware are missing. It’s strange… if there’s no “clear all” operation I’ve accidentally done (not likely as I wasn’t using it) then it’s just erased the memory on its own. Could this imply a hardware issue?

it’s possible there is some firmware bug that causes it but i can’t think of a possible scenario. if it was just one scene then maybe something called the code that reinitializes a scene, but for all scenes to get erased - i can’t think how it could possibly happen.

another reason why a firmware bug would be unlikely is that it didn’t just erase all scenes but saved that to flash, since it’s still empty after a reboot. the only time tt saves empty scenes to flash is after updating firmware. that’s only done when you boot it up after you reflash firmware, that code doesn’t get called anywhere else.

so yeah, sounds like it might be a hardware issue. have you tried saving a scene and see if it’s still there after a power cycle?

Thanks, I’ll try that and let you know. Whatever it the reason it makes me a little nervous…

definitely - i would be nervous too! hopefully we can resolve this.

so to confirm, it was on with a scene loaded, and there were other scenes saved, then while it was on you turned on another case and when you checked the tt the scene was empty and other scenes were empty as well? and this happened while the tt was on, not after turning it off and on again? did you have grid or keyboard connected to it at the time?

I can’t be sure exactly when it happened as I had been focused on another case for a couple of sessions and had power cycled both cases in between a couple of times so it could have occurred at some time over the last 2 or 3 days. The keyboard has been plugged in the whole time.
I’ve just saved a dummy scene and power cycled and that is saved

@tehn is it possible for flash memory to fail somehow? or for f.fresh to get reset?

i don’t think this is flash failure. it’d be incredibly weird for scenes to be lost but not have a section of the firmware get corrupted.

f.fresh could indeed get messed up with a firmware flaw— some memory addressing failure, but this seems incredibly unlikely, as it would need to get explicitly set to 0x22 this seems the only thing that would clear the whole thing out, as at startup . @yoyosandshoes did you actually witness the TT restart? ref: https://github.com/monome/teletype/blob/master/module/flash.c#L47

that said, i doubt this is a hardware failure. but i’ve also never seen this happen, ever, with hundreds of units. try not to be nervous, but also back up your scenes.

if i’m reading the code correctly anything other than 0x22 would get it reintiailized, so if it became corrupted in such manner it would load with blank scenes. but yeah, i’ve never heard of anything like this happening, and i can’t think of a scenario the firmware would do it other than after reflashing it. that part of code only gets called from the boot up code and only when it’s reflashed.

1 Like

@tehn I did not witness it. They just weren’t there anymore. Will back up!
Actually, it might be a good thing to start from scratch

I was hesitant to post, as I don’t have many details. But, when I updated to 3.0 I noticed something similar. The first time I powered the TT on I was greeted with the stock/ demo scenes, but they all disappeared after a few power cycles. It’s hard to say just when as I might not have noticed immediately.

(At the time, I just assumed it was user error somehow and decided to keep a lookout here for similar reports.)

edit: for what it’s worth, I just reflashed 3.0 and the stock scenes have persisted through multiple power cycles.

1 Like

I’ve recently updated to 3.0, the default scenes are there and haven’t saved any of mine yet since I’m still in the explore/study stage but I’ll keep an eye on it.

1 Like

thanks for testing! when it happened that time do you remember if you saved any scenes at any point, or was it still just loaded with the release scenes?

@yoyosandshoes and @Justmat one more question, do you remember using calibration ops at any point before it happened?

1 Like

I don’t think that I had saved anything yet, it was fairly soon after I updated. For sure a no on the calibration ops.

1 Like