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 not working? #24

Open
martin-henz opened this issue Apr 24, 2024 · 1 comment
Open

Sound not working? #24

martin-henz opened this issue Apr 24, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@martin-henz
Copy link
Member

https://share.sourceacademy.org/jhd28

(import "sound" 
    (play make_sound))
(define π 3.141592653589793)
(play 
 (make_sound (lambda (t) (sin (* 2 π t 440))) 1))

currently gives

Line 6: Error: play is expecting sound, but encountered t => t >= duration ? 0 : wave(t),1
@martin-henz martin-henz added the bug Something isn't working label Apr 24, 2024
@s-kybound
Copy link
Member

I suspect this stems from the differing number representations of scm-slang and SA. will work on a way to reconcile this issue!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants