Re: Cocoa and PortAudio!
Re: Cocoa and PortAudio!
- Subject: Re: Cocoa and PortAudio!
- From: Cameron Hayne <email@hidden>
- Date: Thu, 17 Oct 2002 00:07:21 -0400
On 16/10/02 4:01 pm, "email@hidden" <email@hidden> wrote:
>
Now, if I wanted to alter the pitch I figured that the only thing I had
>
to do was to multiply 0.01f (in data->left_phase += 0.01f) with a float
>
of some kind. My excellent idea was to modify the nib-fil to add an
>
NSSlider called pitchSlide and then do the following method-call:
>
data -> left_phase += [pitchSlide floatValue] * 0.01f;
>
The compiler hates me though. It complains about the function
>
pitchSlide not beeing defined and so on.
Where is the above statement located? When does it get executed? Is the
pitchSlide "outlet" hooked up in Interface Builder?
Usually you would have an action method for the slider and in that method,
you would get the current (newly-changed) value and do whatever you wanted
with it. For example:
- (IBAction)sliderAction:(id)sender
{
[model setParameter:[sender floatValue]];
}
--
Cameron Hayne (email@hidden)
Hayne of Tintagel
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.