• 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: How to make Metronome?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to make Metronome?


  • Subject: Re: How to make Metronome?
  • From: "I. Savant" <email@hidden>
  • Date: Tue, 5 Sep 2006 11:34:15 -0400


Ah - I stand corrected, Daniel. I remember a few years ago trying to do something similar with NSSound and running into some limitation. I thought this was it. Now I have to reevaluate my decision from so long ago. :-)


  I've used NSMovie, et al. since then for better control.

--
I.S.


On Sep 5, 2006, at 11:18 AM, Daniel Jalkut wrote:

On Sep 3, 2006, at 9:16 AM, I. Savant wrote:
The problem with NSSound is that there's no "stop" so that a sound lasting more than half a second won't be "doubled" if there's a less-than-half-second gap between plays.

http://developer.apple.com/documentation/Cocoa/Reference/ ApplicationKit/Classes/NSSound_Class/Reference/Reference.html#// apple_ref/occ/instm/NSSound/stop


I'm not sure if I misunderstood your objection, but there is a stop method on NSSound, and it basically works. The granularity of both start and stop through NSSound is probably not as fine as directly playing with CoreAudio, but if you just wanted to, for example, play 3 seconds of a 5 minute song, you can do this with NSSound.

FlexTime (http://www.red-sweater.com/flextime/) is capable of starting and stopping sounds rather rhythmically like a metronome, and uses NSSound.

Daniel


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >How to make Metronome? (From: Matt <email@hidden>)
 >Re: How to make Metronome? (From: "I. Savant" <email@hidden>)
 >Re: How to make Metronome? (From: AgentM <email@hidden>)
 >Re: How to make Metronome? (From: "I. Savant" <email@hidden>)
 >Re: How to make Metronome? (From: John Pannell <email@hidden>)
 >Re: How to make Metronome? (From: "I. Savant" <email@hidden>)
 >Re: How to make Metronome? (From: Daniel Jalkut <email@hidden>)

  • Prev by Date: Re: PyObjC
  • Next by Date: Re: NSSlider unusual behavior
  • Previous by thread: Re: How to make Metronome?
  • Next by thread: Re: Re: How to make Metronome?
  • Index(es):
    • Date
    • Thread