| Subscribe via RSS

New to classical? Want to get started? Visit my beginners guide to classical music! Or start browsing the different composers.

Symphony in C++

  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • email
  • MySpace
  • Reddit
  • Slashdot
  • StumbleUpon
  • Twitter
August 19th, 2010 | 1 Comment | Posted in classical music

Every now and then I can’t keep my classical music and science nerd parts apart.

Today was one of those days.

I present: A Symphony in C++:

key get_secondary_key(key home_key){
    if (home_key.minor == TRUE){
        secondary_key=relative_major(home_key);
    }else{
        secondary_key=home_key+5;
    }
}
 
void sonata_form(key home_key,tempo base_tempo){
    //Calculate secondary key
    secondary_key=get_secondary_key(home_key);
 
    //First get people in the mood
    intro.play(home_key,base_tempo--);
 
    //start exposition, introduce the two main themes
    theme_1.play(home_key);
    transition.play(home_key,secondary_key);
    theme_2.play(secondary_key);
    codetta.play();
 
    //development, mix the themes up
    for(int i=0;i<development_length;i++){
        combine_themes(theme_1,theme_2,key=rand()).play()
    }
 
    //Recapitulation: repeat the themes but in the home key
    theme_1.play(home_key);
    transition.play(home_key,home_key);
    theme_2.play(home_key);
 
    //Finish up
    if(composer == "beethoven"){
        coda.length_in_min=10
    }else{
        coda.length_in_min=1
    }
    coda.play();
}

Want to learn more about classical music but without the code? Go to getintoclassical.com.

Tags: , ,

Choose Your Own Damn Mahler Adventure

  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • email
  • MySpace
  • Reddit
  • Slashdot
  • StumbleUpon
  • Twitter
August 4th, 2010 | No Comments | Posted in classical music, mahler

Do you love Mahler? Do you want to marry him and have his babies? Well it’s a bit late for that, but it’s not too late to participate in Deutsche Grammophon and Decca’s latest foray into the classical music social media scene. They’ve done a bang-up job arranging this one.

The idea is that they are putting together a new Mahler boxset. “But Ben! Those are a dime a dozen — well maybe a grand a dozen, but you can definitely buy 12″  I can hear you verbosely shouting at me through the internet. Well yes, but the difference here is that every symphony in the set is from a different conductor and orchestra, and it’s the voting public who get to decide which ones go in the set. “But Ben! I don’t own every single boxset, how will I compare renditions without shelling out thousands of dollars?” comes your next, sensibly thrifty proclamation.

Well that’s the best bit: you can stream — for free! — what appears to be their entire Mahler catalog, in order to confirm your decision.

So go get your Gustav on.

Tags: , ,

Ranking Beethoven

  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • email
  • MySpace
  • Reddit
  • Slashdot
  • StumbleUpon
  • Twitter
July 23rd, 2009 | 2 Comments | Posted in beethoven, classical music, youtube

Remember that post from Monday where I kindly provided you with a crap-load of Beethoven videos on YouTube? Well since all those videos were posted at around the same time — two years ago, yeah it took naive little ol’ me that long to find them — you can get an angle on how popular each of Beethoven’s symphonies are, relative to one another:

Rank Symphony Views
1. No. 9 4426281
2. No. 5 3914515
3. No. 7 2769380
4. No. 3 1292489
5. No. 6 873106
6. No. 4 281157
7. No. 8 265051
8. No. 1 238895
9. No. 2 216598

Interestingly they seem to divide into three chunks. The big three are 9, 5 and 7, all with comparably high views of 3-4 million. Next come 3 and 7, with large but significantly less views, closer to one million. Rounding it up are the less popular four: 4, 8, 1, 2. All with less than 300,000 views each.

The top five do not surprise me — however the separation between the top three and the next two do. Especially number 6. I would have thought that would be up there with number 7. Maybe that’s because my personal ranking of the top five is: 6, 7, 5, 9, 3.

Also interestingly (but unsurprisingly) there are about four times more views for the first half of No.9 than there are for the second half. Number five is even more pronounced (eight times more!) — perhaps because most viewers just want to hear the famous beginning.

Tags: , , ,

Unbrokenup Beethoven

  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • email
  • MySpace
  • Reddit
  • Slashdot
  • StumbleUpon
  • Twitter
July 20th, 2009 | No Comments | Posted in beethoven, classical music, youtube

Now I’m not *exactly* the first to find these — 870,083 happy campers got their noses in before I did — but the novelty of full-length classical music vids has yet to wear thin. Here’s symphony No. 6 ‘Pastoral’:

YouTube Preview Image

And dancey No. 7:

YouTube Preview Image

And No. 4:

YouTube Preview Image

And the in-betweeney No. 8:

YouTube Preview Image

There are also some chopped ones:

And the two everyone kinda ignores:

Hoorah! Beethoven symphonies for everyone!

Tags: , , ,

Terzetto

  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • email
  • MySpace
  • Reddit
  • Slashdot
  • StumbleUpon
  • Twitter
July 14th, 2009 | No Comments | Posted in classical music, dvorak, youtube

This was on NPR during one of my beloved musical-accompaniments to falling asleep on top of the duvet a few weeks ago. In the interim period between over-then and over-now it had been sitting around as a note in my phone, quickly keyboarded out before all the sleepiness slipped away. Despite a total wipe of my phone, and a huge amount of hauling and installing furniture, my little nighttime notation managed to shove itself back into attention a couple of days ago: “dvorak terzetto”.

YouTube Preview Image

Dvorak I’ve never been crazy about. He seems too suspiciously late romantic. This is sneakily chromatic, though. It’s got some crunchy off-key sections. It reminds me a bit of the late Beethoven quartets. It’s also got a pretty sweet name — turns out a terzetto is like a trio, except instead of the plain-salted violin/viola/cello it’s configured violin/violin/viola. Which is, uhhh, pretty awesome I guess. I was hoping for a definition involving giant metal dinosaurs or something, but two violins is cool too.

The L.A. Phil. have liner notes about the piece here. And there are like ten different version on eMusic.

Tags: , , ,