aubio
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Error in pitchschmitt.c
- To: <aubio@piem.org>
- Subject: Error in pitchschmitt.c
- From: "Paul Dean" <PaulD@4stlaw.com>
- Date: Tue, 18 Mar 2008 08:44:40 -0700
- Authentication-results: mx.cbeyond.com; dkim=neutral (message not signed) header.i=none
- Thread-index: AciJDvpZa64DbO7VS563y37alM9hOw==
- Thread-topic: Error in pitchschmitt.c
I’m working on getting
AUBIO to compile on my VS2005 compiler. I run into an error I have a question
about. In the aubio_pitchschmitt_detect()
function, an array is declared with an un-initiated size because we don’t
know what size input->length is. Does input->length’s
value change during run-time or is it static? If it’s dynamic, we may
have to use a vector here. ***** pitchschmitt.c ****** . . . smpl_t
aubio_pitchschmitt_detect (aubio_pitchschmitt_t *p, fvec_t * input) { short
buf[input->length]; ß--
Compiler Error: cannot allocate an array of unknown size. uint_t i; for (i=0;
i<input->length; i++) { buf[i] =
(short)(input->data[0][i]*32768.); } return
aubio_schmittS16LE(p, input->length, buf); } . . . Also.. in onsetdetection.c in the aubio_onsetdetection_kl()
function, this line give me a warning I’m not sure what to do with. ******* onsetdetection.c ********* . . . if
(isnan(onset->data[i][0])) onset->data[i][0] = 0.; ß--
Comiler Warning: 'isnan' undefined; assuming
extern returning int. . . .
-aquawicket P.S. I was able to get AUBIO to comple in VS2005
with the aubio_pitchschmitt_detect() function commented out. I’m using test-onsetdetection.c
to create the executable. I’ll test it’s functionality to see that
everything works. Then I’ll post a
VS2005 Project along with a CMAKE script soon J |
- Follow-Ups:
- Re: Error in pitchschmitt.c
- From: Paul Brossier <piem@piem.org>
- Re: Error in pitchschmitt.c
- Prev by Date: Aubio in Visual Studio 2005
- Next by Date: Audio mailinglist still up?
- Previous by thread: Re: Aubio in Visual Studio 2005
- Next by thread: Re: Error in pitchschmitt.c
- Index(es):