Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

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

Open
ideoforms opened this issue Jan 14, 2024 · 0 comments
Open

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

ideoforms opened this issue Jan 14, 2024 · 0 comments

Comments

@ideoforms
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant