Comments (6)
Hi,
Mozzi uses its own modified version of the FrequencyTimer2 library, in the utilities folder. It looks like you have another install of the FrequencyTimer2 library on your system which is conflicting with Mozzi's one. It should work if you remove the other version while you use Mozzi.
The reason it was initially included with Mozzi was to avoid a list of dependencies which need to be installed for Mozzi to work. Perhaps Mozzi's version could be renamed to stop conflicts when the original FrequencyTimer2 is already installed. Even better would be if libraries could automatically install dependencies, but I'm not sure if this is possible yet with Arduino...
from mozzi.
I removed ALL libraries except for Mozzi, closed arduino IDE and re-opened. Still same problem.
from mozzi.
Thanks for your help. I see the problem in line 444 of MozziGuts.cpp. Please try the most recent commit.
from mozzi.
Thank you. This solves one of the errors, but the others persist, so it will not compile yet. Here is the error message now:
In file included from C:...\Arduino\libraries\Mozzi-1.0.3rc4\MozziGuts.cpp:13:0:
C:...\Arduino\libraries\Mozzi-1.0.3rc4\MozziGuts.cpp: In function 'void setupTimer2()':
C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:104:37: error: expected unqualified-id before '(' token
#define clockCyclesPerMicrosecond() ( F_CPU / 1000000L )
^
C:...\Arduino\libraries\Mozzi-1.0.3rc4\MozziGuts.cpp:443:29: note: in expansion of macro 'clockCyclesPerMicrosecond'
period *= FrequencyTimer2::clockCyclesPerMicrosecond();
^
exit status 1
from mozzi.
Removed incorrect FrequencyTimer2 namespace for clockCyclesPerMicrosecond(). Committed to github. It compiles here, hope it works for you now.
from mozzi.
Excellent! It does compile now. So it was just a namespace issue. I am glad it was a simple fix.
Thank you!
from mozzi.
Related Issues (20)
- Compilation fails for Arduino Nano Every HOT 2
- 16 bit wavetable support HOT 16
- Teensy LC: conflict between I2C and ADC HOT 16
- Ambiguity in `fromAlmostNBit` for 32bits platforms HOT 4
- 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
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.