Page 1 of 1

exiting metamodule removes tracks

Posted: Mon Mar 02, 2020 2:09 pm
by zeffii
i don't experience many bugs, big complements for that :)

this one did catch me offguard however.

problem form 1

1 ) latest sunvox
2 ) be on a pattern with several tracks with data
3 ) add two tracks, empty.
4 ) press Edit on the metamodule (just looking at it's moduleview is sufficient)
5 ) then Back
6 ) notice the two added tracks are now gone.

i don't think it's specific to this sunvox file,
https://github.com/zeffii/sunvox_tunes/ ... emo.sunvox

Re: exiting metamodule removes tracks

Posted: Mon Mar 02, 2020 11:09 pm
by queries
I think this is due to SunVox stripping empty tracks at the end of patterns when saving files. It also behaves this way when you just save a file and load it again, or when you have it auto-save your session on exit and have SunVox load it back in on startup.

When you edit a metamodule, internally SunVox is saving the state of the project layer you just left by writing it to a file, named ".sunvox_prev_sessionX.sunvox" (where X starts at 1, and increases as you go into nested metamodules).

When you pop back out of editing a metamodule, SunVox loads the previous layer from said file, which had those empty tracks stripped when it saved it before editing the metamodule.

Re: exiting metamodule removes tracks

Posted: Tue Mar 03, 2020 2:25 am
by zeffii
yeah, i thought that might be related.

none the less, i'd like if it didn't do that.

Re: exiting metamodule removes tracks

Posted: Wed Mar 11, 2020 6:01 am
by Keres
This is not a bug, this is the way sunvox behaves. If you want to reserve a few tracks for future editing, place a command all the way in the rightmost track.