The point counts for the envelopes may be stored in four different modes, some of them different for the master and slave channel.
Plain encoding as 3-bit numbers.
Each envelope point count is encoded independently using a variable-length encoding.
The first point count is stored as in Mode 1, the later ones by encoding the difference to the previous point code using a variable length code. Delta application uses wrap-around after 7.
Each envelope point count is encoded as difference to the envelope point count of the corresponding envelope of the master channel (which is zero for non-existing envelopes). Delta application wraps around after 7.
The bit count for deltas is stored plain, as is the base value. Then for all stored envelope the delta to the base value is stored in a direct binary encoding. Delta application does not wrap around. Values > 7 are illegal, but possible.
The point counts are cloned from the master channel. If the slave channel has more enveloped bands than the master channel, point counts of zero would be added which is useless.