[fixed 3.2.2] Problem Renoise or API6: "Beatsync lines" does not allow value 0

There seems to be a little incongruity here:

image
In this valuebox (beatsync lines) it is not possible to set the value 0 from Renoise. The valid range is from 0 to 512, not from 1 to 512. It is possible to have access from the API6.

Is there a reason why the value 0 is not available? Or is this a small bug (programming oversight)?

Maybe it should be corrected in API6, and really be the range from 1 to 512? It seems more reasonable that the range is 1 to 512.

Related documentation:

Renoise.Song.API.lua:

-- Beat sync.
renoise.song().instruments[].samples[].beat_sync_enabled, _observable  --> [boolean]
renoise.song().instruments[].samples[].beat_sync_lines, _observable  --> [number, 0-512]
renoise.song().instruments[].samples[].beat_sync_mode, _observable  --> [enum = BEAT_SYNC]

[number, 0-512] change to [number, 1-512]?

Yes, a value of 0 doesn’t make sense here. The allowed range should be 1-512 from Lua too.

I have been making a tool related to this. So, for the moment, I will simply prevent the tool from returning 0, using the range of 1 to 512.

Thanks for checking!