• 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: Daniel Jalkut <email@hidden>
  • Date: Tue, 5 Sep 2006 11:18:42 -0400

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


  • Follow-Ups:
    • Re: How to make Metronome?
      • From: "I. Savant" <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>)

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