Page 1 of 1

Limit on WaveLevels in WaveSlot, is it 255 ?

Posted: Tue Dec 08, 2015 10:54 pm
by UNZ
It seems there is a limit of 255 layers in a wavetable slot, is this correct ?
at least if i add one more, buzz crashes when loading the bmx.
if i load 270 or so, the wavetable gets truncated to only 40 layers or so.

can i assume that my machine will only have to deal with 255 layers per slot ?
and we probably should enforce this limit in the wavetable gui, since now you can easily load 500 layers into a slot, only to discover that the wavetable is trash after you save and reopen the bmx.

attached is the bmx with exactly 256 layers in slot 0, which crashes buzz on load.

Re: Limit on WaveLevels in WaveSlot, is it 255 ?

Posted: Wed Dec 09, 2015 12:24 pm
by oskari
Yes, looks like it's saved as a byte in .bmx.

Re: Limit on WaveLevels in WaveSlot, is it 255 ?

Posted: Wed Dec 09, 2015 11:41 pm
by UNZ
ok hm, but it looks like it crashes with 256 layers (0-255), shouldnt 256 work (and 257 not).
i'll have to test it again, but looks like an off-by-one-bug maybe?
we should enforce it in the wavetable gui that you can't load more than 255(256?) because it looks that .bmx get corrupted now if you load more.

Re: Limit on WaveLevels in WaveSlot, is it 255 ?

Posted: Thu Dec 10, 2015 5:29 am
by oskari
(byte)256 == 0 (number of layers in the file)

it should be checked in the gui of course.