[Stk] help with stk fundamentals

vinayak at lightningcast.com vinayak at lightningcast.com
Thu Mar 20 14:53:56 PST 2003


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 ? 

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 ?
 
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, 
give him power." 
-Abraham Lincoln


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://cm-mail.stanford.edu/pipermail/stk/attachments/20030320/100ef568/attachment.html>


More information about the Stk mailing list