exiting metamodule removes tracks

Found a bug? Post it here.
Post Reply
zeffii
Posts: 32
Joined: Sun Apr 05, 2015 2:05 pm

exiting metamodule removes tracks

Post 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
User avatar
queries
Posts: 316
Joined: Tue May 10, 2016 9:51 pm

Re: exiting metamodule removes tracks

Post 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.
zeffii
Posts: 32
Joined: Sun Apr 05, 2015 2:05 pm

Re: exiting metamodule removes tracks

Post by zeffii »

yeah, i thought that might be related.

none the less, i'd like if it didn't do that.
User avatar
Keres
Posts: 466
Joined: Mon Mar 21, 2016 9:41 am
Location: N. Tulsa Ok.
Contact:

Re: exiting metamodule removes tracks

Post 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.
Post Reply