At 12/10/12 01:51 PM, Centriptic wrote:
Has anyone ever tried to write a piece using computational logic?
For instance, heres a simple side-chained bass, kick, snare and hi-hat beat that covers 1 measure (I've combined some basics of a few languages to help this make a little more sense)
//Setup One Measure
While beat < 17
if beat = 1 || 4 || 8 || 12 //When its the 1st ,4th ,8th or 12th beat, play kick sample
playKick; //Play Kick Sample
if beat = 4 || 12
playSnare; //Play Snare Sample
if beat%2 == 0 //If its a on-beat, play hi-hat
playHiHat; //Play Hi-Hat Sample
if (playKick) == True
Stop playBass; //Kill Bass Sample
playBass; //Play Bass Sample
beat = beat + 1;
You could probably wrap this in another loop that reiterates the measures to make a full song...
Anybody ever look at music like this?
Yes, there is a whole genre of music based on creating music this way.
This is fixed media + piano
Also, there were some composers who would program music into a computer which then the computer would be another "instrument" in the ensemble: