Quote Originally Posted by flotulopex View Post
Acetronics,

I'm not sure to understand your remark.

I tried this:
SOUND Speaker,[Vsnd(A),10]
and
SOUND Speaker,[Vsnd.0(A),10]
and
SOUND Speaker,(Vsnd[A],10)
and
SOUND Speaker,(Vsnd.0[A],10)

In fact, I get a sound but it is a much lower frequency than compared to when I play the sound like SOUND Speaker,[121,10].
Do you have a cap on the output like the manual suggests? What kind of speaker are you driving? What's you OSC? Which PIC are you using?

speaker var portb.1:a var byte:for a=0 to 255:sound speaker,[a,50]:next a

or maybe:

vsnd var byte[3]:vsnd[0]=10:vsnd[1]=30:vsnd[2]=75:vsnd[3]=120
a var byte:for a=0 to 3:sound speaker,[vsnd[a],50]:next a