

Hi,
I'm having a small problem using the preset helper with ASPiK 1.6.5 and VS 2017.
Basically I've followed these instructions http://aspikplugins.com/sdkdoc.....ner10.html,
to set up a Write_Preset_File text button and everything seemed to work as expected.
But unfortunately every control value is being written in as the integer 0 regardless of the actual value, and regardless of the defined parameter range.
Â
I was checking line 593 from plugingui.cpp;
double value = guiPluginConnector->getActualPluginParameter(piParam->getControlID());
and suspect it isn't quite doing it's job but I may be completely off the mark there.
Cheers,
James
Hi Jim
EDIT: OK I think I realized your issue, with integers only. The string-list parameters are also encoded as integer selectors. I will check and get back (again). I need to make sure string list works the same way. Standby...
— these have no ints or string lists...
I just checked with the plugin I'm currently working on and the preset file looks good; here are a few lines:
PresetInfo* Preset_X = new PresetInfo(index++, "Preset_X");
initPresetParameters(Preset_X->presetParameters);
setPresetParameter(Preset_X->presetParameters, 0, 0); // --- Input Gain
setPresetParameter(Preset_X->presetParameters, 11, 0); // --- Threshold
setPresetParameter(Preset_X->presetParameters, 10, 19.335); // --- Ratio
etc...
Is there something else going on that I am missing? I just setup a button with the WRITE_PRESET_FILE as the control ID value.
LMK,
Will
Hey Will, thanks I have no idea then.
Here's the complete output I'm getting on a fresh build of the new StereoDelayerPresets project. Only 0's output.
int index = 0; /*** declare this once at the top of the presets function, comment out otherwise */
// --- Plugin Preset: Preset_X
PresetInfo* Preset_X = new PresetInfo(index++, "Preset_X");
initPresetParameters(Preset_X->presetParameters);
setPresetParameter(Preset_X->presetParameters, 0, 0); // --- Delay
setPresetParameter(Preset_X->presetParameters, 1, 0); // --- Feedback
setPresetParameter(Preset_X->presetParameters, 2, 0); // --- Ratio
setPresetParameter(Preset_X->presetParameters, 3, 0); // --- Algorithm
setPresetParameter(Preset_X->presetParameters, 4, 0); // --- Wet Level
setPresetParameter(Preset_X->presetParameters, 5, 0); // --- Dry Level
setPresetParameter(Preset_X->presetParameters, 9, 0); // --- Preset
setPresetParameter(Preset_X->presetParameters, 8, 0); // --- Dirty
setPresetParameter(Preset_X->presetParameters, 131077, 0); // --- Scale GUI
addPreset(Preset_X);
edit: I'm using Windows 7, maybe it has to do with that? I wonder if anyone else can reproduce this error or lack thereof?
Most Users Ever Online: 152
Currently Online:
7 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Chaes: 56
Skyler: 48
StevieD: 46
Derek: 46
Frodson: 45
Peter: 43
TheSmile: 43
Nickolai: 43
clau_ste: 39
jeanlecode: 37
Member Stats:
Guest Posters: 1
Members: 768
Moderators: 1
Admins: 6
Forum Stats:
Groups: 13
Forums: 42
Topics: 842
Posts: 3347
Moderators: W Pirkle: 689