sensorium / Mozzi

sound synthesis library for Arduino
https://sensorium.github.io/Mozzi/
GNU Lesser General Public License v2.1
1.06k stars 185 forks source link

Conflict between StateVariable and ResonantFilter enum filter types #171

Closed ff07aa closed 1 year ago

ff07aa commented 1 year ago

In file included from C:\Users\jibin\Documents\Arduino\helios4_6\helios4_6.ino:108:0: C:\Users\jibin\Documents\Arduino\libraries\Mozzi-master/StateVariable.h:53:6: error: multiple definition of 'enum filter_types' enum filter_types { LOWPASS, BANDPASS, HIGHPASS, NOTCH }; ^~~~ In file included from C:\Users\jibin\Documents\Arduino\libraries\Mozzi-master/LowPassFilter.h:16:0, from C:\Users\jibin\Documents\Arduino\helios4_6\helios4_6.ino:100: C:\Users\jibin\Documents\Arduino\libraries\Mozzi-master/ResonantFilter.h:71:6: note: previous definition here enum filter_types { LOWPASS, BANDPASS, HIGHPASS, NOTCH }; ^~~~

exit status 1

Compilation error: exit status 1

tomcombriat commented 1 year ago

Ah, indeed, did not tested to put both the StateVariable and the ResonantFilter in the same sketch. That makes sense. Will commit a fix soon (tonight hopefully). In the meantime, just use only one of them ;)

tomcombriat commented 1 year ago

Hei @ff07aa, A fix has just been merged in the library, please report if the problem persists!

ff07aa commented 1 year ago

ok