Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MPE - how to have several pitch bends on several channels? #368

Open
gexahedron opened this issue Dec 1, 2022 · 1 comment
Open

MPE - how to have several pitch bends on several channels? #368

gexahedron opened this issue Dec 1, 2022 · 1 comment

Comments

@gexahedron
Copy link

gexahedron commented Dec 1, 2022

Hi, I'm trying to used dexed within Supercollider, as a VSTPluginController, in a MPE mode, for microtonal purposes. I can't figure out, how pitch bend should work. My expectation was, that if you send 2 different pitch bend values to 2 different channels, they will be independent from each other. This kind of approach works on Surge XT, and with chipsynths from Plogue. However, this doesn't work with Dexed - pitch bend seems to be global. Example code, how i use Dexed in Supercollider:

// 1. define synthdef
(
SynthDef(\vst_plugin, {|out, gate = 1|
	var sig = VSTPlugin.ar(numOut: 2);
	Out.ar(out, sig);
}).add;
)

// 2. init synth
a = Synth(\vst_plugin);

// 3. init vst plugin controller
c.open("Dexed.vst3");

// 4. play notes
(
p = Pbind(
	\type, \vst_midi,
	\vst, c,
	\midinote, Pseq([60]),
	\chan, 3,
	\dur, Pseq([1]),
	\amp, 1.0
);

q = Pbind(
	\type, \vst_midi,
	\vst, c,
	\midicmd, \bend,
	\val, Pseq([8192]), // def 8192, min 0, max 16383
	\chan, 3,
	\dur, Pseq([1]),
);

t = Pbind(
	\type, \vst_midi,
	\vst, c,
	\midinote, Pseq([64]),
	\chan, 4,
	\dur, Pseq([1]),
	\amp, 1.0
);

v = Pbind(
	\type, \vst_midi,
	\vst, c,
	\midicmd, \bend,
	\val, Pseq([4192]), // def 8192, min 0, max 16383
	\chan, 4,
	\dur, Pseq([1]),
);

r = Ppar([p, q, t, v]).play;
)

So, [p, q] are commands for one note on channel 3, [t, v] are commands for the other note on channel 4.

Should I do it differently somehow?

@gexahedron gexahedron changed the title MPE - several pitch bends on several channels MPE - how to have several pitch bends on several channels? Dec 11, 2022
@gexahedron
Copy link
Author

Okay, as an alternative, what works for me right now - monophonic mode, without MPE, and playing only a single note in a single VST plugin instance

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant