[Stk] wave playback error

Conor J Curran conor at forwind.net
Mon Apr 11 01:02:14 PDT 2005


cheers Ge,

 i'll check that later. I went on last night and got most of the other tutorials to work so it must be something small. 

 Two questions:

 I have done a little root around but did not find anything but just in case anybody knows off the top of their heads...
 Are there any real time pitch analysis classes or solutions available for STK?
 How about real time envelope/dynamics analysis?

 Conor 

www.forwind.net 

----------------------------------------
From: Ge Wang <gewang at CS.Princeton.EDU>
Sent: 10 April 2005 22:13
To: Conor J Curran <conor at forwind.net>
Subject: Re: [Stk] wave playback error 

Hi Conor,

Did you enable the __LITTLE_ENDIAN__ flag when compiling the lib? If you 
also compiled any STK files as part of your sineosc project, you will also 
need to set the flag for the sineosc project as well. Without this 
flag, file I/O operations may assume big endian byte ordering, which 
can make the header appear corrupt. This may or may not solve the 
problem, it is good starting point to track down the problem.

Best,
Ge!

On Sat, 9 Apr 2005, Conor J Curran wrote:

> Hi,
> I cannot play back the resultant wav file from the sineOsc.cpp in the 
> tutorial online.
> I am using sinewave.raw.
> Initially I had some difficulty building but finally got my project to 
> build....Compiled the stk library into a lib separately and linked against 
> it in my sineosc project....
> compiles and runs without any warnings
> the resultant hellosine.wav is dumped out with out a problem.
> When i try and play the wav in any player it tells the file is corrupted.
> Any ideas as to what the problem might be? My wave players work fine.
>
> br,
> Conor
>
>
>
> _______________________________________________
> Stk mailing list
> Stk at ccrma.stanford.edu
> http://ccrma-mail.stanford.edu/mailman/listinfo/stk
>


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://cm-mail.stanford.edu/pipermail/stk/attachments/20050411/37a88e05/attachment.html>


More information about the Stk mailing list