Add MIDI Port and MIDI Channel adjustment into MuseScore 4
Your idea
In the Mixer, add an option to change the MIDI Port and MIDI Channel for every instrument, just like in MuseScore 3.
Problem to be solved
Currently, when I make a MIDI file, I have to use MuseScore 3.6 to change the MIDI Port and Channel. I use these MIDI files with a device that requires a specific port and channel to playback music properly.
Prior art
Screenshot is from MuseScore 3.6
Additional context
No response
This could be fixed as part of #18382.
This is basic usability
This is basic usability
Agreed. Organ playback is essentially useless at this time without unrealistically cumbersome workarounds (if each staff is set as a different instrument, then instrument changes are used to change stops it's possible; but even in a short piece the mixer almost immediately becomes unusably cluttered). Adding back MIDI Channel support would make a massive difference for organ composers.
MIDI channel assignment / control is a vital feature for MIDIs played back on any modern digital keyboard. The channel selection buttons on a digital keyboard become useless if the MIDI file lumps all notes into one channel!
If I may ask, please put the MIDI channel selection feature back into Musescore 4 at the earliest opportunity.
Every electronic pipe organ uses up to 4 different MIDI channels for the manuals and the pedals. When I create a pipe organ staff in Musescore I get the same MIDI channel for each manual. That makes no sense. Furthermore the Program Change Command does a mess since a pipe organ does not use the GM Standard. You can programm your own combination of register stopps as programms. The GM program change in the beginning of a MIDI File by Musescore turns off the user selected stopps of the organ and sets it to a program that happens to be the number of the GM pipe orgen number - not very usefull.
This would also enable external tools like Divisimate to feed multiple staves when playing in notes in MS.
edit: I'm assuming midi input for my comment above. Specifying independent midi port/ch input and output for each stave is really the most robust implementation.
I compose electronic music using multipart harmony, as you might a string quartet. Indeed, for early competition, I use the string voices in MuseScore. I would love to connect MuseScore to my modular synth directly so I can finish the composition and arrangement using the real timbres and co-evolve the timbres with the harmonic choices I make. Staff notation is by far the easiest way to see and edit multipart harmony. Currently, I have to export the notes to a MIDI sequencer and finish the composition there. However, sequencers make it very difficult to see more than one instrument's part. I really wish I could have the ease of use of MuseScore with the hand-crafted timbres of my euro rack.
Came up again in https://musescore.org/de/node/377417
Came up again in https://musescore.org/en/node/378505
Actually, it is about to come up again.
I am curious: why remove that functionality at all??? People were obviously using it V3, and it is a very useful capability to them (and to me!). What justification is there for removing it?
It's not so much that is "removed" as it was "not reimplemented yet in the new playback engine". Large portions of MuseScore were rewritten pretty much from scratch for MuseScore 4 in order to support future expansion, and not everything was reimplemented before the initial 4.0 release. The focus was on the new playback capabilities like VST and MuseSounds support, and while I wasn't involved in the prioritization, I would say with the benefit of hindsight that the significance of custom MIDI port/channel assignment may have underestimated a bit by those who did make the decisions. On the other hand, the fact that no one in the open source community has stepped forward to volunteer to tackle this feature suggests that its significance to the user base at large may be overestimated a bit by those who do rely on it.
@MarcSabatella : maybe this functionality's significance is overestimated in the user base at large, but there is a large number of people who do need it, and not just for pedals on a keyboard. There are plenty of reasons for having the ability to set MIDI channels -- including the ability to control which channels go where when running multiple MIDI sound components (which I do).
In fact, frankly, I need this functionality so much that I cannot use Musescore 4. If I am going to use Musescore, I will likely use Musescore 3.
Note that I am saying if. In actuality, I have several paid notation applications that I am evaluating that have the MIDI channel functionality as well as better user interfaces than Musescore 3. In all likelihood, I will pay for one of those applications rather than use Musescore 3.
Of course, if I had the time and the expertise, I would happily implement the feature. Unfortunately, (a) I have not programmed in C++ for more than 20 years, and (b) with my other open- source projects I do not have time to re- learn C++, MIDI programming, and the windowing system used by Musescore, not to mention slogging through the code in order to figure out where and how to add the functionality. That is me, however. I doubt that most users of Musescore are even programmers.
The point here is: just because no one has volunteered to implement this functionality doesn't decrease its significance. It just means that maybe no one who wants the functionality has the time or ability to implement it.
While this issue report doesn't clarify if it's just for midi out (likely) or also midi in, I'd add that midi out is functional today by using Kushview's Element plugin (free). If the midi destination doesn't have a VST plugin, or is hardware, this works.
The real deal is MS supporting multi-port/ch. midi in (per instrument/staff/or voice). That would unlock so many realtime input options. Divisimate, for example.
@eakwarren:
Thank you for the referral(s). I have downloaded Element. One question: how did you get it to work with Musescore?
I have been reading their user manual. It isn't very good. It does not talk about how to connect the input MIDI to an application like Musescore. It mentions that it can be run as a plugin, but doesn't say how. In fact, its documentation is really incomplete.
I have another question about Divisimate: is it capable of receiving MIDI input from Musescore, and sending different instruments to MIDI out on different channels? Apparently, Musescore 4 only sends out MIDI information on 1 channel.
I am presuming that Element can, since your image is showing it being used with Musescore 4...
See the instructions here and here. Once you have an Element instance loaded in the Mixer, right-click on a blank spot in the graph and select MIDI Output Device and then the port you want to send to. In the graph, cable the MIDI In to that port. Repeat for each instrument you want sending MIDI outside of MuseScore.
Re: Divisimate, yes, it can receive MIDI from Musescore (via Element), but it won't be separated by port/ch. Divisimate combines all its MIDI In as one source using their Nextmidi Merger Port. It will then send MIDI out on whatever ports/chs. you configure in the Divisimate matrix. I suggest reading the manual and watching their tutorial videos to gain a better understanding of what it can (and can't) do. It's very powerful, but also very complex.
Thank you, @eakwarren. I guess I can use Musescore 4 after all.
Just adding another use case for why this would be good to have. My VST (organ) has upper keyboard, lower keyboard and pedals. Each take the "output" from a MIDI channel. Currently I need to do seperate staffs for each keyboard and pedal and assign the same VST to these. It loads 3 instances of the same VST, while 1 would be better for performance.
For organ composers, a temporary (albeit not free) workaround is the Union Chapel Organ. It allows sounds to be limited to a single staff.
While this issue report doesn't clarify if it's just for midi out (likely) or also midi in, I'd add that midi out is functional today by using Kushview's Element plugin (free). If the midi destination doesn't have a VST plugin, or is hardware, this works....
Wondering if people have had luck using @eakwarren's solution on Linux machines. Arch's build (extra/element) omits the -DELEMENT_BUILD_PLUGINS=ON CMake flag and thus doesn't provide the plugin versions of Element. Enabling this option produces a VST3 build of Element that loads in MuseScore and which allows me to route the plugin's MIDI in to a kernel MIDI loopback port (i.e., from modprobe snd_seq_dummy ports=4).
However, I'm having intermittent issues with MIDI being not passed through to the MIDI-through loopback ports. When first adding the Element VST3 plugin and setting up the mapping, MIDI is passed only when the Element plugin window is open in MuseScore; closing the window somehow stops MIDI messages from being passed.
Restarting MuseScore and opening my score without touching or opening the Element plugin window seems to allow MIDI messages to pass through, but as soon as I open and close the plugin window, MIDI messages are blocked again. This does not seem to affect other VST3i plugins in MuseScore.
Also want to comment on the need for native per-staff port-specific and channel-specific MIDI output in MuseScore. I'm grateful workarounds like this exist, but it definitely increases the CPU overhead and administrative cost to set this up these MIDI redirects for orchestral scores or anything over 16 staves. Additionally, because you're now using a VST3 plugin to send MIDI, the MIDI time resolution is limited to whatever your JACK/PipeWire buffer/block/quantum size is (really evident with a stream of 16th notes on a JACK buffer size of 4096 samples). Yes, I could lower the buffer size, but with large sample libraries and their CPU overhead, it's desirable to use larger buffer sizes precisely in this use case (score playback) where you're not doing real-time audio recording and don't need super low-latency playback.
Also, the way MuseScore merges the MIDI messages of instruments like organ or piano into a single MIDI channel solely because of the grouping of those staves into a single logical instrument should definitely be something the user can override. I suppose you could fake it by manually making multiple treble/bass staves (and later drawing braces and barlines between them) in order to have MuseScore consider them separate instruments on separate MIDI channels. But then why have a predefined Pipe Organ instrument at all?
I'm not a C++ programmer or familiar with the internals of the new MuseScore. But happy to test and perhaps learn a little more so I can contribute in the future.
OS: Arch Linux Arch.: x86_64 MuseScore Studio version (64-bit): 4.7.3-260608135 revision: github-musescore-musescore-cf9860c (using AppImage version via https://aur.archlinux.org/packages/musescore-bin)
Let me add my voice to the choir singing the praises of better MIDI support.
Apart from the obvious about the ability to assign output channels there's another aspect: Filtering the input per channel. My keyboard, for example, has a set of 16 pads that can send notes (not CCs) and I'd like to use them for MIDI Remote Control. But since I can't filter on channel neither for notation input nor for Remote Control, it's not really usable unless I assign far-end-of-keyboard note values to my pads. And what then when I need one of those far-end notes? Back to the mouse.
But it's fairly clear that MIDI doesn't seem to be a priority; just try to read the manual section on "Working with MIDI" :-)
I'm just an amateur who toys around with popular music and not grand classical Orchestral Scores, but little quality-of-life things like this makes me stay in my DAW for all my MIDI work. And then I often times don't bother also having to use a second piece of software (Muse) for the notation side of my little projects. The DAW isn't great, but for my uses Good Enough with the time I can spend.