Thread: IPlug - Youlean
View Single Post
Old 02-20-2018, 03:23 PM   #332
Bobflip
Human being with feelings
 
Join Date: Nov 2016
Posts: 341
Default

Ok, seems like presets are currently broken, unless I'm missing something in how to implement them. I have taken a fresh IPlugEffect, and added the following lines:

Code:
#define kNumPrograms 3

  MakePreset("pre1", kGain, 1.0);
  MakePreset("pre2", kGain, 55.0);
  MakePreset("pre3", kGain, 80.0);
  
  
//  MakePresetFromNamedParams("pre1", 1,
//                            kGain, 1.0
//                            );
//  
//  MakePresetFromNamedParams("pre2", 1,
//                            kGain, 55.0
//                            );
//  
//  MakePresetFromNamedParams("pre3", 1,
//                            kGain, 80.0
//                            );
//
Tried it with both the MakePreset calls and the MakePresetFromNamedParams calls, and both will show the presets in the host preset list (tested with AU in Logic and VST2 in Ableton), but I can't select any presets other than the first, and the Gain control isn't updated.
Bobflip is offline   Reply With Quote