Algorithmic Music Demo

From Uzebox Wiki
Jump to: navigation, search
Algorithmic Music Demo
GenreMusic Demo
DeveloperLee Weber(D3thAdd3r)
Code licenseGNU General Public License version 3
or (at your option) any later version.
Media licenseCreative Commons Attribution Share-Alike version 3.0
EngineUzebox 3.3
Video Mode8
Latest releaseFinal Version
Release dateMarch 30, 2016

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);


See the forum thread[1]

Play In Browser