[Stk] wave playback error

Conor J Curran conor@forwind.net
Mon, 11 Apr 2005 01:02:14 -0700


This is a multi-part message in MIME format.

------_SmarterMail_NextPart_1636710448787034
Content-Type: text/plain;
	charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable

cheers Ge,=0D=0A=0D=0A 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. =0D=0A=
=0D=0A Two questions:=0D=0A=0D=0A I have done a little root around but did =
not find anything but just in case anybody knows off the top of their heads=
...=0D=0A Are there any real time pitch analysis classes or solutions avail=
able for STK?=0D=0A How about real time envelope/dynamics analysis?=0D=0A=
=0D=0A Conor =0D=0A=0D=0Awww.forwind.net =0D=0A=0D=0A----------------------=
------------------=0D=0AFrom: Ge Wang <gewang@CS.Princeton.EDU>=0D=0ASent: =
10 April 2005 22:13=0D=0ATo: Conor J Curran <conor@forwind.net>=0D=0ASubjec=
t: Re: [Stk] wave playback error =0D=0A=0D=0AHi Conor,=0D=0A=0D=0ADid you e=
nable the __LITTLE_ENDIAN__ flag when compiling the lib? If you =0D=0Aalso =
compiled any STK files as part of your sineosc project, you will also =0D=
=0Aneed to set the flag for the sineosc project as well. Without this =0D=
=0Aflag, file I/O operations may assume big endian byte ordering, which =0D=
=0Acan make the header appear corrupt. This may or may not solve the =0D=0A=
problem, it is good starting point to track down the problem.=0D=0A=0D=0ABe=
st,=0D=0AGe!=0D=0A=0D=0AOn Sat, 9 Apr 2005, Conor J Curran wrote:=0D=0A=0D=
=0A> Hi,=0D=0A> I cannot play back the resultant wav file from the sineOsc.=
cpp in the =0D=0A> tutorial online.=0D=0A> I am using sinewave.raw.=0D=0A> =
Initially I had some difficulty building but finally got my project to =0D=
=0A> build....Compiled the stk library into a lib separately and linked aga=
inst =0D=0A> it in my sineosc project....=0D=0A> compiles and runs without =
any warnings=0D=0A> the resultant hellosine.wav is dumped out with out a pr=
oblem.=0D=0A> When i try and play the wav in any player it tells the file i=
s corrupted.=0D=0A> Any ideas as to what the problem might be? My wave play=
ers work fine.=0D=0A>=0D=0A> br,=0D=0A> Conor=0D=0A>=0D=0A>=0D=0A>=0D=0A> _=
______________________________________________=0D=0A> Stk mailing list=0D=
=0A> Stk@ccrma.stanford.edu=0D=0A> http://ccrma-mail.stanford.edu/mailman/l=
istinfo/stk=0D=0A>=0D=0A=0D=0A

------_SmarterMail_NextPart_1636710448787034
Content-Type: text/html;
	charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable

<font face=3D"arial" size=3D"2">cheers Ge,<br /> <br /> i'll check that lat=
er. I went on last night and got most of the other tutorials to work so it =
must be something small. <br /> <br /> Two questions:<br /> <br /> I have d=
one a little root around but did not find anything but just in case anybody=
 knows off the top of their heads...<br /> Are there any real time pitch an=
alysis classes or solutions available for STK?<br /> How about real time en=
velope/dynamics analysis?<br /> <br /> Conor</font><br /> <font face=3D"ari=
al" size=3D"2"><br />www.forwind.net</font><br /><br /><font face=3D"Tahoma=
, Arial, Sans-Serif" size=3D"2"><hr align=3D"center" size=3D"2" width=3D"10=
0%" /><b>From</b>: Ge Wang &lt;gewang@CS.Princeton.EDU&gt;<br /><b>Sent</b>=
: 10 April 2005 22:13<br /><b>To</b>: Conor J Curran &lt;conor@forwind.net&=
gt;<br /><b>Subject</b>: Re: [Stk] wave playback error</font><br /><br />Hi=
 Conor,<br /><br />Did you enable the __LITTLE_ENDIAN__ flag when compiling=
 the lib? If you <br />also compiled any STK files as part of your sineosc =
project, you will also <br />need to set the flag for the sineosc project a=
s well. Without this <br />flag, file I/O operations may assume big endian =
byte ordering, which <br />can make the header appear corrupt. This may or =
may not solve the <br />problem, it is good starting point to track down th=
e problem.<br /><br />Best,<br />Ge!<br /><br />On Sat, 9 Apr 2005, Conor J=
 Curran wrote:<br /><br />&gt; Hi,<br />&gt; I cannot play back the resulta=
nt wav file from the sineOsc.cpp in the <br />&gt; tutorial online.<br />&g=
t; I am using sinewave.raw.<br />&gt; Initially I had some difficulty build=
ing but finally got my project to <br />&gt; build....Compiled the stk libr=
ary into a lib separately and linked against <br />&gt; it in my sineosc pr=
oject....<br />&gt; compiles and runs without any warnings<br />&gt; the re=
sultant hellosine.wav is dumped out with out a problem.<br />&gt; When i tr=
y and play the wav in any player it tells the file is corrupted.<br />&gt; =
Any ideas as to what the problem might be? My wave players work fine.<br />=
&gt;<br />&gt; br,<br />&gt; Conor<br />&gt;<br />&gt;<br />&gt;<br />&gt; =
_______________________________________________<br />&gt; Stk mailing list<=
br />&gt; Stk@ccrma.stanford.edu<br />&gt; http://ccrma-mail.stanford.edu/m=
ailman/listinfo/stk<br />&gt;<br /><br />

------_SmarterMail_NextPart_1636710448787034--