Go Down

Topic: Toorum's Quest II - ATmega328P based retro video game with 256 color graphics (Read 13506 times) previous topic - next topic


This is really nicly done ! I would love to learn more on the music and sound part. Can we use your music software tracker? Do you have a music player for Arduino?


Thanks! The music playroutine is included in the sources. I synthesize and mix 4 waveforms together in audio.cpp. The waveforms supported are triangle, pulse (with variable pulse width), sawtooth and noise. Volumes are controlled with ADSR envelopes.

A four channel tracker controls the waveforms. Some basic channel effects are implemented, like arpeggios, portamento, vibrato and Hubbard style drum bits. The music playroutine can be found in playroutine.cpp.

Hope this helps! The code is under MIT license, so you can use it as long as you give me credits and include the copyright notice in your work.

mcnobby

This is a BRILLIANT read !!

Thank you Nick for bringing this to my attention from another thread !

Petri, you are a genius !

This just shows me how poorly optimised my VGA application must be :(
http://www.youtube.com/user/Recovered
http://www.smartshow.lighting

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy