Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save kevinjwalters/f0f7028c4b88dab56cf218ccbe0382b6 to your computer and use it in GitHub Desktop.
Save kevinjwalters/f0f7028c4b88dab56cf218ccbe0382b6 to your computer and use it in GitHub Desktop.
Some tests for SimpleLFO v0.1
### 0.25Hz LFOs ...
lfos = (synthio.LFO(rate=1/4,
scale=500.0,
once=False),
SimpleLFO(rate=1/4,
scale=500.0,
once=True),
SimpleLFO(rate=1/4,
waveform="square",
scale=500.0,
once=False),
SimpleLFO(rate=1/4,
waveform="square",
scale=500.0,
once=True),
SimpleLFO(rate=1/4,
waveform="sine",
scale=500.0,
once=False),
SimpleLFO(rate=1/4,
waveform="sine",
scale=500.0,
once=True),
SimpleLFO(rate=1/4,
waveform="sawtooth",
scale=500.0,
once=False),
SimpleLFO(rate=1/4,
waveform="sawtooth",
scale=500.0,
once=True),
SimpleLFO(rate=1/4,
scale=500.0,
once=True,
nowrap=True ### Checking behaviour for over-riding nowrap
),
SimpleLFO(rate=1/4,
waveform="uniramp",
scale=500.0,
interpolate=True,
once=True),
SimpleLFO(rate=1/4,
waveform=[32767, -32767],
scale=500.0,
interpolate=True,
once=True),
SimpleLFO(rate=1/4,
waveform=[32767, 24576, 16384, 8192],
scale=500.0,
interpolate=False,
once=True)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment