squiggythings / WaveTracker

A free and open source music-making software for Windows. Uses wavetable synthesis and sampling to generate sounds.
https://wavetracker.org
MIT License
484 stars 15 forks source link

Generate waveform based on a math expression #36

Closed darkhog closed 3 weeks ago

darkhog commented 2 months ago

It would be nice that if in addition to drawing a waveform ourselves, we could calculate it based on a math expression. Examples:

sin(t) would give a classic sinewave wave(0)+wave(4)-wave(2) would add wave 0 and 4 together, then subtract wave 2 from it (using current wave's number there could lead to infinite loop and as such wouldn't be allowed)

Possibly even more fun stuff that I don't know would be possible. The idea came after playing around with LMMS Nightly Xpressive plugin that generates waveforms from equations.

Dannode36 commented 1 month ago

Creating waveforms from math expressions is always a fun and interesting sound design element. My only experience with this is with the Fruity Formula Controller. I'll make an attempt at writing a custom expression parser, possibly inspired by Fruity Formula Controller.