On Mon, 22 Feb 2010, Owen Williams wrote:

> Hey, thanks for the advice.  I am not planning on forking the code,
> definitely.
> 
> In updating the code, there are a couple of API changes that I need to
> fix.  The first is a function that has disappeared: timecoder_get_alive.
> What happened to this function, and is there a new equivalent API I
> should use?  Also, the timecoder_get_pitch function used to return a
> success variable, and now it doesn't.   

The timecoder no longer makes the distinction between 'alive' or not, 
preferring to smoothly make the transition from pitch 0.0 to movement, 
rather than a jump from off to on. Crucially the pitch filtering has moved 
into the timecoder itself which allows this, and means the filtering is on 
a per-sample basis (and not a per-pitch-reading basis, which was 
incorrect).

So the resulting API is simpler; there's less work for the caller to do.

> With these two functions, mixxx is able to figure out if a) xwax has no
> data whatsoever (stopped record, etc) b) valid pitch, but not valid
> timecode, and c) both valid pitch and timecode.  What's the best way to
> get this information with 0.6?

timecoder_get_position() will tell you if the absolute position 
information is available at the current time.

As for pitch, there is always a speed measured from the audio input, even 
if it's zero. So if you really want to make the distinction between 
'going' or 'not' then you'd need to threshold it. I'd recommend this only 
for an icon or visual display, but not for audio playback itself. xwax 
doesn't make this distinction at all (but early versions did).
 
> thanks,
> Owen
> 

-- 
Mark

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Mixxx-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mixxx-devel

Reply via email to