Comments (3)
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.
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.
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)
- ESP32 Input audio HOT 5
- Problem installing under Arduino ise 2.0.0-rc HOT 4
- LowPassFilter coefficients incorrectly calculated HOT 4
- Audio Input causing high Frequency feedback (over time)
- Wavefolder HOT 5
- Add note to installation instructions not to use Releases versions HOT 1
- Teensy 4.1 high definition circuitry HOT 1
- StateVariable centre frequency depends on Q HOT 3
- EXTERNAL_AUDIO_OUTPUT not working on RP2040? HOT 7
- Hardware support for the PicoADK RP2040 DSP Board HOT 7
- rPi Pico RP2040 Documentation HOT 3
- Conflict between StateVariable and ResonantFilter enum filter types HOT 3
- multiline2.h non-functional? HOT 2
- Make new release HOT 15
- triangle warm 8129 table includes values outside valid range HOT 1
- Arduino giga port HOT 4
- getAudioInput not defined HOT 2
- The randSeed() argument type is different in the header and source files. HOT 2
- Stereo - Strange error compilation depending if a function was define before updateAudio() - Problem with preprocessor ? HOT 3
- Compilation errors when including both WaveFolder.h and ResonantFilter.h HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mozzi.