Algorithmic Music Demo
Jump to navigation
Jump to search
Algorithmic Music Demo | |
---|---|
| |
Genre | Music Demo |
Developer | Lee Weber(D3thAdd3r) |
Code license | or (at your option) any later version. |
Media license | version 3.0 |
Engine | Uzebox 3.3 |
Video Mode | 8 |
Latest release | Final Version |
Release date | March 30, 2016 |
Language | English |
This demonstrates music that is generated entirely by an algorithm. What this means is that for every one of the 15720 samples played per second, the previous calculated value is put back through the same algorithm to get a different value than last time. This ends up(in some cases) smoothing blending into things that sound like wave forms, and even musical sounding patterns, percussion, etc. all without anyone ever specifically programming the individual events(like an MIDI or MOD). Several algorithms are built in, which you can cycle between:
c = (uint16_t)(t>>6UL|t|t>>(t>>16UL))*10UL+((t>>11UL)&7UL); c = (t|(t>>9|t>>7))*t&(t>>11|t>>9); c = t*5&(t>>7)|t*3&(t*4>>10); c = (t>>7|t|t>>6)*10+4*(t&t>>13|t>>6); c = ((t&4096)?((t*(t^t%255)|(t>>4))>>1):(t>>3)|((t&8192)?t<<2:t)); c = ((t*(t>>8|t>>9)&46&t>>8))^(t&t>>13|t>>6);
ROM
See the forum thread[1]