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
beat=1
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
end
if beat = 4 || 12
playSnare; //Play Snare Sample
end
if beat%2 == 0 //If its a on-beat, play hi-hat
playHiHat; //Play Hi-Hat Sample
end
if (playKick) == True
Stop playBass; //Kill Bass Sample
else
playBass; //Play Bass Sample
end
beat = beat + 1;
End
You could probably wrap this in another loop that reiterates the measures to make a full song...
Anybody ever look at music like this?