QM816.generateSinewave

Generates a waveform from a sinewave fragment (quarter).

q flags: bit 0 = If set, then the sine fragment is present. If not, this portion will be replaced with all zeros instead. bit 1-2 = Doubling mode: 0 = No doubling. 1 = Same cycle twice. 2 = Same cycle mirrored, effectively putting a half-sine into a quarter with the right settings. 3 = The second half is all zeros, the sine fragment is effectively "stuffed" into an eight of the waveform. bit 3 = Horizontal mirroring of the cycle. bit 4 = Vertical mirroring of the cycle. bit 5 = Modifies the curve of the sinewave for a bit more square-ish shape.

class QM816
static @nogc @safe pure nothrow
short[1024]
generateSinewave
(
ubyte[4] q
)

Meta