Envelope Midi Module Parameters can't be set by name

Use this forum for an overview of collected bugs and to report new ones.
Post Reply
AposMus
Junior Member
Posts: 189
Joined: Fri Nov 14, 2014 11:41 am
Contact:

Envelope Midi Module Parameters can't be set by name

Post by AposMus » Sun Jul 14, 2019 7:23 pm

This is actually a very old bug, but I keep forgetting to post about it.

The Mono Envelope midi module parameters that come after the 'Bypass' parameter can only be set by ID.

If you put an envelope module after you script module and run this script, you get an error after the 3rd parameter prints.

Code: Select all

midiModule = this.parent:findMidiModules(true, 'Mono Envelope')[1]

print(midiModule.name, '\n')
paramdefs = midiModule.parameterDefinitions

for _, paramDef in ipairs(paramdefs) do
	local def = midiModule:getParameterDefinition(paramDef.name)
	print(def.name)
end
Also : The code below has no effect.

Code: Select all

module = this.parent:getMidiModule('Mono Envelope')

module:setParameter('VelocityToLevel', 1)
This code does the trick though

Code: Select all

module = this.parent:getMidiModule('Mono Envelope')

module:setParameter(65566, 1)
Cubase Pro 8.5.2
Halion 6
HSO
Padshop Pro
Dark Planet

Post Reply

Return to “Issues”

Who is online

Users browsing this forum: No registered users and 1 guest