Re: Pitch questions

2007-10-10 Thread Han-Wen Nienhuys
2007/10/10, Rune Zedeler <[EMAIL PROTECTED]>: > void > Pitch::transpose (Pitch delta) > { >Rational new_alter = tone_pitch () + delta.tone_pitch (); > >octave_ += delta.octave_; >notename_ += delta.notename_; >alteration_ += new_alter - tone_pitch (); > >normalize (); > } > > Th

Pitch questions

2007-10-10 Thread Rune Zedeler
I am looking into splitting pitch into pitchclass and pitch. Therefore I need to understand what is going on in the pitch class. Some questions (inserted as c++-comments): void Pitch::normalize () { Rational pitch = tone_pitch (); while (notename_ >= (int) scale_->step_tones_.size ()) {