Pages: [1]   Go Down
Author Topic: Mozzi Library and the Mega2560. problems with Megabug & wavetables fixed.  (Read 645 times)
0 Members and 1 Guest are viewing this topic.
Peckham London
Offline Offline
Jr. Member
Karma: 0
Posts: 88
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi! I recently discovered the fantastic Mozzi audio library from Sensorium:

It is fully documented and comes with a large set of wavetables for immediate use in projects and for an 8 bit MCU sounds bloody amazing!!

In my mind ( & ears ) this is just to good to be true!
I have had all the examples running fine on my duemilanove. However, when I tried uploading to my Mega2560 boards not all of the examples worked.
I have since worked out that the code is not at fault. It is the fact that the Mega2560 has a bug regarding the use of 3 exclamation marks in a row. (!!!). This appears as the number 33 in decimal notation.  !!! ( or 33, 33, 33) messes up the upload process and puts the Mega2560 in a serial mode ( as read elsewhere on this forum.)
To remedy this I opened up Programmers notepad and went through all the wavetable files in the tables directory replacing all instances of 33, 33, 33 with 33, 33, 32 or 33, 33, 34 depending upon whether the table was incrementing or decrementing.
All example now work with my Mega2560!
The reason I want it to work on the Mega board is so I can perhaps incorporate it using a 3.2" TFT and a nice graphical interface for a synthesis project.
Thanks Sensorium for creating such a beautiful library!!

All the best..  smiley-cool


Smooberry Dooberry.

Offline Offline
Edison Member
Karma: 9
Posts: 1016
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks for sharing.

I have already beautiful sounds coming from my Arduino Uno with the Mozzi library in only 6k of code.
« Last Edit: December 14, 2012, 07:12:29 pm by Krodal » Logged

Pages: [1]   Go Up
Jump to: