Lua documentation bugs

The docs for sysexBlock:seek(position) is incorrect. It is a 1 based index like everything else in Lua (and complains if 0 is used).

“The leading 0xF0 byte is at position 0.” should read “… at position 1.”

1 Like

And sysexBlock:peek() is documented as taking no args, but it can take an argument which then acts like a seek() followed by a peek() with no args.

1 Like

Another one: in topic Preset > Functions between functions “preset.onReady()” and “preset.onLeave()” is “preset.onEnter()” missing, text is correct.

1 Like

In general, each method in the docs should describe each argument and include it’s type.

Ideally each is used in an example.

Fixed the three things (seek(), peek(), onEnter()) mentioned above.