can't compile Audio_Input _with_Knob_Filer example.

378 views
Skip to first unread message

DeviceUnderTest

unread,
Jan 15, 2015, 12:50:16 PM1/15/15
to mozzi...@googlegroups.com
Hey All,
I have just installed the Mozzi library on both a windows and Linux machine and seem to be having issues compiling the Audio_Input _with_Knob_Filer example.
I get:

-'getAudioInput' was not declared in this scope


Audio_Input_with_Knob_Filter.ino: In function 'int updateAudio()':
Audio_Input_with_Knob_Filter:48: error: 'getAudioInput' was not declared in this scope

Anyone seen this issue?
DuT

Tim Barrass

unread,
Jan 16, 2015, 1:24:02 AM1/16/15
to mozzi...@googlegroups.com
HI,

Have you edited mozzi_config.h where it says:

    #define USE_AUDIO_INPUT false

and changed it to:

     #define USE_AUDIO_INPUT true

as suggested in the notes at the top of the sketch?

Works for me...

tim

--
You received this message because you are subscribed to the Google Groups "Mozzi-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mozzi-users...@googlegroups.com.
To post to this group, send email to mozzi...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/mozzi-users/09461ae1-2ae3-4007-a473-777daf71b30c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

DeviceUnderTest

unread,
Jan 16, 2015, 1:26:41 PM1/16/15
to mozzi...@googlegroups.com
Don't I feel dumb.
Thanks so much.

I see in the header there is a typo:

/** @ingroup core
Whether or not to use audio input.
Put \#define USE_AUDIO_INPUT false in Mozzi/mozzi_config.h to enable audio input on analog pin AUDIO_INPUT_PIN,
otherwise make it false, to save resources.  When audio input is used, don't read 
other analog channels as they'll interfere with the audio sampling.
*/

Think that should say true.
Thanks again

Tim Barrass

unread,
Jan 17, 2015, 3:10:53 AM1/17/15
to mozzi...@googlegroups.com
Aha!  Thanks to you too!  It will be nice in the next release to have the docs not say the opposite of what they should!  Also, that line about not using other analog channels has to go - the sketch shows how to do it with mozziAnalogRead().

Cheers DuT
Tim

Reply all
Reply to author
Forward
0 new messages