X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Finclude%2Fmusical-pitch.hh;h=7f2c386b4d71b85020af474a1000089f1814ec94;hb=9d03b3529816551ef7beea0f5cdc87d315cb0948;hp=d4d0a60854c2c9bf6e91bd07b2f026cd24deecd8;hpb=3e69ea97654a3992b7411b2979c20fdc18845e2c;p=lilypond.git diff --git a/lily/include/musical-pitch.hh b/lily/include/musical-pitch.hh index d4d0a60854..7f2c386b4d 100644 --- a/lily/include/musical-pitch.hh +++ b/lily/include/musical-pitch.hh @@ -3,7 +3,7 @@ source file of the GNU LilyPond music typesetter - (c) 1998--1999 Han-Wen Nienhuys + (c) 1998--2000 Han-Wen Nienhuys */ @@ -12,6 +12,7 @@ #include "lily-proto.hh" #include "input.hh" +#include "lily-guile.hh" // we need SCM /** A "tonal" pitch. This is a pitch as it figures in diatonal western music (12 semitones in an octave), as opposed to a frequence in Hz @@ -23,10 +24,15 @@ struct Musical_pitch : public Input { Musical_pitch (int notename=0, int accidental=0, int octave=0); + /// construct from '(octave name acc) + Musical_pitch (SCM); + /// 0 is c, 6 is b int notename_i_; + /// 0 natural, 1 sharp, etc int accidental_i_; + /// 0 is central c int octave_i_; @@ -41,6 +47,7 @@ struct Musical_pitch : public Input void down_to (int); String str () const; void print () const; + SCM to_scm () const; }; #include "compare.hh"