fix #30571: crash on drum note entry
Merge pull request #1210 from MarcSabatella/30571-drum-crash

fix #30571: crash on drum note entry