Avatar

Please consider registering
guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed Topic RSS sp_TopicIcon
preset helper
Avatar
jim
Member
Members
July 15, 2020 - 11:28 am
Member Since: January 1, 2020
Forum Posts: 27
sp_UserOfflineSmall Offline

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

Avatar
W Pirkle
Admin
July 15, 2020 - 5:40 pm
Member Since: January 29, 2017
Forum Posts: 470
sp_UserOfflineSmall Offline

Hi James

Thanks for reporting this - I will check and let you know. You have all the code, so if I find a fix you can patch it pretty easily. I had put that in place after dealing with some huge plugins with 50+ parameters.

Will 

Avatar
jim
Member
Members
July 16, 2020 - 12:29 pm
Member Since: January 1, 2020
Forum Posts: 27
sp_UserOfflineSmall Offline

Great thanks Will. I've somehow got above 30 parameters just an oscilloscope I'm working on.

Not only a huge time saving functionality but I wouldn't be able to set quality internal presets without knowing how the values were changing the result in real time.

Cheers,

James

Avatar
W Pirkle
Admin
July 17, 2020 - 2:37 pm
Member Since: January 29, 2017
Forum Posts: 470
sp_UserOfflineSmall Offline

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

Avatar
jim
Member
Members
July 18, 2020 - 2:11 am
Member Since: January 1, 2020
Forum Posts: 27
sp_UserOfflineSmall Offline

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?

Avatar
jim
Member
Members
July 19, 2020 - 1:08 pm
Member Since: January 1, 2020
Forum Posts: 27
sp_UserOfflineSmall Offline

Actually if no-one else also has this issue then i'm not too stressed about a solve for this case.

I worked out a satisfactory method to output parameters using std::ofstream from within plugincore.

Cheers,

James

Forum Timezone: America/New_York

Most Users Ever Online: 152

Currently Online:
3 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Skyler: 48

Derek: 46

Frodson: 45

Peter: 43

TheSmile: 43

clau_ste: 39

Chaes: 37

JimmyM: 33

Gwen: 32

jim: 27

Member Stats:

Guest Posters: 1

Members: 649

Moderators: 1

Admins: 4

Forum Stats:

Groups: 13

Forums: 40

Topics: 696

Posts: 2675

Newest Members:

Alex, oneday, Phelan Kane, audiocoder, agel, Makai, Abyz, Nonlinear, IgorVish, Arjuna

Moderators: W Pirkle: 470

Administrators: Tom: 74, JD Young: 80, Will Pirkle: 0, W Pirkle: 470