Re: How to make Metronome?
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