Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

support waveformN format #191

Closed
Tracked by #671
felixroos opened this issue Aug 14, 2022 · 1 comment · Fixed by #674
Closed
Tracked by #671

support waveformN format #191

felixroos opened this issue Aug 14, 2022 · 1 comment · Fixed by #674
Labels
enhancement improves an existing feature

Comments

@felixroos
Copy link
Collaborator

it would be nice to have waveforms like sine8 sawtooth16 etc. of the format waveformN where waveform is one of sine, triangle, sawtooth, square and N a number between 1 and 128, specifying the number of harmonics used. It is a quick and handy way to get a filtered waveform without actually needing a filter, because it's additive synthesis. This can probably with a PeriodicWave

@felixroos felixroos added the enhancement improves an existing feature label Aug 14, 2022
@felixroos
Copy link
Collaborator Author

here's a codesandbox that implements the basic idea: https://codesandbox.io/s/waveformn-createperiodicwave-www4m9?file=/src/index.mjs

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement improves an existing feature
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant