Changing Different Instruments
-
You can bypass and unbypass containers via scripting. You can also use MIDI muters to prevent MIDI data going to specific containers and this can also be controlled with scripting.
-
This is how I'd do it.
The combobox bypasses all containers except the selected one (ignoring the main container of course). It also blocks MIDI from entering all containers except the selected one.
HiseSnippet 1197.3oc6YssaaaDDcojYRDSTt.zOfs9IIDGGReIs.tFww2JHZjiPUZPALLBnHWYsvj6RPtL0BA9+pneU4OncuPJRpxXHy1TDiR9DmYmY1yLypyrBbXD0EEGSi.Zcd6rPDP6A5ilQXSOXpCl.rODn8P8ANwLTDToZ+YgNwwHOflV6eTnPqyJ.4ymd49N9NDWTtJ.3cTrK503.LKW6v89Iru+wNdn2hCJX8V6Y6RIGP8oIb7zV2DD53dgy4nSbDl0RGncmi7vLZzHlCCECzVYep2rQSo+FQY+6vw3w9HgfEXDOPJ0GS88DHV7N3foXeugY4cL.ncug4Ug1ppv2nO.6gmqOuZ7X4BvbOJVOzZccvyplvSq.7VQAumnOxMBGxxWQfs6qaS3MpIN7VPQXorEz52aqe.kaAgsdfyEnii3By8n2KLMWCtsoY+c5Zz034OGJrkm1nn3tF79RLC5low1KFtKTdPY8yQLauWiiY8VctGqJBxB9H73zyjAeBMB1C6AwjRgreWiO10.xevSjqu6tkV+Tyy5KUfIIncfbHN5BbHLPc7btkpPjuuqGlDOs2bvJKvRI9VzW.zqTdHS5A1GZCGjvJj0ABoOSFKNLHstPFKsu5rMKT8U6nxxEvWoCdYPThM2fw17MHJIf2B6ZfI977CNIg3xvTBjRJYfnYDQ864RCBoDth0fevwOAopxcTnhiRycfX3OTrd4iHmylxU+zmlBzz1R455o3yVOFwxNowC12tqZKfOCZIPclOp7L09WwXQ3wbM8xUiOmPiP6mvXTxZvECjLN7lTGUW5JY8H6jrnilkg8VsTEX09h8KsNbfiu+XNcRupKSB3VnRdBkgdCoWeiOZzw3JC3hKMYRkqkFLeTTkKKn6htNG6QRBFihx5TYFx+ceYhk6rbDKtpZTACoDaBl8lPTpbN0iUETOfzhrfDJEgbSYRJnGmRAwK9io6SuDf4g4Q5kps.YZTXbvdfew9PGlSV.41v2uPTDCKRKsCQefOtPww0Q+PT7ELZnz1zNLP6t2fs+Rflt1ev22YhWr4uD3H0IvClgB364154N.sLJHrQQgMKJrEfgtjIlUVXy.+cZZ9vBpWhuCq7DDwXyzE3c+RT0B5XRLlMq3X0avXEyJGqTYucIg6SzGhYtSqFusp.u7d6WZ7lNjtq9QSlfbY4fcE8i+05NQtdP4delaM8.84CCsJUwp4clBW56Lo0tbJ2d4tiTEW7XkaO2KJEd2We9.4ztvbYqxH5ZKRVKeQp.EYqEoHeXJGkZtljg5g5EG0sH+3mdIXIhwizmfubDKw8Bwnn3JBRCSz+WXh9YZB+1vmOvgemJwjsSRBFwYBbQbjPHH+XwztVhioJYSgrnxLBQ7jB+I+IcQKgrV5hVYKdCY613ei+gXCa2+P1tMtEv1kFtF1tF1tasrca1b2tuBX61r4tcMrcMrcewY61pgs6q.1tsZX6ZX6ZX6pAa2+E6QfiaD88tpC+xutnTCOuIxuhYG8ABYnU1occcy0MAA7ec+dWWQ49YV.P09rQM7YyZ3yV0vmsqgOunF97c0vmu+Z8QPr9pDFMP8SQthgGI+HEZZGQb3mjkm5A+EvYvI3R
-
Thank you very much, that's what I needed!
-
@d-healey Thinking again about this solution, I have noticed that changing instruments would not change the interface that I have created for each Preset, since each instrument has different names and buttons. Is there a way to do this?
-
@Felipe-Flores Do you mean changing the graphics or changing which controls are displayed?
-
I will try to summarize it. I have 4 different instruments and each one has Gain and Pan, but the interface of each one is different. I need that when the instrument is changed, the graphic interface will also change as I have customized it with buttons in different positions. Besides that, each instrument has different settings.
-
You can't change images once the plugin is compiled, unless those images are used by other controls on the UI. So if you want to "change" images you'll need to have multiple sets of controls that you show/hide depending on the instrument that's been selected.
-
@d-healey Ok. I get the point, then. For Example.
I could create a Panel (With the buttons and sliders inside it) that encompasses the entire interface and connect it to Container1 using some kind of command so that it disappears when switching to Container2? and in this way, the other Panel corresponding to the next Instrument (Container2) would appear?
-
@Felipe-Flores Take a look at my tabbed interfaces tutorial.
-
@d-healey I just watched your videotutorial, Thank you, it's great. Could this be done with a ComboBox? Because now I need each button to activate and deactivate the Containers as you explained before.
-
@Felipe-Flores Yes use the value of the combo box instead of the button index.
-
@d-healey Thank you very much, your help has been very valuable to me.