Code Monkey home page Code Monkey logo

Comments (3)

tfry-git avatar tfry-git commented on July 23, 2024

Note that this part of the code is for STM32 (see #elif on line 491). The AVR HIFI code is around line 780, and was not touched, recently.

I'll have to admit that I never included HIFI in my testing, so I cannot tell whether it may have been overflowing, before I started. But I do not think I have touched any code for that while adding the STM and ESP ports, or merging any of the other recent PRs.

Could it have been this one from three years ago: b22a84c ? While that should not change the scale in itself, it will certainly cause values above the range to be handled badly. ((B1000000 00000000 << 1) >> 8 == B0, while previously B10000000 00000000 >> 7 == B00000000 10000000).

from mozzi.

sensorium avatar sensorium commented on July 23, 2024

Thanks Thomas. Apologies for dumb questions, as I'm out of touch with the code after a long time adapting the Mozzi web page to work better with GitHub (which I hope will eventually make it easier for others to modify the pages).

I went back and tried the release version, then the current code again and it worked no problem, without any change... wierd.

When adding the <<1 then >>8, I assumed it to be faster then >>7 after tests years ago when >>7 produced 7 single shifts... but this may no longer be the case with more recent compilers. Anyway, I'll put the issue down to corrupt memory or something, and hopefully do a speed comparison sometime.

from mozzi.

tfry-git avatar tfry-git commented on July 23, 2024

No problem. Glad to have you back!

My theory about the shift was probably wrong, too, as this problem would only kick in when the output is already at the topmost bit. That would seem unlikely to become relevant, as the output value would need to exceed 14bits a lot in order to reach that point. Well, glad the problem went away by itself...

from mozzi.

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.