Hi,
I have spent the day exploring some of the classes in the System Sound library. There is an example of a Bach Fugue (I think I've actually played a piano version at one time.) which I had trouble getting to play cleanly on by NT box at home. I know the sound card is OK because Encore among other things works.
Problem #1.
In order to get rid of a rather abundant reverb, it seemed just resetting the reverb to false in the initialization file did not turn it off so I used this. I do not know why it works like this.
SoundPlayer startUp. SoundPlayer stopReverb. PluckedSound bachFugue play.
Problem #2
After getting rid of the reverb. The piece would start off OK then when the 3rd and 4th voices "kicked in" it seemed to become "out of synch". I remarked out those two voices and got the entire piece to play cleanly "minus the 2 voices".
I have tried resetting BufferMsecs to see what would happen but it did not correct the problem.
It seems like I had a similar problem with a sequencer I had to use one time on stage. The sequencer belonged to another musician so I never figured out the problem.
Any ideas.
Thanks in advance.
Cindy Nelson **************************************************************************** ******************************* Cynthia L. Nelson Phone: (770) 382-8627 202 Jimmie Nelson Rd SW Fax (770) 382-8630 Kington, GA 30145 e-mail: cindynelson@abraxis.com
Re: Problem #1.
In order to get rid of a rather abundant reverb, it seemed just resetting the reverb to false in the initialization file did not turn it off so I used this. I do not know why it works like this.
SoundPlayer startUp. SoundPlayer stopReverb. PluckedSound bachFugue play.
You're right, that's what you have to do right now. I'll look into this.
Problem #2
After getting rid of the reverb. The piece would start off OK then when the 3rd and 4th voices "kicked in" it seemed to become "out of synch". I remarked out those two voices and got the entire piece to play cleanly "minus the 2 voices".
I have tried resetting BufferMsecs to see what would happen but it did not correct the problem.
What you're hearing is skipping because Squeak isn't able to fill the sound output buffer in time. On Win95, setting the sampling rate to 11250 in SoundPlayer>initialize yields smooth sound output, at least on a P133. Another possible problem may be that your CPU is not fast enough to support 4 voices. What kind of CPU do you have, and what's its clock speed? Does it have an L2 cache?
The sound interface code in the Win32 Squeak VM ignores the BufferMsecs setting, so it won't help to experiment with that.
-- John
The sound interface code in the Win32 Squeak VM ignores the BufferMsecs setting, so it won't help to experiment with that.
It's easy enough to fix but if I remember correctly there has been a problem in the playLoop when doing so. I'll review this once the 2.0 beta is out.
Andreas
squeak-dev@lists.squeakfoundation.org