DAVID | Posted: 19 Apr 2019, 08:19 PM |
---|---|
I love mcus Member Posts: 237 Joined: 10-September 17 |
hi, i love the sound of music boxes but i don´t like the time it takes to punch holes into paper for the music, i have already watch mit´s solution to solve this problem by creating a midi music box https://mitxela.com/projects/musicbox but since i don´t have that amount of servos i have created a 5 voice polyphonic arduino sampler. i took Roman lut´s attiny85 music box code and api http://www.deep-shadows.com/hax/wordpress/?page_id=1111 port it over to the arduino IDE and some timers registers tweaks to make it work with the atmega328p. Just add some uart communication for midi, a music box clip and done. here it is a test with ducktales intro http://s000.tinyupload.com/index.php?file_id=36347448009287891039 code + pre compiled hex file and schematic:https://github.com/theawsomeavr/arduino-midi-musicbox pd: For some reason once my code is uploaded to the arduino with the IDE version 1.8.9 the serial midi stopped working (with timer2 on CTC mode at 18khz) so i will recommend using from version 1.6.5 to 1.8.3 Last edit by DAVID at 20 Apr 2019, 04:41 PM ------------- |
[top] | |
mit | Posted: 29 Apr 2019, 12:14 PM |
yeah whatever Admin Posts: 566 Joined: 4-May 16 |
That's pretty cool. I can't help with why it might have stopped working with the different version of arduino IDE. One thing that I really like about programming at a lower level (assembly, or gcc) is that you generally don't have to worry about different versions of software. On the other hand, without the abstraction, you do have to worry more about running the code on different chips. I agree that it would be useful to have a way to attach sounds. I'll see what I can do. ------------- |
[top] | |
DAVID | Posted: 1 May 2019, 04:23 AM |
I love mcus Member Posts: 237 Joined: 10-September 17 |
QUOTE (mit)
well, its really "easy" (sort of) because Roman Lut had made a program to convert midi files into compressed byte streams and convert wav files into usable pcm samples, that is how i got the music box sample in my code.I agree that it would be useful to have a way to attach sounds. I'll see what I can do. Sadly the program is written with Delphi and the compiled version is an exe ------------- |
[top] | |
Sign in to post a reply.