@@ -84,22 +84,22 @@ func (note *Note) IsPause() bool {
8484
8585// NumSharp returns the number of sharp signs.
8686func (note * Note ) NumSharp () int {
87- return note .countProps (tokentype .Sharp )
87+ return note .countProps (tokentype .PropSharp )
8888}
8989
9090// NumFlat reports the number of flat signs.
9191func (note * Note ) NumFlat () int {
92- return note .countProps (tokentype .Flat )
92+ return note .countProps (tokentype .PropFlat )
9393}
9494
9595// NumAccents reports the number of accent properties in the note.
9696func (note * Note ) NumAccents () int {
97- return note .countProps (tokentype .Accent )
97+ return note .countProps (tokentype .PropAccent )
9898}
9999
100100// NumGhosts reports the number of ghost properties in the note.
101101func (note * Note ) NumGhosts () int {
102- return note .countProps (tokentype .Ghost )
102+ return note .countProps (tokentype .PropGhost )
103103}
104104
105105// Value returns the note value (1th, 2th, 4th, 8th, 16th, 32th and so on).
@@ -118,12 +118,12 @@ func (note *Note) Value() uint8 {
118118
119119// NumDots reports the number of dot properties in the note.
120120func (note * Note ) NumDots () int {
121- return note .countProps (tokentype .Dot )
121+ return note .countProps (tokentype .PropDot )
122122}
123123
124124// Tuplet returns the irregular division value if the note is a tuplet.
125125func (note * Note ) Tuplet () int {
126- tok := note .Props .Find (tokentype .Tuplet )
126+ tok := note .Props .Find (tokentype .PropTuplet )
127127 if tok == nil {
128128 return 0
129129 }
@@ -137,7 +137,7 @@ func (note *Note) Tuplet() int {
137137
138138// IsLetRing reports whether the note must ring.
139139func (note * Note ) IsLetRing () bool {
140- return note .Props .Find (tokentype .LetRing ) != nil
140+ return note .Props .Find (tokentype .PropLetRing ) != nil
141141}
142142
143143func (note * Note ) WriteTo (w io.Writer ) (int64 , error ) {
0 commit comments