ModPlug Central

OpenMPT Development (Archive) => Feature Requests => Feature Request Archive => Topic started by: Diamond on February 08, 2009, 20:46:30

Title: Autimatically create new instrument for VSTis
Post by: Diamond on February 08, 2009, 20:46:30
It would be nice to have the option to automatically create a new instrument and associate it with a VSTi when it's first loaded.  MadTracker has this feature and I think it makes adding VSTis to a project much simpler.
Title: Autimatically create new instrument for VSTis
Post by: Harbinger on February 08, 2009, 21:05:04
I'm trying to think of a time when i would load a VSTi but NOT need a new instrument, and i can't think of one. Everytime i wanna use a VSTi, i need an instrument to play it, even if it's second instance of the same VSTi.

The only problem might be if MPT can tell the difference between a VST Instrument and a VST Effect. That might cause a problem. But except for that i think this is an excellent idea. I second it!
Title: Autimatically create new instrument for VSTis
Post by: Diamond on February 08, 2009, 21:16:17
Quote from: "Harbinger"The only problem might be if MPT can tell the difference between a VST Instrument and a VST Effect. That might cause a problem. But except for that i think this is an excellent idea. I second it!

Actually, this shouldn't be a problem because I'm pretty sure that VST effects and instruments are somehow flagged as such internally since MPT and every other host I've ever seen automatically organizes them into different groups when you add new ones.
Title: Autimatically create new instrument for VSTis
Post by: Saga Musix on February 08, 2009, 21:38:36
Quote from: "Harbinger"The only problem might be if MPT can tell the difference between a VST Instrument and a VST Effect. That might cause a problem. But except for that i think this is an excellent idea. I second it!
Ahem, in case you didn't notice, MPT does distinguish between the both in the "add" dialog. :P It's pretty easy to differ between them.
Also, the request is profound and not too complicated to implement, so it should be there "soon".
Title: Autimatically create new instrument for VSTis
Post by: Harbinger on February 08, 2009, 22:01:39
Excellent! I don't know code so i don't like to assume anything, that's all. Good work! :)
Title: Autimatically create new instrument for VSTis
Post by: Saga Musix on May 07, 2010, 18:08:53
instead of just saying that "an instrument has to be assigned first", openmpt will prompt you in the next version whether you want to automatically create an instrument or not (after having tried to play a note in the VST editor, that is). is this good enough for now?
Title: Autimatically create new instrument for VSTis
Post by: Diamond on May 07, 2010, 18:19:17
Absolutely, although in the long term it would definitely be more convenient to just make automatic creation/association an option in the settings dialog.  This is certainly progress though.
Thanks.
Title: Re: Autimatically create new instrument for VSTis
Post by: Saga Musix on June 27, 2015, 17:08:04
Ok, I've now modified the behaviour when adding instrument plugins to automatically create an associated instrument if possible.
Title: Re: Autimatically create new instrument for VSTis
Post by: Diamond on June 27, 2015, 19:06:17
Excellent.  Thanks for this.
Title: Re: Autimatically create new instrument for VSTis
Post by: Diamond on June 27, 2015, 22:16:57
I don't know if you care enough to put any more effort into this feature or if this suggestion makes sense, but I noticed that when you replace a VSTi in a slot, it creates yet another instrument in addition to the one initially created when you first add a VSTi to the slot.  Perhaps you could modify the behavior so when a VSTi is replaced, it checks to see if that slot is already associated with an instrument and if so prevent it from creating another one.
Title: Re: Autimatically create new instrument for VSTis
Post by: Saga Musix on June 27, 2015, 22:42:05
Argh, I knew I forgot to fix a bug. This will actually just happen if the already existing instrument is the last instrument, because the three hardest things in programming are naming things and off-by-one errors.