mozzi 1 samples conversion to mozzi 2 samples

54 views
Skip to first unread message

Brian Forster

unread,
Oct 19, 2024, 11:09:02 AM10/19/24
to Mozzi-users
i found an electronic Bagpipe program for arduino Nano online over a year ago (summer 2023) it was called ebaghet,  i downlowded it and installed on an arduino nano it worked perfectly first time, recently i broke the nano and tried to upload it again but i got all sorts of problems, 

Arduino had upgraded to version 2
Mozzi upgraded to version 2

after some time i managed to get mozzi 1.1 working on aduino ide 1.8 and truied to upload although i got some sound it was no where as good as before.

There are many issues with the ebaghet program one of which is hundreds of if statements I figue they could be ruduced and simplified by using pointers, that being said I also need to modify it all to Mozzi 2

I dont really understand how Mozzi works behind the scenes so i cant even start from scratch.  I need some help 

1,  samples written for Mozzi 1 in 16bit and 44100 sample rate  these sample files need converting to mozzi 2

there are note ratios to play notes using the sample but i dont understand how this figues in the new Mozzi 2.

I have placed ebaghet in my GitHub if any one wishes tolook




tomco...@live.fr

unread,
Oct 21, 2024, 9:34:58 AM10/21/24
to Mozzi-users
Hi,

Normally, Mozzi2 should be quite compatible with Mozzi1, especially with respect to samples and tables as this part actually did not change at all (except the addition that Oscillator can be set using FixMath types).
Looking briefly at the github repo, it seems that it relies quite heavily on the Sample16 class, which is not part of Mozzi but is included in your repo so the compiler should be able to find it.

What exactly are the problems you are running into? Does it compile?

tomco...@live.fr

unread,
Oct 21, 2024, 9:35:51 AM10/21/24
to Mozzi-users
Reply all
Reply to author
Forward
0 new messages