Skip to content

Saving/Loading presets of my VST #662

Closed Answered by dervur
dervur asked this question in Q&A
Discussion options

You must be logged in to vote

Ok, this is how I save them for other people coming here. I will post the one for the panel with only 10 values, but I used the same approach for another one that has 162 modulators.

First of all you need a function to get the panel data:

function getPanelData()
    local data = {}

    -- Populate the data table
    data[1] = panel:getModulatorByName("Pulse_Colour"):getValue()
    data[2] = panel:getModulatorByName("Pulse_Level"):getValue()
    data[3] = panel:getModulatorByName("Amp_Attack"):getValue()
    data[4] = panel:getModulatorByName("Amp_Decay"):getValue()
    data[5] = panel:getModulatorByName("Drive"):getValue()
    data[6] = panel:getModulatorByName("Tone"):getValue()
    dat…

Replies: 6 comments 8 replies

Comment options

You must be logged in to vote
3 replies
@dervur
Comment options

@damiensellier
Comment options

@dervur
Comment options

Comment options

You must be logged in to vote
1 reply
@dervur
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by dervur
Comment options

You must be logged in to vote
2 replies
@dnaldoog
Comment options

@dervur
Comment options

Comment options

You must be logged in to vote
1 reply
@dervur
Comment options

Comment options

You must be logged in to vote
1 reply
@dervur
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants