in reply to Chord root
for (@f) { $_ = 0 unless defined }
is handy below the foreach in the code.
Also, I am a fan of Sean Burke's MIDI perl modules, so I prefer "As" and "Af" instead of "A#" and "AB". If you use these, you can talk directly to the MIDI modules without any needless parsing gymnastics. Also, putting #'s in qw() arrays breaks with warnings on.
Anyway, here are some questions:
1. Is there a name for "@f" that might give away what it stands for and holds? Variables named things like "f" are pretty frustrating.
2. What does ($n+$_)%12 represent?
3. What is (0,0,0,2,5,5,8,10)?
Maybe the Terhardt link describes this stuff somewhere, but... comments are really useful.
: )
-Gene Boggs <gene at ology dot net> Software Engineer and Epistemologist at-large _____________________________________________
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Chord root
by benn (Vicar) on Aug 09, 2003 at 16:58 UTC | |
|
Re^2: Chord root
by Aristotle (Chancellor) on Aug 10, 2003 at 15:33 UTC |