pianopracticer.py

September 23, 2008 – 1:39 pm

Oh. This is how I practice piano*.

#!/usr/bin/python

# Prints a new random chord to play every 5 seconds.
# This could be made more generalizable/hackable/useful, yeah. I'm lazy.

import time
import random

basenote = ['A','A#','B','C','C#','D','D#','E','F','F#','G','G#']
chord = ['major','minor','major 7','dominant','minor 7',
       'minor 7 flat 5','diminished']

while(True):
    print random.choice(basenote), random.choice(chord)
    time.sleep(5)

*The “I need to learn chords, keys, and how to sightread them from a fake book” bit. There’s also the part where I’m reworking my Schubert impromptu, and the part where I’m actually going through Hanon to get back my technique. I am mindful that drilling != music and the latter is what I need and want to learn, but this is the equivalent of doing pushups – I’m trying to get the actual muscles of my fingers built up again until they hit keys evenly, because I physically can not play pieces well until they are.

Know someone who'd appreciate this post?
  • Print
  • Facebook
  • Twitter
  • Google Bookmarks
  • email
  • Identi.ca
  1. 4 Responses to “pianopracticer.py”

  2. Traceback (most recent call last):
    File “”, line 1, in
    print random.choice(chord)
    NameError: name ‘chord’ is not defined

    ;P

    By nikki on Sep 23, 2008

  3. Oh bloody hell. My copy-paste-fu fails tonight. Fixed – thanks for the catch.

    By Mel on Sep 23, 2008

  4. Also, whenever I play through this script, I wonder what kind of twisted person composes things with chords like “G# minor 7 flat 5″. I want to get to the point where I can play equally easily in every key, and transpose with impunity.

    This will take a while. I think my “learn how to eat with chopsticks left-handed” experiment will bear fruit faster, despite me not eating with chopsticks more than once every couple weeks at most these days.

    By Mel on Sep 23, 2008

  1. 1 Trackback(s)

  2. Oct 12, 2008: [M]etabrain [E]ntry [L]og » Blog Archive » Mingusmingusmingus

What do you think?