Filter issue

20 views
Skip to first unread message

Nitride

unread,
Apr 29, 2026, 11:00:51 PMApr 29
to Mozzi-users
Hey fellas, i've been trying to debug my simple synth's filter for a few months now, but the sound is either some diabolical screeching or just plain silence

my hardware circuit (if you can even call it that) is as follows:
Serial MIDI > Arduino (Mega 2560, pin 11) > Amplifier > Speaker
(yes, there are no rc filters or any of the sort, i don't feel like soldering crap again...) 
is this a hardware setup issue or am i just a moron? 
Code attached below:
moozzi_fixed.ino

Mozzi-users

unread,
Apr 30, 2026, 9:32:51 AMApr 30
to Mozzi-users
Hey there,

just a quick tip without looking really closely - try putting 
rf.setCutoffFreqAndResonance(filterEnvelope.next(), 128);
in updateControl() instead of updateAudio().  
If you're using a faster processor it might work where it is, but I have only ever used it in updateControl().

Cheers
Tim

Mozzi-users

unread,
Apr 30, 2026, 9:34:18 AMApr 30
to Mozzi-users
And I'd make the filter envelope stuff run at control rate too...

Mozzi-users

unread,
Apr 30, 2026, 9:38:34 AMApr 30
to Mozzi-users
One more nag - probably worth getting something reeeeaaally simple to work (from an example?) and gradually building from there, to find out where things start going pear shaped...

Reply all
Reply to author
Forward
0 new messages