SamiPerttu / fundsp

Library for audio processing and synthesis

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cargo run --example sequence ... could not compile `fundsp` due to previous error

raphaelSeguin opened this issue · comments

Hi,
I couldn't make the sequence exemple work, that was right after running cargo build without any error

$ cargo run --example sequence
   Compiling fundsp v0.11.0 (/Users/Pitcairn/Documents/code/rust/fundsp)
error[E0618]: expected function, found `funutd::Rnd`
  --> examples/sequence.rs:31:40
   |
11 |     let mut rnd = Rnd::new();
   |         ------- `rnd` has type `funutd::Rnd`
...
31 |             let f = xerp(50.0, 2000.0, rnd(i ^ seed));
   |                                        ^^^----------
   |                                        |
   |                                        call expression requires function

For more information about this error, try `rustc --explain E0618`.
error: could not compile `fundsp` due to previous error

I tried $ rustc --explain E0618 but that didn't help me much.

$ rustc --version
rustc 1.66.0 (69f9c33d7 2022-12-12)

Thanks

Fixed!

Thanks!