Ardcore with Mozzi

Discussion and Support for our Atmospheric Modification Devices.

Moderators: Kent, loss1234

Post Reply
User avatar
eclectics
Wiggling with Experience
Posts: 368
Joined: Sat Oct 05, 2013 10:32 am
Location: Melbourne

Ardcore with Mozzi

Post by eclectics » Sat Aug 23, 2014 9:45 am

Has anyone done anything with the Mozzi library for Arduino? There's some talk about it wrt to the new Euro-duino, and I think Ascetic Underground did a sketch, but i haven't seen anything else.

I finally got around to loading some Mozzi examples in the ardcore/expander tonight.
Thought the waveshaper, fm synth, control osc wash and sample loop points were pretty amazing. All coming out of 1 pin via PWM.

User avatar
Matos
Modular masturbator
Posts: 3778
Joined: Tue Jul 05, 2011 4:03 am

Post by Matos » Sat Aug 23, 2014 10:10 am

Are these just normal sketches you can share? I haves heard about these?

User avatar
eclectics
Wiggling with Experience
Posts: 368
Joined: Sat Oct 05, 2013 10:32 am
Location: Melbourne

Post by eclectics » Tue Aug 26, 2014 9:04 am

The Mozzi library is here
http://sensorium.github.io/Mozzi/

The home page has a link to some audio examples.

You download and unzip it, then tell the arduino app where to find it (Sketch|Import Library)-- only need to do that once.

The library comes with all sorts of sketches you can pretty much load-- that's the examples I'm talking about above. The library is set to send it's audio out pin 9; which is fine if you have the expander -- it's just pin 4 on the expander.

Without the expander I'm not sure what to do; it looks like there's some reason for pin 9 involving the timers, but I haven't delved that deep yet.

So far I've set up reading the ardcore inputs to alter frequency of a sine oscillator and a vibrato depth. Easy enough, but it's a different framework; lots of standard functions are replaced so that mozzi can work quickly enough.

loss1234
Wiggling with Experience
Posts: 304
Joined: Sat Sep 12, 2009 11:29 pm

Post by loss1234 » Thu Oct 16, 2014 10:43 am

A few of is put a bunch of time into getting mozzi
To work with ardcore

Basically we did one of two things


Either 1.

You just use mozzi like you normally would but then
Route audio to the FAST DAC function (commenting out
The normal mozzi output on the mozzi library

Or you go into the config and send the audio to a different pin


If I dig through my old notes I can probrably find the results


You just have to make sure to set up the mozzi library in your Arduino library folder


keep in mind that WHERE you place the fast DAC function in the sketch makes a difference


But my god...talk about adding endless experimentation!!

Oh I just remembered...even without the expander one of the gage / trig outs
Is a PWM out !!!! It's not filtered though so just plug it into any low pass filter in your system.... That pin can be found in the ardcore manual...then just set mozzi to use THAT pin.,, but ideally the fast DAC is your best way to go

ON THE MOZZI FORUM/ yahoo group there was a post about EXACTLY how to reconfigure mozzi to work with an SPI DAC..the instructions ARE VERY SIMILAR TO HOW YOU WOULD IMPLEMENT THE FAST DAC FUNCTION, except in our case , you DONT HAVE TO ALSO PASTE IN SPI CODE!


make sense?

Basically
Install library

Turn off mozzi output in mozzi library files
Turn on fast DAC
Then either route audio to the fast DAC globally. ( in the config file ) or on a sketch by sketch basis. ( in the program. )


and our DAC sounds quite good!!

User avatar
eclectics
Wiggling with Experience
Posts: 368
Joined: Sat Oct 05, 2013 10:32 am
Location: Melbourne

Post by eclectics » Sat Oct 18, 2014 6:28 am

Thanks for that. Will check it out.

Post Reply

Return to “SNAZZY FX”