[Stk] help with stk fundamentals

vinayak@lightningcast.com vinayak@lightningcast.com
Thu, 20 Mar 2003 17:53:56 -0500


This is a multi-part message in MIME format.

------_=_NextPart_001_01C2EF33.96A48738
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi all..

I am a newbie to stk and digital signal processing, though otherwise an =
experienced software engineer.

I succeeded in creating an application using stk. The application is =
intended for music students (like me). Thanks a ton to stk for making =
the audio generation part so simple. But I am facing a few problems and =
need some help.

1. Whats the role of the sinewave.raw file ? what information does it =
contain and why does my stk based app need that file ?

2. My application uses the Flute class. Here are some specific problems =
I am facing.
	a. When I tri to play N notes one after the other in a sequence, the =
last note keeps playing forever. I was able to solve this by putting a =
wvout->stop() after playing each note but this makes the shift between =
notes abrupt. Why this problem and whats the right solution?
	b. Some low frequencies ( 130 > f < 440hz) dont play well, there is =
noticeable distortion. Higher frequencies play better. Again, why this =
problem and what is the best solution. I have set the minimum playable =
freq on the flute to much lower (40).
	c. I am trying to produce the sounds of a "North Indian Flute", also =
called a "Bansuri". Is there any way I can add this sound to stk ? Or, =
is there any way to modify the sound of the Flute in the stk so that it =
sounds smoother ?=20

3. What is the right way to produce notes using the Flute class ? I am =
currently using the wvout->tick(flute->tick()) method. But then whats is =
the use of the StartBlowing and StopBlowing methods ? They dont seem to =
be having any impact at all. Right now I need to first do a noteon, then =
the tick() in a loop and then noteoff followed by wvout->stop for each =
note. Is this the best approach ? Any suggestions, comments ?
=20
Thanks to the evangelists in advance :-)

Best Regards,
-Vinayak
"Nearly all men can stand adversity, but if you want to test a man's =
character,=20
give him power."=20
-Abraham Lincoln



------_=_NextPart_001_01C2EF33.96A48738
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
6.0.5770.91">
<TITLE>help with stk fundamentals</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->

<P><FONT SIZE=3D2 FACE=3D"Arial">Hi all..</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">I am a newbie to stk and digital signal =
processing, though otherwise an experienced software engineer.</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">I succeeded in creating an application =
using stk. The application is intended for music students (like me). =
Thanks a ton to stk for making the audio generation part so simple. But =
I am facing a few problems and need some help.</FONT></P>

<P><FONT SIZE=3D2 FACE=3D"Arial">1. Whats the role of the sinewave.raw =
file ? what information does it contain and why does my stk based app =
need that file ?</FONT></P>

<P><FONT SIZE=3D2 FACE=3D"Arial">2. My application uses the Flute class. =
Here are some specific problems I am facing.</FONT>

<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2 =
FACE=3D"Arial">a. When I tri to play N notes one after the other in a =
sequence, the last note keeps playing forever. I was able to solve this =
by putting a wvout-&gt;stop() after playing each note but this makes the =
shift between notes abrupt. Why this problem and whats the right =
solution?</FONT></P>

<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2 =
FACE=3D"Arial">b. Some low frequencies ( 130 &gt; f &lt; 440hz) dont =
play well, there is noticeable distortion. Higher frequencies play =
better. Again, why this problem and what is the best solution. I have =
set the minimum playable freq on the flute to much lower =
(40).</FONT></P>

<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2 =
FACE=3D"Arial">c. I am trying to produce the sounds of a &quot;North =
Indian Flute&quot;, also called a &quot;Bansuri&quot;. Is there any way =
I can add this sound to stk ? Or, is there any way to modify the sound =
of the Flute in the stk so that it sounds smoother ? </FONT></P>

<P><FONT SIZE=3D2 FACE=3D"Arial">3. What is the right way to produce =
notes using the Flute class ? I am currently using the =
wvout-&gt;tick(flute-&gt;tick()) method. But then whats is the use of =
the StartBlowing and StopBlowing methods ? They dont seem to be having =
any impact at all. Right now I need to first do a noteon, then the =
tick() in a loop and then noteoff followed by wvout-&gt;stop for each =
note. Is this the best approach ? Any suggestions, comments ?</FONT></P>

<P><FONT SIZE=3D2 FACE=3D"Arial">&nbsp;</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">Thanks to the evangelists in advance =
:-)</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">Best Regards,</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">-Vinayak</FONT>

<BR><FONT COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Verdana">&quot;Nearly all =
men can stand adversity, but if you want to test a man's character, =
</FONT>

<BR><FONT COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Verdana">give him =
power.&quot;</FONT><FONT COLOR=3D"#0000FF" FACE=3D"Times New Roman"> =
</FONT>

<BR><FONT FACE=3D"Times New Roman">-<B></B></FONT><B><FONT =
COLOR=3D"#FF0000" FACE=3D"Times New Roman">Abraham Lincoln</FONT></B>
</P>
<BR>

</BODY>
</HTML>
------_=_NextPart_001_01C2EF33.96A48738--