The next features in the pipeline:
- Rotating controllers changes frequency (rotating generators already does this)
- New controller: Envelope generator
- New controller: Sequencer
short sample = ...;(citation)
byte[] buffer = ...;
int offset = ...;
// low byte
buffer[offset + 0] = (byte) (sample & 0xFF);
// high byte
buffer[offset + 1] = (byte) (sample >> 8) & 0xFF;
int sample = (buffer[offset + 0] & 0xFF) |(citation)
(buffer[offset + 1] << 8);
For Java Sound, endianess matters if the size of samples (as given by AudioFormat.getSampleSizeInBits()) is greater than 8 bit. For 8 bit data, while the endianess still has to be specified in an AudioFormat object, it has no significance.
(citation)





