Hi i want to make a simple interface to dump single cycle waveforms into an Akai S900. (maybe expand it later on) how do i parse the sample data from a uiWaveform dialog into the sysex formula? I’m a lua noob and can’t really find more info on SDS with CTRLR. below is the sysex dump part from the Akai S900 sysex manual:
` Sample Dump
Byte # Range Description
0 F0h System exclusive code
1 7Eh Common non-realtime identifier
2 1 SD sample dump code
3 0..31 Sample number LS
4 0 Sample number HS. Always 0 since we can have only 32 samples.
5 8..16 Bits per word. S950 transmits 12, but can accept 9 to 14.
6..8 0..127 Sampling period in nsec. S950 accepts 15259 to 500000.
9..11 0..127 Total words in sample. S950 accepts 200 to 475020.
12..14 0..127 Loop start point. If >= total-5, assume non looping.
15..17 0..127 Loop end. S950 takes this as end point.
18 0..1 0=looping, 1=alternating (one shot if loop length < 5).
Next follows a variable number of sample blocks. Each has the same format:
Byte # Range Description
0 0..127 Block number LSbyte (block number MSbyte is not sent).
1 0..127 MS of data word: 0 d11 d10 d9 d8 d7 d6 d5
2 0..127 LS of data word: 0 d4 d3 d2 d1 d0 0 0
3..120 0..127 as 1, 2 above.
121 0..127 Checksum, being the exclusive OR of the preceding 120 bytes.
A final byte follows the last block:
Byte # Range Description
?? F7h End of exclusive code
`
thanks
ps. i tried to open the demo panels but they don't work with latest OSX build