Halion 6: Sample Selector in Macro Page - How to show loaded Layer?

SDK for VST 3 audio plug-in and host development.
Pit-Lip
Posts: 1
Joined: Tue Jan 15, 2019 2:27 pm

Halion 6: Sample Selector in Macro Page - How to show loaded Layer?

Postby Pit-Lip » Fri Feb 08, 2019 1:24 pm

Hello,

coding a historical organ with Halion i stumble with loading Sub-Presets into a Macro-Page.

I added Sample Selector template to the macro page, included the LUA-Script with

Code: Select all

defineParameter("SelectedPath",nil,"",function()onSelectPath()end)
defineParameter("SelectedPreset",nil,"")


function removeOldLayer()
  if oldPreset then
    this.parent:removeLayer(oldPreset)
  end
end


function appendNewLayer(progressInfo)
  if progressInfo.root then
    oldPreset=this.parent:getLayer()
    this.parent:appendLayerAsync(progressInfo.root,removeOldLayer)
  end
end


function onSelectPath()
  loadPresetAsync(SelectedPath,appendNewLayer)
end


and edited the
Extension: vstpreset
leaving all other entries empty.

Result is, that i can switch to the

Code: Select all

VST3 Presets/Steinberg Media Technologies/HALion Sonic SE/Layer

page and can see my Sub-Presets.

How to make them to playable layers?

The programm structure is quite simple
Lua-Script
Note-on
Note-off
another layer
another layer
Special-bus with 4 Effects
Program-Bus with 2 Effects

Many thanks for any help with this!
Pit

Arne Scheffler
Posts: 231
Joined: Mon Jun 20, 2016 7:53 am

Re: Halion 6: Sample Selector in Macro Page - How to show loaded Layer?

Postby Arne Scheffler » Fri Feb 08, 2019 2:15 pm

Hi Pit,
if you want to talk about HALion sound design, you are better set with the following forum:
https://www.steinberg.net/forums/viewforum.php?f=266.

This forum is about writing VST Plug-Ins.

Cheers,
Arne


Return to “VST 3 SDK”

Who is online

Users browsing this forum: No registered users and 1 guest