Coder Social home page Coder Social logo

FFT Proc Block => V2 proc block about rune HOT 3 CLOSED

hotg-ai avatar hotg-ai commented on May 29, 2024
FFT Proc Block => V2 proc block

from rune.

Comments (3)

Michael-F-Bryan avatar Michael-F-Bryan commented on May 29, 2024

Here are some useful links:

from rune.

Michael-F-Bryan avatar Michael-F-Bryan commented on May 29, 2024

@kthakore building microspeech currently fails because sonogram doesn't compile without the standard library:

cargo rune build examples/microspeech/Runefile
    Finished release [optimized] target(s) in 0.07s
     Running `target/release/rune build examples/microspeech/Runefile`
[2021-03-18T14:34:59.601Z DEBUG rune::build] Parsing "examples/microspeech/Runefile"
[2021-03-18T14:34:59.601Z DEBUG rune::build] Compiling microspeech in "/home/michael/.cache/runes/microspeech"
[2021-03-18T14:34:59.601Z DEBUG rune_codegen] Executing "cargo" "build" "--target=wasm32-unknown-unknown" "--quiet" "--release"
error[E0599]: no method named `round` found for type `f32` in the current scope
  --> /home/michael/.cargo/git/checkouts/sonogram-bce1c9fece1bdf09/caf3d4b/src/colour_gradient.rs:96:73
   |
96 |     ((f32::from(finish) - f32::from(start)) * ratio + f32::from(start)).round() as u8
   |                                                                         ^^^^^ method not found in `f32`
   |
   = help: items from traits can only be used if the trait is in scope
   = note: the following trait is implemented but not in scope; perhaps add a `use` for it:
           `use num::traits::float::FloatCore;`

error: aborting due to previous error

For more information about this error, try `rustc --explain E0599`.
error: could not compile `sonogram`

To learn more, run the command again with --verbose.
error: build failed
Error: Rune compilation failed

Caused by:
    Compilation failed

I think we should be using libm::roundf() instead.

from rune.

Michael-F-Bryan avatar Michael-F-Bryan commented on May 29, 2024

This was fixed in #152.

from rune.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.