We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 138fcbf commit fd56b76Copy full SHA for fd56b76
core/music/note.go
@@ -221,17 +221,24 @@ func (n *Note) Symbol() string {
221
} else if n.Key.amount != 0 {
222
keySymbol = "\u033c"
223
}
224
+ controlsTypeNb := 0
225
for _, c := range n.Controls {
226
if c.Type != SilentControlType {
- paramSymbol = "\u0307"
227
+ controlsTypeNb += 1
228
break
229
230
231
for _, c := range n.MetaCommands {
232
if c.Active() {
- paramSymbol += "\u030A"
233
234
235
236
237
+ switch controlsTypeNb {
238
+ case 1:
239
+ paramSymbol = "\u0307"
240
+ case 2:
241
+ paramSymbol = "\u0308"
242
+ }
243
return fmt.Sprintf("%s%s", keySymbol, paramSymbol)
244
0 commit comments