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

rsound-fft-draw does not work #7

Open
jproy opened this issue May 2, 2014 · 1 comment
Open

rsound-fft-draw does not work #7

jproy opened this issue May 2, 2014 · 1 comment

Comments

@jproy
Copy link

jproy commented May 2, 2014

There's a type problem there... And the test of rsound-fft-draw is commented in test-draw.rkt

@jproy
Copy link
Author

jproy commented Jun 5, 2014

(define n (network ()
(a <= sine-wave 440)
(b <= sine-wave 1320)
(c <= sine-wave 17600)
(out = (* 0.2 (+ a b c)))))

(signal-play n)
(rsound-fft-draw (signal->rsound 2048 n))

GIVES AN ERROR

build-array: contract violation
expected a vector,
given: 2048
in: the 1st argument of
(->
(vectorof Integer)
(-> (vectorof Index) any/c)
(struct/c
Array
(vectorof Index)
any/c
(box/c (or/c #f #t))
(-> any)
(-> (vectorof Index) any)))
contract from:
(/Applications/Racket v6.0.1.11/share/pkgs/math-lib/math/private/array/array-struct.rkt
typed-module13)
blaming: /rsound/rsound/draw.rkt
at: /math-lib/math/private/array/array-struct.rkt:15.2

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

No branches or pull requests

1 participant