help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Trouble getting YIN to run under octave


From: John Kelleher
Subject: Trouble getting YIN to run under octave
Date: Tue, 12 Dec 2006 06:24:05 -0800 (PST)

Trouble getting YIN to run under octave.

YIN is a matlab-compatible algorithm to detect the fundamental
frequency (roughly, the perceived pitch) of a sound. I am unable to run
it and am wondering if you would have a look.

I am a complete octave beginner.

I configured octave-2.1.73 under kernel 2.4.33.3, gcc 3.4.6 like this:
./configure --prefix=/usr --enable-shared --enable-dl

'make check' was successful, as was installation.

I obtained the required files to run yin from:

http://www.ircam.fr/pcm/cheveign/sw/yin.zip
http://www.ircam.fr/pcm/cheveign/sw/sf.zip

I unzipped, then copied the directories 'yin' and 'sf' to
/usr/share/octave/site/m/, where octave detected them successfully.

To test yin, I ran:

octave:1> yin('/usr/share/octave/site/m/yin/clarinet.au')

and get the following output, which is indecipherable to me:

========
error: structure has no member `format'
error: evaluating argument list element number 1
error: evaluating binary operator `|' near line 32, column 26
error: if: error evaluating conditional expression
error: evaluating if command near line 32, column 1
error: called from `sf_info' in file
`/usr/share/octave/site/m/sf/sf_info.m'
error: evaluating assignment expression near line 26, column 3
error: evaluating if command near line 24, column 1
error: called from `sf_info' in file
`/usr/share/octave/site/m/sf/sf_info.m'
error: evaluating assignment expression near line 79, column 9
error: called from `yin' in file `/usr/share/octave/site/m/yin/yin.m'
========

I get the same output if I start octave with 'octave --traditional'

One more thing. 'INSTALL' in the yin directory contains this
information. I don't know what it means, but here it is fyi:

========
Yin uses mex files for its private routines.  Precompiled mex files are
for several platforms.  If there aren't any for yours, you must compile

them yourself.  Go to 
        yin/private/src 
In matlab, for each filename.c, type 
        mex filename.c
then move the mex files produced to 
        /yin/private/
========

Thank you,

John Kelleher


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]