fix #37206: Export channels to midi works
Merge pull request #1414 from Igevorse/bugs1

fix #37206: Export channels to midi works