Skip to forum content

ChipMusic.org

chipmusic.org is an online community in respect and relation to chip music, art and its parallels.

You are not logged in. Please login or register.

NATIONAL ANTHEM JUKE (C/C++)

ChipMusic.org / Music / stylemistake's music / NATIONAL ANTHEM JUKE (C/C++)

NATIONAL ANTHEM JUKE (C/C++)

By stylemistake on May 25, 2013 10:50 pm

Done this within a day, in 100% pure C with stdio.h and math.h, 5K of code compilable into 14K ELF executable.
This is my first work of this kind, so don't judge too hard.

http://pastebin.com/CAcPEQfz

Updated version is here:
http://snd.sc/10wT5MI

This submission is licensed by author under CC Attribution Noncommercial No Derivative Works (BY-NC-ND)

i like it

Done well - esp being your own code!!  I've used 4klang a fair bit but our own soft-tunes were a debarkle (mind you, this is demoscene stuffs where the standard is pretty high).  Did you use a tracker like Buzz to interface to your dev code?  highly recommended.  Also, with the snare, try generating two noise types and flipping between them really quickly (like an arp) for the first 100ms or so... then you can add a 600 > 200hz (ish) quick log dive to it (mixed) and it sounds pretty legit.  We found rendering out samples was quite beneficial too because you can make a routine at the start that creates pretty complex sounds then easily ref them later.  Have fun with the ring mod implementation!!  Oh, and pong echo (aka. repeated delay flipping left and right)... dead easy to implement and sounds rad

cool work dude, the drums sound like a sped-up moombah groove. i might do an LSDJ rework of it?

Is anyone up for a remix? big_smile

Very impressive! I never would of guessed it was made in C.
It would be interesting to see your experiment evolve into a full blown tracker.

Thanks for comments, guys!

I've made everything using the code, starting with making some generic wave generators (sqr, sin, tri, noise). They run inside of a for(;;) loop with time counter. They have 3 parameters: time, note and velocity. With help of this you can write any music you want, with just functions based on time and melody passed with arrays smile.

And yeah, it loops infinitely, so after 1:35 it just starts all over again.

In plans I have making also a triangle wave generator, freq. and ring modulators, and maybe a slightly more efficient code. And you can use whatever you want with my code. Remixes would be awesome! smile

This is a really cool theme, I just wish the second half was more varied for how long it is. This is a really nice tune, man.

How the heck? All of this in code? What are the sound sources? Amazing.

You need to login to leave a comment.

ChipMusic.org / Music / stylemistake's music / NATIONAL ANTHEM JUKE (C/C++)