jkotlinski/lsdj-doc

Improve documentation on SYNTH LENGTH/REPEAT/SPEED

Closed this issue · 0 comments

~~ What SYNTH LENGTH/SPEED does ~~

  • a wave table with (LENGTH + 1) steps is generated from the SYNTH
  • the wave table start points at WAVE ?0, the end points at WAVE ?F,
    inbetween steps are interpolated
  • each wave table step is played for SPEED ticks

Examples:

LENGTH F, SPEED 6
Plays all 16 WAVEs in the SYNTH. Each WAVE is played for 6 ticks.
LENGTH 3, SPEED C
Plays 4 WAVEs from the synth. Each WAVE is played for C ticks.

~~ What LOOP REPEAT does ~~

  • when reaching end of the wave table, jump back REPEAT steps

Examples:

LENGTH 3, REPEAT 3, SPEED 6
Plays 4 WAVEs from the synth, each WAVE for 6 ticks, and loops all 4 WAVEs.
The period is 6 * 4 = 24 ticks.
LENGTH 3, REPEAT 1, SPEED 6
Like above, but only loops the last 2 WAVEs.

~~ What PINGPONG REPEAT does ~~

  • when reaching end of wave table, start playing in reverse direction for
    REPEAT steps, then turn forward again.

Examples:

LENGTH 2, REPEAT 2, SPEED 6
Plays wavetable step 0,1,2,1,0,1,2,1..., 6 ticks each. Period = 46 = 24 ticks
LENGTH 4, REPEAT 4, SPEED 6
Plays wavetable step 0,1,2,3,4,3,2,1,..., 6 ticks each. Period = 8
6 = 48 ticks