Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 06:18 15 Nov 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : Somebody tweaked PLAY SOUND ?

Author Message
hitsware2

Guru

Joined: 03/08/2019
Location: United States
Posts: 734
Posted: 12:57am 12 Feb 2021
Copy link to clipboard 
Print this post

I can get an envelope now ,
where trying the same approach
before was noisy ?

'''''' morph ''''''

10 dim up(7), down(7)
15 for x=0 to 7: read up(x): next x: restore
20 for x=7 to 0 step -1: read down(x): next x
25 for x=0 to 7: for e=25 to 0 step -1
30 play sound 1,b,s,up(x),e
35 pause 20: next e: pause 200
40 r=int(rnd*(5))
45 if r=2 then up(x)=down(x)
50 next x: goto 25

100 data 240,270,300,320,360,400,450,480

my site
 
capsikin
Guru

Joined: 30/06/2020
Location: Australia
Posts: 342
Posted: 04:41pm 10 May 2021
Copy link to clipboard 
Print this post

  hitsware2 said  I can get an envelope now ,
where trying the same approach
before was noisy ?

'''''' morph ''''''

10 dim up(7), down(7)
15 for x=0 to 7: read up(x): next x: restore
20 for x=7 to 0 step -1: read down(x): next x
25 for x=0 to 7: for e=25 to 0 step -1
30 play sound 1,b,s,up(x),e
35 pause 20: next e: pause 200
40 r=int(rnd*(5))
45 if r=2 then up(x)=down(x)
50 next x: goto 25

100 data 240,270,300,320,360,400,450,480


Looks like it was in V5.05.06RC1 "Changing frequency when using the SOUND command will no longer create a click when the same channel is used for the same type of SOUND"
V5.05.06RC1
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025