Added a range check for channel parameter when adding notes. This fixes a crash when for example importing the project posted on lmms-devel by Andew Kelley lately. (cherry picked from commit ee9d88e2d4)
ee9d88e2d4