Notifications
Clear all

Unify 2 MIDI inbound program change messages

15 Posts
6 Users
1 Reactions
1,592 Views
(@xtheunknown)
Eminent Member
Joined: 3 years ago
Posts: 17
Topic starter   [#5579]

Unify 2 no longer provides a VST2 version and VST3 does not natively support inbound MIDI program change messages. How does Unify 2 accept MIDI program change messages in order to change the Unify patch? The Unify 1 VST2 file based method worked very well.



   
Quote
(@craigr68)
Member
Joined: 6 years ago
Posts: 268
 

I'm not sure if you're saying it's not working for you.Β  But program changes are working for me with standalone and vst versions of Unify2.Β  I did have to check on "Bank/Program change" and "Bank/Prog error messages" in Settings->Audio/MIDI.Β  Wavesequencer had said in an earlier post of mine that there were no changes for this capability between the versions.



   
ReplyQuote
(@xtheunknown)
Eminent Member
Joined: 3 years ago
Posts: 17
Topic starter  

Posted by: @craigr68
↑

I'm not sure if you're saying it's not working for you.Β  But program changes are working for me with standalone and vst versions of Unify2.Β  I did have to check on "Bank/Program change" and "Bank/Prog error messages" in Settings->Audio/MIDI.Β  Wavesequencer had said in an earlier post of mine that there were no changes for this capability between the versions.

 

craigr68 - where do I specify which MIDI program change text file to load from the Unify 2 UI?

 



   
ReplyQuote
(@craigr68)
Member
Joined: 6 years ago
Posts: 268
 

I'm not sure what you're referring to actually.

I have a totally unique way of sending program changes with software using an Autohotkey script and sendmidi code I got from github.Β  My script generates the bank files for the entire library.Β  I use sendmidi command line to send prog changes to Unify.

https://github.com/gbevin/SendMIDI

 



   
ReplyQuote
(@xtheunknown)
Eminent Member
Joined: 3 years ago
Posts: 17
Topic starter  

Posted by: @xtheunknown
↑

Posted by: @craigr68
↑

I'm not sure if you're saying it's not working for you.Β  But program changes are working for me with standalone and vst versions of Unify2.Β  I did have to check on "Bank/Program change" and "Bank/Prog error messages" in Settings->Audio/MIDI.Β  Wavesequencer had said in an earlier post of mine that there were no changes for this capability between the versions.

@wavesequencer - where do I specify which MIDI program change text file to load from the Unify 2 UI?

 

 



   
ReplyQuote
(@wavesequencer)
Honorable Member Admin
Joined: 2 years ago
Posts: 552
 

@xtheunknown It's not something that is set up in the UI currently.

https://pluginguru.net/unify/manual/doku.php?id=midi-patch-select

This is not a subject I'm familiar with to be honest (I think that for VST3, hosts don't pass raw MIDI data to the plugin anyway, and JUCE API doesn't forward/convert messages of that type back into MIDI PC events unlike CC and note messages) - The program changing / existing config file method should should work in standalone mode at least.

As i've said in another thread, personally I don't like all these hidden features that rely on text configuration files - it makes it appear that they are not officially supported (and it means they get easily forgotten when it comes to feature testing - none of Unify 2 Beta testers bought the subject up , and clearly it's not a feature John uses).
At some point defining program select tables should be part of UI settings directly visible in the GUI - but it will no doubt be limited by the functionality of VST3.

I have to consult with @getdunne Shane on this one and get back to you. All I can say for sure is that we don't have permission to build and distribute a VST2 version of Unify2 so whatever the solution is it will have to work in the confines of VST3 or AU.

 

(From the current Unify 1 online manual:

When Unify receives a MIDI patch-selection message sequence, it responds as follows:

  1. It adds one to the bank MSB and LSB, and also theΒ programΒ number, yielding three numbers in the range 1-128:
    • a numberΒ MMMΒ = 1 +Β bank MSB
    • a numberΒ LLLΒ = 1 +Β bank LSB
    • a numberΒ PPPΒ = 1 +Β programΒ number
  2. It looks in the main Unify data folder, for a sub-folder calledΒ MIDI Bank Files.
    • If the folder does not exist, it ignores (see below) the entire MIDI message sequence
  3. It looks in theΒ MIDI Bank FilesΒ folder, for a file whose name matchesΒ MMM_LLL.txt
    • For example, if the bank MSB and LSB are both zero, it will look for a file calledΒ 1_1.txt
    • If no matching file is found, it ignores (see below) the entire MIDI message sequence
  4. Within the file, it looks for a line which begins with the numberΒ PPP.
    • If a matching line is found, it selects the patch identified by the remainder of the line (see below)
    • If not, the entire MIDI message sequence is ignored (see below)

)



   
ReplyQuote
(@getdunne)
Illustrious Member Admin
Joined: 7 years ago
Posts: 4905
 

I can confirm that MIDI program changes work with the Unify 2 VST3 exactly as they worked with Unify 1.

In Unify 2, on the Settings > Audio/MIDI page, you must check the Bank / Program Change box.

You must also create a set of MIDI bank files as described in the Unify 1 manual at https://pluginguru.net/unify/manual/doku.php?id=midi-patch-select

Note all of this is only checked when Unify starts, so quit and restart Unify (or your DAW) after making these changes.

When I installed Unify 2 on my PC, I set it up to use a different main content folder than I had used for Unify 1, so MIDI program changes didn't work for me at first. I realized that I had set up a MIDI Bank Files subfolder in Unify 1's content folder, but hadn't copied this over to the new Unify 2 content folder. After I did this (and the other steps above), MIDI program changes began working correctly.



   
ReplyQuote
(@getdunne)
Illustrious Member Admin
Joined: 7 years ago
Posts: 4905
 

Posted by: @wavesequencer
↑

...personally I don't like all these hidden features that rely on text configuration files - it makes it appear that they are not officially supported (and it means they get easily forgotten when it comes to feature testing - none of Unify 2 Beta testers bought the subject up...

All of Unify's features that require text files for configuration are experimental, and hence at best semi-supported. When I was working on Unify, my reasoning went as follows:

  • Development of new features typically involves two distinct kinds of work: (1) building and debugging the core code, and (2) designing, implementing, and debugging an appropriate graphical user interface (GUI), cleanly integrated into the rest of the product GUI.
  • Core-code development is much easier using text files than with a GUI.
  • GUI development tends to be require about 10x the amount of time as core code, so it's not worth even starting it until the basic functionality has been proven, and adequate user feedback has been obtained.
  • While a feature remains experimental, modifying the implementation in response to user feedback is also enormously easier and quicker without a GUI. Once a GUI has been built, modifying it is extremely time-consuming and error-prone, so again--better to wait until users are happy with the basic functionality before starting on a GUI.
  • Finally, in an underfunded, one-man development shop, there just isn't time to work on features which only a handful of customers actually use or care about. For such features, the 10% of work required to provide a usable text-file driven implementation can be justified, but there is no business case to justify the remaining 90% of work required to add a GUI. In such cases, it makes sense to stop and leave these features in the "experimental stage" indefinitely.

MIDI bank- and program-changes are one of many features which have nothing to do with sound design, and everything to do with the pragmatics of using plug-ins for live performance. PlugInGuru's focus is sound design. For live-performance control, there are already some excellent "live host" software products on the market, such as Gig Performer, Cantabile, Camelot, and MainStage -- all built, marketed, and supported by companies with deep understanding of the live-performance market and the resources to support it. Unify (1 and 2) can be used as a plug-in in any of them.

Of course it'sΒ technically possible to add all the features of the best live-hosts to Unify, but PlugInGuru does not have the resources to do this without going broke. People who need live-host features ought to consider just buying a live host, and if they also like Unify--for its sounds, easy routing, and other nice features--they can use Unify inside it.

 



   
SSquared reacted
ReplyQuote
(@xtheunknown)
Eminent Member
Joined: 3 years ago
Posts: 17
Topic starter  

@getdunne @wavesequencer

Thanks so much for the comprehensive replies! They are quite helpful. Having run a small software business myself for 15 years, I fully appreciate the challenges of delivering a high quality software release with very limited resources. You guys have done and continue to do an AMAZING job. Unify is by far my most used plug-in. Iit's rock solid and I use it on every track that has virtual instruments in it.

I am so disappointed that VST3 does not natively support MIDI program change messages. This design decision by Steinberg is nothing short of baffling to me. MIDI program change is vital for live performance, but MIDI program changes are also an important tool for studio work:

  1. To ensure that each instrument plug-in track has the correct patch loaded at the start of the song
  2. To reduce the number of instrument plug-in tracks required for dense instrumentation by using MIDI program changes within a track as the song progresses.
  3. To help ensure that catch-up mode for plug-ins works properly

I would use AUi (where program changes work properly in Unify 2), but my understanding is that the Unify 2 'Hardware Synth' plug-in requires VST3 (please correctly me if I am wrong). I also use MainStage, but that comes with its own set of complexities and issues - and I was hoping that I could use Unify 2 for studio work without this added complexity.Β 

  1. Will the 'Hardware synth' plug-in likely work in MainStage?
  2. My high level understanding is that to get a VST3 to recognize MIDI program change, you only need to use the kIsProgramChange flag and then handle the incoming MIDI bank and program change events accordingly. Some of the example code I've seen looks fairly terse, but then ignorance is bliss, as they say - so I can be wrong. Perhaps it's worth a quick look...

Once the missing Unify 2 VST3 'Hardware synth' plug-in problem has been fixed, I will try embedding Unify in MainStage and go from there. Thanks again for your responsiveness, all your hard work and excellent support!!!



   
ReplyQuote
(@getdunne)
Illustrious Member Admin
Joined: 7 years ago
Posts: 4905
 

Posted by: @xtheunknown
↑

I am so disappointed that VST3 does not natively support MIDI program change messages. This design decision by Steinberg is nothing short of baffling to me.

All of Steinberg's decisions concerning VST3, including its very existence, are baffling to me. All anyone wanted was VST 2.5 with a few fixes, but we got VST3 shoved down the entire industry's throat.

The VST3 specification itself may not support MIDI program-change messages to plug-ins, but as I mentioned above, I have been able to send such messages to the Unify 2 VST3 in the JUCE Audio Plugin Host demo program, and it works just fine. The issue may be related to your host, but unless I missed something, you never specified which host you're testing with. Which host/DAW would you like to use?

MIDI program change is vital for live performance, but MIDI program changes are also an important tool for studio work:

  1. To ensure that each instrument plug-in track has the correct patch loaded at the start of the song
  2. To reduce the number of instrument plug-in tracks required for dense instrumentation by using MIDI program changes within a track as the song progresses.
  3. To help ensure that catch-up mode for plug-ins works properly

#2 is a very specific choice (which I would not recommend); #1 and #3 follow from this choice, and are not an issue if you don't choose to rely on MIDI to trigger program changes in plug-ins. Patch changes in Unify can take quite some time; I would not rely on them happening quickly enough in a DAW.

With modern DAWs, I would think there is no reason not to use multiple tracks, each for part of the song. But perhaps this is lack of experience on my part--can you explain a scenario where one track with patch changes is clearly superior to multiple, single-patch tracks?

I would use AUi (where program changes work properly in Unify 2), but my understanding is that the Unify 2 'Hardware Synth' plug-in requires VST3

It certainly does not. Where did you get that idea? If something has been documented incorrectly, or suggested in a video, the PlugInGuru folks need to know ASAP. The Hardware Synth plug-in is built into Unify 2, and serves to connect physical hardware instruments to the Unify 2 stand-alone app.

Will the 'Hardware synth' plug-in likely work in MainStage?

Not the way you expect.Β 

If you use an instance of Hardware Synth in Unify 2 running inside a DAW, it will still function the same way--MIDI coming into the INST layer will be passed to Unify's MIDI output, and simultaneously, the INST layer can receive audio from one of Unify 2's input busses--but this will not allow you to connect to external hardware, because plug-ins can't see external hardware. MainStage, Logic, and most DAWs each have their own way(s) to connect external hardware; you would use these instead.

My high level understanding is that to get a VST3 to recognize MIDI program change, you only need to...

Oh, if I had a dollar for every time someone said "you only need to" or "could you just", I could live it up at Starbucks. As I said above, the VST3 versions of both Unify 1 and Unify 2 are already able to respond to MIDI Bank and Program Change messages--provided it receives them. If your DAW doesn't send them, then the fault lies with the DAW.

 



   
ReplyQuote
(@wavesequencer)
Honorable Member Admin
Joined: 2 years ago
Posts: 552
 

Thanks Shane for confirming the feature works, and explaining in detail - I need to do my research on how a MIDI PC message can get converted to the VST3 API (if the host implements that) and back out to our plugin as MIDI message data (assuming JUCE does the conversion back to a MIDI message).

Unfortunately it seems that once 'experimental features' are detailed in the user manual (even if clearly marked as such) and exposed to all customers, it sets up an expectation that the feature should be there and always be working/available.

I can understand that people will expect things already working in Unify1 to still work in Unify2 for sure - and for the most part - unless it's blocked by VST3 - that will still be the case. The only other hidden/text configuration feature I can think of that doesn't work currently is enabling more than the default number of macro knobs (I'm just going to update the UI to be able to do it), and layer colour setting files won't work in Unify2 - now this is all via the UI - but there is an Xml format colour definition file that can be manually tweaked.

I'm maybe less patient than you with this kind of thing and I think I will avoid to release new features unless they are finalized into the UI, and for testing with incomplete GUI implementations I will only rely on beta builds/beta testers.Β 

I have also heard that ' it should be easy to just add this..' comment far too many times πŸ™‚

 

Whilst the 'Hardware synth' plugin won't directly see hardware, I guess there is no harm in enabling it for the plugin, assuming the end user knows how to set their DAW to forward MIDI messages to specific output channels they know their hardware is going to respond to. This is assuming (big assumption) that sending a RAW midi output buffer from the VST3 version of Unify2 doesn't somehow get PC and bank change messages stripped out of it (or it's another case of double conversion if the DAW supports that)?

 



   
ReplyQuote
(@univst)
Eminent Member
Joined: 1 year ago
Posts: 27
 

Posted by: @wavesequencer
↑

Unfortunately it seems that once 'experimental features' are detailed in the user manual (even if clearly marked as such) and exposed to all customers, it sets up an expectation that the feature should be there and always be working removed link

I can understand that people will expect things already working in Unify1 to still work in Unify2 for sure - and for the most part - unless it's blocked by VST3 - that will still be the case.

I think the current system with MIDI (text) bank files is brilliant. It's theoretically possible to switch (from another program) to over 2 million Unify patches (128x128x128)! A simple yet very powerful solution. For example, I created my own (experimental) patch browser by programmatically generating the MIDI bank files from the patch names in the Unify database (currently almost 40000). It works perfectly, and I can customize it to my personal needs!

Just add features to Unify 2 instead of, perhaps in the future, removing "experimental" features from Unify 1. Even though these may not seem user-friendly, they're actually one of the main reasons I still use Unify (1 and 2) and invest time in creating my own Unify patches instead of just using Native Instruments Komplete Kontrol patches. Keep the ".unify" file format (essentially an unencrypted XML file format), keep the unencrypted database, keep the "experimental" text file features of Unify 1. In fact, this non-proprietary structure is one of the main reasons I invest my time in making patches of my own plugins in Unify (more future-proof due to the semi open structure).



   
ReplyQuote
(@wavesequencer)
Honorable Member Admin
Joined: 2 years ago
Posts: 552
 

I don't plan to remove those existing features, but with the program change/select, it would be a lot more accessible to other users if we had a table in the UI where we could just assign patches directly from the database.

I can't promise the format of the patch database will stay the same forever - it has limitations, however it's probably going to be mostly a case of evolving the UI part of that.

Any new features that I add will be in the UI/directly accessible - if necessary hidden behind a 'secret' button whilst in development, but editable via the UI.



   
ReplyQuote
(@univst)
Eminent Member
Joined: 1 year ago
Posts: 27
 

Posted by: @wavesequencer
↑

but with the program change/select, it would be a lot more accessible to other users if we had a table in the UI where we could just assign patches directly from the database.

Thanks for the replies.

Enabling the selection of MIDI bank file patches via the GUI (in addition to? / on top of ? the MIDI text file solution) seems like a good solution for most people, as long as the existing MIDI bank text file solution remains available. The advantage of the text file method is that users can generate these text files programmatically in a flexible way that suits them best. If it conflicts, my suggestion is to add a setting (checkbox), something like "Enable legacy MIDI bank text file method." Then everyone will be happy.



   
ReplyQuote
Progster
(@progster)
Estimable Member
Joined: 5 years ago
Posts: 120
 

Long experience as both a user and a programmer has taught me that some software features/functions by their nature are:

a) relatively easy to implement based on text files (compared to doing a full GUI implementation)

b) extremely flexible for users when so implementedΒ  (as when the text files can be bulk-created or bulk-processed)

 

The most practical approach, IMO, is to specifically evaluate the feature/function in question and then make a justifiable choice between:

1.Β  the full effort of a full GUI implementation

2. the lesser effort (if applicable) of a text file based implementation

3. no implementation at all

From the user POV, #3 is the least desirable!

Choosing between #1 and #2 is a cost/benefit trade-off.

FWIW, I tend to favor practicality over ideology, in life, in software, and for Unify.



   
ReplyQuote
Share: