I wrote this code after reading the rsound documentation in Racket:
(provide (all-defined-out))
(require rsound)
(define (sunet)
(sine-wave 880))
(signal-play sunet)
(stop)
I used the sine wave function at 880 Hz and saved it in the sunet function. Then I applied the signal-to-play function on it, which reproduces the signals as sound. I got this error:
application: not a procedure;
expected a procedure that can be applied to arguments
given:
arguments.:
880
>
Is it not a “sinusoidal” function and does it take frequency as an argument?
source
share