Abstract class

Aaron "Castironpi" Brady castironpi at gmail.com
Sun Sep 14 15:49:51 EDT 2008


On Sep 14, 2:38 pm, Roy Smith <r... at panix.com> wrote:
> In article
> <64670149-9467-4ca7-9d7e-c330c1b40... at c58g2000hsc.googlegroups.com>,
>  "Aaron \"Castironpi\" Brady" <castiro... at gmail.com> wrote:
>
> > However, from what I understand (brass player),
>
> If you play the trombone, you might want your Note class to allow
> floating-point values for pitch :-)

I do!  Then there are the known cases of flute players rolling the
mouthpiece to change pitch, trumpet players bending, violin.  The 3rd
of a scale is slightly sharp in Bach's temper.  Semi-tones come up in
Theory class too.

note= Note( "C" )
third= MajorInterval( 3 )
print note+ third
: <NaturalNote("E"), slightly flat>



More information about the Python-list mailing list