You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The content encoding is an alphabet mapping of 256 entries that map to each byte.
(in the encoding, a WAV file is immediately recognizable by having its four byte "RIFF" header encoded to "|spp")
Decoding
The decoding algorithm is as follows:
Loop while there is an input byte b1
if b1 is the end marker $24, stop reading
if b1 is '\r' ($0D) or '\n' ($0A), discard it
if b1 is the escape character '=' ($3D),
extract the next byte b2, and compute the next output byte as (b2+$C0)%256
otherwise, compute the next output byte as (b2+$D6)%256
Encoding
Loop while there is an input byte b1
if (b1+$2A)%256 is one of the "forbidden characters" ($3D, $00, $09, $0A, $0D, $24)
output the escape character $3D, and then output the byte (b1+$40)%256
otherwise, output (b1+$2A)%256
Output the end marker $24
Alphabet
Below I provide the entire alphabet for the coding.
There exists a Rapture feature that allows to embed sample data directly in SFZ files.
It adds a header named
<sample>
.EDIT correct some little things as I read through a second time
EDIT attached: the test program main.cc.gz
Usage is as follows
The content encoding is an alphabet mapping of 256 entries that map to each byte.
(in the encoding, a WAV file is immediately recognizable by having its four byte "RIFF" header encoded to "|spp")
Decoding
The decoding algorithm is as follows:
b1
b1
is the end marker $24, stop readingb1
is '\r' ($0D) or '\n' ($0A), discard itb1
is the escape character '=' ($3D),b2
, and compute the next output byte as(b2+$C0)%256
(b2+$D6)%256
Encoding
b1
(b1+$2A)%256
is one of the "forbidden characters" ($3D, $00, $09, $0A, $0D, $24)(b1+$40)%256
(b1+$2A)%256
Alphabet
Below I provide the entire alphabet for the coding.
The text was updated successfully, but these errors were encountered: