Science & Music: A Symphony in C++???
Over at ClassicalConvert, the classical music nerds have met the programming nerds. Ben, the author over there, has composed (coded?) what appears to be the first movement of a Symphony in C++. It’s a kick for those familiar with sonata form. And for those particularly familiar with Beethoven, this money quote really stands out:
//Finish up
if(composer == "beethoven"){
coda.length_in_min=10
}else{
coda.length_in_min=1
}
coda.play();
}
Check it out. This is just the kind of thing I want to share on our Scientific Saturdays here at KillingClassicalMusic. We’ll all be looking forward to the rest of the symphony…
blog comments powered by Disqus