|
11-29-2017, 07:50 AM
|
#1
|
Human being with feelings
Join Date: Aug 2013
Posts: 236
|
MakePreset incompatibility with AU version
There are known incompatibilities or bugs for Audio Unit on MakePreset() ?
All other version like VST for mac and for windows works very well. But for Audio Unit crash the Reaper. This depends on the text in the title (char* name), some of the problem appears, others do not.
|
|
|
11-29-2017, 02:39 PM
|
#2
|
Human being with feelings
Join Date: Nov 2016
Posts: 341
|
Which framework are you using and is it the latest version? I've successfully used MakePresetFromNamedParams with AU and WDL-YOULEAN. It works in both Logic and Reaper.
I've just tested it and presets change ok, maybe a bit slowly on Reaper though. It also messes up my display a bit, but that's a random little bug of my own that I thought I'd fixed!
|
|
|
11-29-2017, 02:39 PM
|
#3
|
Human being with feelings
Join Date: Nov 2016
Posts: 341
|
Oh, and what text seems to be causing the trouble?
|
|
|
11-30-2017, 02:47 AM
|
#4
|
Human being with feelings
Join Date: Aug 2013
Posts: 236
|
Tale version I use.
Until now I could not find out what text is causing the problem.
|
|
|
11-30-2017, 06:48 AM
|
#5
|
Human being with feelings
Join Date: Jul 2008
Location: The Netherlands
Posts: 3,646
|
I use MakeDefaultPreset(name) in Scanner Vibrato, and I used to also use MakePresetFromNamedParams() and MakePresetFromChunk() in Combo Model V/F, and these seemed to work fine in both VST and AU.
I do seem to recall that for strict compatibility, the preset names can't be longer than 23 chars, but I think that is VST 2.4 rather than AU. Most modern hosts seem to gladly accept longer names though. Do note that IPlug itself also has a limit, but this is 255 chars by default (see MAX_PRESET_NAME_LEN in IPlugStructs.h).
|
|
|
12-02-2017, 04:44 AM
|
#6
|
Human being with feelings
Join Date: Aug 2013
Posts: 236
|
I have maximum of 23 characters but the problem persists.
So, with this presets AU works fine:
Code:
MakeDefaultPreset((char *) "---- default ----");
MakePreset("Higher frequencies", 400, 4., 0, 0, 0, 1000, 90);
MakePreset("Monaural beats", 200, 4., 0, 1, 0, 1000, 90);
MakePreset("Slow Freq Changing", 200, 4., 0, 0, 0, 4000, 90);
MakePreset("Binaural - 0.9", 200, 0.9, 0, 0, 0, 1000, 90);
MakePreset("Binaural - 2.2", 200, 2.2, 0, 0, 0, 1000, 90);
MakePreset("Binaural - 4.0", 200, 4.0, 0, 0, 0, 1000, 90);
MakePreset("Binaural - 4.9", 200, 4.9, 0, 0, 0, 1000, 90);
MakePreset("Binaural - 6.0", 200, 6.0, 0, 0, 0, 1000, 90);
MakePreset("Binaural - 33.0", 200, 33.0, 0, 0, 0, 1000, 90);
But with this, do not:
Code:
MakeDefaultPreset((char *) "---- default ----");
MakePreset("Higher frequencies", 400, 4., 0, 0, 0, 1000, 90);
MakePreset("Monaural beats", 200, 4., 0, 1, 0, 1000, 90);
MakePreset("Slow Freq Changing", 200, 4., 0, 0, 0, 4000, 90);
MakePreset("Binaural - 0.9", 200, 0.9, 0, 0, 0, 1000, 90);
MakePreset("Binaural - 2.2", 200, 2.2, 0, 0, 0, 1000, 90);
MakePreset("Binaural - 4.0", 200, 4.0, 0, 0, 0, 1000, 90);
MakePreset("Binaural - 4.9", 200, 4.9, 0, 0, 0, 1000, 90);
MakePreset("Binaural - 6.0", 200, 6.0, 0, 0, 0, 1000, 90);
MakePreset("Binaural - 33.0", 200, 33.0, 0, 0, 0, 1000, 90);
MakePreset("Solfeggio UT – 396 Hz", 396, 0., 0, 0, 0, 1000, 90);
MakePreset("Solfeggio RE – 417 Hz", 417, 0., 0, 0, 0, 1000, 90);
MakePreset("Solfeggio MI – 528 Hz", 528, 0., 0, 0, 0, 1000, 90);
MakePreset("Solfeggio FA – 639 Hz", 639, 0., 0, 0, 0, 1000, 90);
MakePreset("Solfeggio SOL – 741 Hz", 741, 0., 0, 0, 0, 1000, 90);
MakePreset("Solfeggio LA – 852 Hz", 852, 0., 0, 0, 0, 1000, 90);
MakePreset("Solfeggio SI – 963 Hz", 963, 0., 0, 0, 0, 1000, 90);
kNumPrograms = 20;
|
|
|
12-02-2017, 12:52 PM
|
#7
|
Human being with feelings
Join Date: Jul 2008
Location: The Netherlands
Posts: 3,646
|
The first thing that comes to mind it that there is some va_list type mistmatch i.e. are you sure your parameters are:
Code:
MakePreset(..., (int), (double), (int), (int), (int), (int), (int))
|
|
|
12-03-2017, 11:53 AM
|
#8
|
Human being with feelings
Join Date: Aug 2013
Posts: 236
|
Quote:
Originally Posted by Tale
The first thing that comes to mind it that there is some va_list type mistmatch i.e. are you sure your parameters are:
Code:
MakePreset(..., (int), (double), (int), (int), (int), (int), (int))
|
Yes, all parameters are InitInt() or paramList() except the second parameter which is InitDouble()
|
|
|
12-04-2017, 12:04 AM
|
#9
|
Human being with feelings
Join Date: Jul 2008
Location: The Netherlands
Posts: 3,646
|
OK, got it! The '-' in "Binaural - 0.9" is 0x2D, but the char in "Solfeggio UT – 396 Hz" is 0x96. I guess AU doesn't like this, or maybe it gets incorrectly converted to UTF-8 or something. Anyway, replacing 0x96 with '-' should fix this.
|
|
|
12-04-2017, 03:59 AM
|
#10
|
Human being with feelings
Join Date: Aug 2013
Posts: 236
|
Quote:
Originally Posted by Tale
OK, got it! The '-' in "Binaural - 0.9" is 0x2D, but the char in "Solfeggio UT – 396 Hz" is 0x96. I guess AU doesn't like this, or maybe it gets incorrectly converted to UTF-8 or something. Anyway, replacing 0x96 with '-' should fix this.
|
YES Tale, this was the problem. Wrong conversion to UTF-8 Thanks a lot !!!
|
|
|
09-15-2018, 11:11 AM
|
#11
|
Human being with feelings
Join Date: Dec 2015
Posts: 331
|
Tagging onto this old thread with a different twist...
I added MakePreset() presets to my code (yes, set kNumPrograms accordingly), after already having the default ("-") preset from the examples. The new presets didn't show up in Digital Performer, only the default. I stepped through code—it looked good. Then I changed the name of the default preset to "- test -" as a sanity check. The list in DP was still "-" solely. But if I selected it, the current menu setting would appear as "- test -" (pulling the menu down still showed "-", though). So, I figured the menu was getting cached by DP. I pulled up my plugin in Reaper, and there are all my presets, working fine.
Anyone see this before? I guess just caching specific to DP, but I can't even find a pref file to blow away (I used to know what to trash in DP, but things have changed I guess).
|
|
|
09-16-2018, 01:30 AM
|
#12
|
Human being with feelings
Join Date: Jul 2008
Location: The Netherlands
Posts: 3,646
|
I haven't seen this before, but I have not looked for it either.
I assume you are talking about the AU version? Because in the VST version the presets are part of the plug-in state, so there is no way for DP to cache it.
|
|
|
09-20-2018, 05:35 PM
|
#13
|
Human being with feelings
Join Date: Dec 2015
Posts: 331
|
Quote:
Originally Posted by Tale
I haven't seen this before, but I have not looked for it either.
I assume you are talking about the AU version? Because in the VST version the presets are part of the plug-in state, so there is no way for DP to cache it.
|
Yes (didn't specify because the thread says "AU"). I'm not going to worry about this a whole lot, I assume for users (new installation) it will work as expected.
|
|
|
Thread Tools |
|
Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -7. The time now is 12:00 AM.
|