VST open bug —
If I create two [vst~] objects, each of which uses the same VST, and I send a message to one of them to ‘open’ the VST for editing, the VST opens twice and in fact they seem to be sharing the same instance because saving a patch to one of them seems to save to both.
Any idea how to fix this? This is happening with Max 5 (I haven’t tried it in Max 6 as Max 6 hung when I was trying to open a VST a second time and so I had to revert back to Max 5 for my project)
Has anyone else seen this behavior? I’m happy to investigate further if it is unknown but I don’t really want to spend time investigating a problem that is already known about.
I can’t repro with Max 6. OS, computer model, version of Max, plug-in used?
Sorry — I was using Kontakt 5 with Max 6 (release version)
MacBook Pro running Snow Leopard.
Kontakt 5 has some known issue. I’m not sure this is one of them, but its something that we can look into.
Does it happen with other plugs too?
Will experiment some more then and let you know — this was the first time I actually tried to use the same VST multiple times in a single patcher.
OK — this is not limited to Kontakt (nor even NI plugins). It happens with any plugin if I create two [vst~] objects that use the same named VST file.
However, if I make a copy of the underlying VST in the same folder with a different name, so that my second [vst~] uses the copied version, then they are completely independent with no problems.
Sounds like a singleton problem to me, a global list of VST names used as indexes into loaded libraries, perhaps.
(I never liked the singleton pattern, I always got bitten eventually if I used it in my code)
I can’t reproduce in Max 6, so if it is Max5-specific, it is highly unlikely that this will be fixed.
Please give it a go with Max 6 and let us know if you are still having problems in this department.
This is happening on Max 6
Can you please post which plug-ins you are seeing this with? We are unable to reproduce here with a handful.
Also, a patch would be handy. Thanks!
Hmmm, based on your inability to reproduce, along with the experiments I did subsequently, I’m wondering if this is a problem with abstractions and has nothing to do with the actual plugin used (unless you use the same one multiple times). Attached is my GenericVST abstraction and a separate patcher containing two of them. This is part of a larger project I’ve been working on to manage a live rig with many external MIDI devices and the idea is to be able to treat VSTs as similarly as possible to external devices in terms of control. For example, you can just feed the standard output of [MIDIParse] into this thing.
Here’s the GenericVST object
----------begin_max5_patcher---------- 2821.3oc6cs0aaajE9Y6eECTPQeIVkycxcWr.EIEEAnMa1jr4khf.ZoQ1rQh TKIkurEc+subtPK4XwgCooGSYu.IBQTRjy4aNy47ctLS9iiOZxoYWIJl.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mHuoOybd7LhVuyCFWyWeCH9fpO6h6c4wbgOcm hZitgGWu6h6Th+rO+MSEO5iGWFNT+wFyEuW9SYl4hxCyeNSwQtNdfimwCzej CkMCoaiG+LeAQtr5xeNKfN4b2e3C0Ixpb+gOtr7xeniKZOP+Yal5B7.8m0Yn Kglh7GUdhKyWD+MeAcgZH1iiGW3Zfo9a73RnEP+4cG4h0Y+McgcZ4U33Bd7m 1iKK18G33BwGj+zcPtPLj3QSyNQT0eKsbJnT53JtB03ANd7rCCGWpyH+kDJF 0kjNG52wSqDm8bMcvsMd725KhSI8gOtRhIwi4YwoZl5QuotvLjwFW0DjEMpX av8m6TtKvCxiiGz3pj6trZm6uU6TW7ty82pKhSpy9y5LCMtFOP13Z7nVt2ZG jLxJAGOZbk2mvfwUdeB8m44PWrG12z9.97w+4w+O.H0sIAC -----------end_max5_patcher-----------
The GenericVST patcher takes a single argument, the name of the actual VST to be used.
Here’s a trivial patcher that instantiates two GenericVST patchers. If you double-click on one of them, it opens a new patcher which has (among other things) a button to open the VST GUI. You should discover that if you do this and the GUI opens, moving the GUI window exposes another one underneath.
----------begin_max5_patcher---------- 220.3ocyP9qCBBCDFet8onoyno.JI3lt3CfFWTiohmXMPg.GQTiu6ZaAiito K85869y2ku6TBeeQKTyYSXqYDxcJgXQF.oKmvyksIYxZaabMboX+YtmqDBsn EOGzPkJY0hkrM7YRDgpqrvM79F0M4JcFf1kD2AKkXxIkNcWEjftiHbbvPgGK PHLA+vHW1PAaa2PpCVAecDCF0u8iEZTKyAakoUJY1G5Vzf8BGzQcH7ZI3TkW qR0lgd+6sblUWqtYaz+0sYnOnTyi2+gkE4rpX+uvwB+sNFaK8A8IRrOlo. -----------end_max5_patcher-----------
By the way, going on the possibility that invoking the same abstraction with the same arguments was just causing two references to a single instance, I tried adding another parameter (different in each abstraction) but that didn’t help.
Take a look at your sends and receives. There is no distinction between abstractions, so all messages get sent to both. send/receive namespaces are global.
Ouch (VERY RED FACE)
But thank you so much — I should have seen that myself.
I just took another look my patch as I realized that if in fact the send/receives were completely global, then multiple VSTs, even with different names, should have all opened at the same time.
Turns out I did use the VST name as part of the symbol for send/receives which explains completely why only GenericVSTs containing exactly the same name got opened at the same time.
Can you recommend a better naming convention to use for the Send/Receives so that even if the parameter name (the actual VST) is the same in multiple abstractions, only the specific abstraction will be opened. In other words, is there some best practice that can be used to create names that will only be visible in a specific abstraction?
The irony is that when I first built this abstraction, I didn’t use send/receive and only put them in later to "clean up" the wires.
i like your whole project. nice patches. i took a quick look at the abstraction for unique identifiers etc:
----------begin_max5_patcher---------- 3944.3oc6cstiaaiE92SdJHbPQ6BLwU7ltzsXWDjVTDf1ztMY6eRCBjs4LVM 1RdkjmIS61826yv93sOIKIOz1xcrjnskoblrHsNYzXSe324vycR9aO5hAixd unX.5KPuFcwE+1it3B8iTO3ByOewf4wue7r3B8aav3r4yEokCtD9ckh2Wpe9 msPjWjkFOa1cnxoYKudJJAca1xYSPKKDnWeyaPWkkK+UIE+oUe3YIohwYKS0 i.07vqxudDPPdCCXXbf+kx+km4E7POzaLuyzkyyVVNSTpoLOySWjKJjDXbYR V5ayEiKgAiR7UedJkNj466Gv2LpqGvqxRKKR9Ug5SfoC4QAATxpgMtb7zjzq qLjDNQOjX1PrefeDSRddT0i3zJipBhFmMKK2tYUxDMdlM5WdBlvFTgzRimqI sAOMOId1fMnPR5JP.qd1u+nGod4RK4nohakeY2ig9qyP4hqQOFOXmvMYWXlB OfGCuyx6VHfY8fAWJ++0Sxcfl9LrFMi3ZDLP8JwqNfgtm.C4..FaD0qJiCH1 knzrRTLZtnnH9ZAR9cbIZzxR4aMdNZbd7udWur.vmFpw2P+0iUsx9a3i6hQw 0bHJKRSOb8PwB6HIdR+IweC5wduU8Uh9FQpHOY7KuKsb5tE+wMC1Des7KyOZ e.66unooELTNnqgo0BgY92aEyV7.OqferCf+5VWMb3PzcYKQiWuhRYs.Emd2 sSE4B45paQIknowEnQBQJ5pjYyDSPYonYYwStD8KKKJQ2lTNUt5a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f635GXU0ebKNgsQZh6XOwswm.r+4mWuZZBedQS 5Dl4NZxGaKM4vnMsw.rakvsplctUBmgOCoIOKpiHCe9kodB87K+bANthF1zA FbG6OmMZL4tUdhZkmJtUioNsosleN+yOYbMM4tluHvyVZBedUX5H2qFu8dun FZBe5noV6yAlSooP14WeND5aKMcnh3xe32ez+CrE0RFH -----------end_max5_patcher-----------
Wow — thank you so much — I took a quick look and appreciate all the comments you put in there. I will have to study it much closer to make sure I understand the changes you made.
I’d like to include your changes in the zip file that I’ve recently made available on my own site for the larger project (see http://deskew.com/component/content/article/19/76.html) and would be delighted to credit you if that’s ok.
@pid I have been trying to understand your changes and wondering why you are recommending [v] rather than [pv]
The reason I got into trouble with the original patch was of course because I forgot that send/receive names are global.
But I knew that [v] was global and [pv] was ‘more’ local which is why I used the latter. What’s the disadvantage of that decision?
hey, sorry i missed this. been busy. glad to have been of help.
the v / pv things were merely that i had rushed the whole thing and was confusing myself, if i remember correctly. so do not take concrete practices from it!
however, the two objects work very differently of course. if all you have to do is ‘declare’ a variable to be accessed later at any other point in the abstraction, presumably [v] is a little faster and less overhead. but if you need to take advantage of all the [pv] features, use that and can still be used with #0.
The use of [v] rather than [pv] would have screwed me up with multiple patchers just as my not using #0 was screwing me up.
At this point though, I have it working beautifully, thanks to your comments. In fact, I’ve actually improved it a little to eliminate the need to send the patch name in separately. So now I can just write
[GenericVST "Kontakt 5" Strings]
to give me an immediately useful VST with a strings patch in Kontakt5. I would save this in a folder called "Synths"
Typically however, I would create a patcher, add that object and some controls to expose relevant parameters for that particular patch (e.g. string legato mode, vibrato rate) and then THAT patcher would become a new abstraction simply called [Strings] in a diferent folder called "Instruments"
That’s why I want the feature I mentioned in another thread where Inlets and Outlets could be added automatically. The ability to create a large collection of instruments becomes very efficient and one can then just browse the "Instruments" folder to instantiate whatever is needed.