Hello Daniel, hello Dorico team,
We are building an application for orchestral template work around Vienna Ensemble Pro, and we load a VST3 instrument plug-in of our own on each instrument of a Dorico project. Our plug-in needs to know which instrument it is playing — Flute 2, Violin I — and the VST3 SDK has an interface meant for exactly that: the channel context (Steinberg::Vst::ChannelContext::IInfoListener::setChannelContextInfos), through which a host tells a plug-in the name of the channel it sits on.
We measured what Dorico 6.2.30 does with it, using a small logging plug-in:
- the audio engine reports
IInfoListener as supported, and asks each instrument plug-in for the interface when it loads it;
- it never calls
setChannelContextInfos on an instrument plug-in — not at the load, not when an instrument is routed to it, not after a rename, a renumbering, a change of instrument or a change of the instrument names language;
- it does call it on an insert on a mixer channel, once, when the insert loads, with the engine’s own channel name — the instrument plug-in’s output port name (Stereo Out) rather than the name the mixer shows (Flute 1).
So the door is there and wired; what does not cross it is the name Dorico shows its user. Our request, in two parts, the smaller first:
1. On the channel context Dorico already sends to inserts, the mixer channel’s displayed name — the full instrument name and its number, as the mixer shows it (or the user’s own name when the channel has been renamed) — and the context sent again when that name changes.
2. The same context sent to an instrument plug-in for the channel it plays, at least when an instance plays a single instrument: the instrument’s displayed name, and a fresh call when it is renamed, renumbered or changed.
Neither touches the score, and both use an interface Steinberg’s own SDK defines for this purpose. If either is on a “possibly” list, a word on which would help us decide what to build against; and if neither fits Dorico’s plans, that is a useful answer too.
With thanks for Dorico, Emmanuel Cambier ECMP Media Production
This would be a reasonably big job for us to support, because of the multiple layers of architecture that exist. It’s not impossible, but it’s not something we could do especially quickly, as it would require changes to Dorico itself, to the intermediate layer Dorico uses to communicate with the audio engine, and to the audio engine itself.
Can you say any more about what benefits this change would bring to your workflow, so we can assess what kind of priority this might have?
Hello Daniel,
Thank you for looking into it so quickly, and for being clear about what it involves. Here is what it would change.
For us. We put one plug-in of ours on each instrument. It needs to know which instrument it plays, so that it can get the right sound ready the moment the composer adds that instrument: the right instrument, and the right player. A second flute should not trigger the very same samples as the first, or their unisons phase. Today our plug-in can only work this out indirectly, and the name the composer sees reaches it late. With the name, the plug-in would know at once, and it would follow a rename, a renumbering or a change of instrument without the composer touching anything. In an orchestral project of sixty instruments or more, that is the difference between adding an instrument and hearing it, and adding it and then having to fix it up.
For Dorico users generally. None of this is specific to us:
- Any sampler or library player could choose its patch, or its first or second player, from the instrument it is told it plays.
- Any plug-in could show, in its own window, which instrument it belongs to. Sixty copies of the same sampler are hard to tell apart.
On priority, so the job can be as small as possible:
- Part 2, the instrument plug-in, matters more to us than part 1.
- The smallest useful version would be a single call when an instrument is routed to a plug-in instance that plays only that instrument, carrying its displayed name. The calls after a rename or a renumbering could come later.
- It does not block us. We have a way forward without it, and this would make the result immediate and sturdier for the composer.
If it ever reaches a development build, we would be glad to run our logging plug-in against it and report back.
With thanks, Emmanuel Cambier ECMP Media Production