ideoforms / signalflow

A sound synthesis framework for Python, designed for clear and concise expression of complex musical ideas
https://signalflow.dev
MIT License
167 stars 14 forks source link

Buffer: Add support for fill() with pre-determined waveforms #110

Open ideoforms opened 5 months ago

ideoforms commented 5 months ago

Signature: void Buffer::fill(std::string waveform, int frequency = 0)

e.g.: buf.fill("sine", 440) fills the buffer with a 440Hz sine wave.

Waveforms should include at least sine, triangle, saw, square, whitenoise, pinknoise.

If frequency is zero, fills the buffer with a single cycle of the waveform.