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

[sound]: documentation: play_wave #310

Open
martin-henz opened this issue Apr 15, 2024 · 0 comments
Open

[sound]: documentation: play_wave #310

martin-henz opened this issue Apr 15, 2024 · 0 comments
Labels
Bug [Category] minor [Priority]

Comments

@martin-henz
Copy link
Member

import { play_wave } from "sound";
const pi = math_PI;
play_wave(t => math_sin(2 * pi * t * 440), true); // true should be 1

gives confusing error message:

Line 3: Error: play is expecting sound, but encountered t => t >= duration ? 0 : wave(t),true
@martin-henz martin-henz added Bug [Category] minor [Priority] labels Apr 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug [Category] minor [Priority]
Projects
None yet
Development

No branches or pull requests

1 participant