Hello Everyone!

I am in dire need for help with my delay audio unit. The audio unit uses a 
custom view and started out as just a simple digital delay that I continued to 
build on. It started with just a Delay slider, but then I added a Feedback 
slider and Wet/Dry Mix slider. I wanted to continue to build on it so I added a 
“Beat Mapping” popup menu that reads the BPM from the host unit and determines 
the delay time in milliseconds that corresponds to a one-eigth not delay. The 
menu entries are “On” and “Off” for the Beat Mapping pop up menu. When “Beat 
Mapping” is turned “On” I use SetParameter in my .cpp file for the audio unit 
to set the delay to the appropriate delay time. Unfortunately this updates the 
delay value for the audio unit but it does not update the custom view Delay 
slider, which makes sense because it is not in the UI View .cpp source code, 
but in my main (not UI) source code instead. 

I have tried using AUParameterSet in my .cpp file but this isn’t working. I 
have tried manipulating my notifications in my UIView source code so that 
changing the “Beat Mapping” menu popup button causes the Delay slider to 
update, but this seems to not be working either because when the Beat Mapping 
menu is updated, it reads the old delay time, then calculates the new delay 
time for a 1/8th note delay after the fact. Please help. I am stuck and after 
much research all that I could find was this old link: 
http://lists.apple.com/archives/coreaudio-api/2007/Sep/msg00103.html . What 
stood out to me was when they said the code below works:

AudioUnitParameter changedParam;
    changedParam.mAudioUnit = FindMatch(this);
    changedParam.mParameterID = paramID;
    changedParam.mScope= kAudioUnitScope_Global;
    changedParam.mElement = 0;
    AUParameterSet(NULL, NULL, &changedParam, value, 0);

I am not sure if this code is for the .cpp code for the audio unit or for the 
UI View .cpp code. Either way I tried it and I was unsuccessful.

-Sincerely,
Daniel
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list      (Coreaudio-api@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/coreaudio-api/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to