• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Cocoa and PortAudio!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Cocoa and PortAudio! (From: email@hidden)

  • Prev by Date: ___gxx_personality_v0 undefined
  • Next by Date: Re: Declarations near usage
  • Previous by thread: Cocoa and PortAudio!
  • Next by thread: Re: Cocoa and PortAudio!
  • Index(es):
    • Date
    • Thread