tfadeyi / midi-instruments

Small golang library containing interface and implementations of different midi instruments.
MIT License
0 stars 0 forks source link

The util function `GetKeyboardNote` is not returning the correct notes #9

Closed tfadeyi closed 3 years ago

tfadeyi commented 3 years ago

The function is supposed to return notes in this form note:<actual note c> but in some cases, it's not adding the prefix.

    case 9:
        notes := make(map[string]uint8, 1)
        notes["a"] = key
        return notes
    case 10:
        notes := make(map[string]uint8, 2)
        notes["a#"] = key
        notes["bb"] = key
        return notes
    case 11:
        notes := make(map[string]uint8, 2)
        notes["b"] = key
        notes["cb"] = key
        return notes