I'm creating a grammar for MIDI-files.
One structure is a variable length number field where the first bit indicates if this is the last byte of data in the structure and the remaining 7 bits are actual data. As long as the first bit is 1 the next byte is also a part of the number field.
Examples:
- 0100 0000 = 100 0000
- 10100 0000 1100 1100 0100 0000 = 0 1000 0010 0110 0100 0000
How do I accomplish this in Synalyze it!?