Limit on WaveLevels in WaveSlot, is it 255 ?

Post Reply
User avatar
UNZ
Posts: 808
Joined: Mon Nov 21, 2011 9:42 pm
Contact:

Limit on WaveLevels in WaveSlot, is it 255 ?

Post 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.
Attachments
lotsoflayers4.rar
(11.45 MiB) Downloaded 414 times
oskari
Site Admin
Posts: 296
Joined: Mon Nov 21, 2011 2:04 pm

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

Post by oskari »

Yes, looks like it's saved as a byte in .bmx.
User avatar
UNZ
Posts: 808
Joined: Mon Nov 21, 2011 9:42 pm
Contact:

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

Post 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.
oskari
Site Admin
Posts: 296
Joined: Mon Nov 21, 2011 2:04 pm

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

Post by oskari »

(byte)256 == 0 (number of layers in the file)

it should be checked in the gui of course.
Post Reply