sensorium / Mozzi

sound synthesis library for Arduino

Home Page:https://sensorium.github.io/Mozzi/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Conflict between StateVariable and ResonantFilter enum filter types

ff07aa opened this issue · comments

commented

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💯
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

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 ;)

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

commented

ok