AW Pseudoblog

Posts tagged with programming

A product of Music Hack Day, this piece of Python code will apply ‘swing’ to any piece of music. How does it do it, you ask? Well, it alternatively ‘extends’ and ‘compresses’ (time-wise) the beats of a song, giving it that ‘daa-ts daa-ts’; or, swung note, if you’re more musically inclined.

I suppose this wouldn’t quite work with a band like Tera Melos. :D

This link has been making the rounds on all the geeky sites. So I’m passing it around, particularly because I was surprised to come across Steve Reich’s Piano Phase.

It makes sense that it’d be pretty easy to program a computer to achieve this effect, written as such: f={|t|Pbind(\note,Pseq([-1,1,6,8,9,1,-1,8,6,1,9,8]+5,319),\dur,t)};Ptpar([0,f.(1/6),12,f.(0.1672)],1).play