]> git.cworth.org Git - scherzo/commit
Add support for pedal
authorCarl Worth <cworth@cworth.org>
Wed, 18 Sep 2013 03:04:06 +0000 (20:04 -0700)
committerCarl Worth <cworth@cworth.org>
Wed, 18 Sep 2013 03:04:06 +0000 (20:04 -0700)
commitf9ffdfde546d16f24ab5d30ed9caef2c687b4755
treea83f260a35cfed0f075b4f3c29755840a6f19ac9
parentf60f0cb3dd6fb75ee17e237e87ef0c9088e5bec4
Add support for pedal

As scherzo listens to the pedal, it will analyze the chord harmony based on
notes that continue to sustain due to the pedal.

I'm not 100% comfortable with the empirically-derived value of 64 for
the sustain pedal. I'd feel a bit better if I had found a symbolic
constant for this in the ALSA header files. As things stand now, I'm
not sure if the sustain pedal on another keyboard will return the same
value.
scherzo.c