CPCWiki forum

General Category => Programming => Topic started by: Morri on 06:06, 21 June 15

Title: Sound effects in BASIC [Help needed!]
Post by: Morri on 06:06, 21 June 15
Hi All,
Had a few ideas for another BASIC game which I am working to compile from CPC BASIC 3.
Sprites are done and not looking too shabby (for my skill level). Code is only in the early stages being up to level design.

Anyway I have already started thinking about sound effects and was wondering if people out there had any sound effects called from BASIC which they could share with me.

I will get the ball rolling with the best explosion sound effect I could come up with.

10 ENV 1,11,-1,25:ENT 1,9,49,5,9,-10,15
20 SOUND 3,145,300,12,1,1,12


Please share everyone and then I will blatantly use the ones I need for my game.  :P

SOUNDS I'M ON THE LOOKOUT FOR:

10 ENT 2,20,-125,1
20 SOUND 1,1500,10,12,,2
10 ENT 3,100,-2,2
20 SOUND 1,142,140,15,0,3

10 ENV 4,15,1,1,15,-1,1:ENT -4,2,1,1,2,-1,1
20 SOUND 1,2000,50,0,4,4,15
10 ENT -5,7,10,1,7,-10,1
20 SOUND 1,25,80,12,,5

10 ENV 6,10,1,1,1,10,0,1,-1,1:ENT -6,1,1,1,1,5,1
20 SOUND 1,50,50,3,6,6
10 ENT 8,100,5,3
20 SOUND 1,142,100,15,0,8


Thanks All!
Title: Re: Sound effects in BASIC [Help needed!]
Post by: Morri on 08:36, 21 June 15
As I manage to find effects myself I will add to / update the OP.
First one I have is the block hitting the ground.


10 ENV 4,15,1,1,15,-1,1:ENT -4,2,1,1,2,-1,1
20 SOUND 1,2000,50,0,4,4,15
Title: Re: Sound effects in BASIC [Help needed!]
Post by: Gryzor on 09:03, 21 June 15
These are simple but nice :)
Title: Re: Sound effects in BASIC [Help needed!]
Post by: AMSDOS on 10:55, 21 June 15
I'm not a SoundFX person by nature, so can't really contribute any useful sound parameters, though thought that perhaps the Sound Experiment Program (http://www.cpc-power.com/index.php?page=detail&num=10705) or Sound Experiment Programme For Amstrad CPC 464 (http://www.cpc-power.com/index.php?page=detail&num=10484), might help produce some sound effects. Personally, I like Laser Beams when you add more Noise to the effect.
Title: Re: Sound effects in BASIC [Help needed!]
Post by: Morri on 10:51, 22 June 15
Best Jump sound I've able to come up with.

10 ENT 2,20,-125,1
20 SOUND 1,1500,10,12,,2


Another Jump sound
10 ENV 2,10,-1,10:ENT 2,5,-1,4,5,1,4,5,-1,4,5,1,4
20 SOUND 1,239,75,15,2,2
Title: Re: Sound effects in BASIC [Help needed!]
Post by: Morri on 11:34, 22 June 15
Snowman throwing a snowball?

10 ENV 6,2,1,1,15,-1,1
20 SOUND 1,1000,20,13,6,,5

or

10 ENV 6,10,1,1,1,10,0,1,-1,1:ENT -6,1,1,1,1,5,1
20 SOUND 1,50,50,3,6,6
Title: Re: Sound effects in BASIC [Help needed!]
Post by: Morri on 12:21, 22 June 15
Collecting something, coins etc...

10 ENV 1,5,3,3,1,-21,22,9,-3,2:ENT -1,10,2,2,5,-7,1,2,11,3,2,-4,8
20 SOUND 1,19,46,12,1,1

Title: Re: Sound effects in BASIC [Help needed!]
Post by: Morri on 08:12, 23 June 15
Finishing a stage

10 ENT 3,100,-2,2
20 SOUND 1,142,140,15,0,3


Losing a Life

10 ENT 8,100,5,3
20 SOUND 1,142,100,15,0,8

Title: Re: Sound effects in BASIC [Help needed!]
Post by: Morri on 08:33, 23 June 15
Laser Beam
10 ENT -5,7,10,1,7,-10,1
20 SOUND 1,25,80,12,,5

Title: Re: Sound effects in BASIC [Help needed!]
Post by: Morri on 12:22, 23 June 15
Bouncing Ball
10 ENV 1,1,15,1,15,-1,1
20 SOUND 1,638,0,0,1
Title: Re: Sound effects in BASIC [Help needed!]
Post by: AMSDOS on 10:44, 24 June 15
Most of those sound alright, but because I have bad hearing, I could only just barely hear the Fx for the Flag at the end of the stage & the 1st Jumping effect was very soft. Are you getting a variation in that Explosion Effect, I tried it on Winape, sometimes it sounded like an explosion and other times it sounds like blowing their nose, I don't know what was causing the variation.
Title: Re: Sound effects in BASIC [Help needed!]
Post by: McKlain on 10:52, 24 June 15
DON'T use Winape to test the sound, use another emulator like CPCE or JavaCPC.
Title: Re: Sound effects in BASIC [Help needed!]
Post by: AMSDOS on 11:07, 24 June 15
Quote from: McKlain on 10:52, 24 June 15
DON'T use Winape to test the sound, use another emulator like CPCE or JavaCPC.


Thanks for the advice!  :D  But you just can't beat the real thing.
Title: Re: Sound effects in BASIC [Help needed!]
Post by: Morri on 11:21, 24 June 15
If an effect is a little quiet, you can change the 4th parameter to 15. MAXIMUM VOLUME!!!  :D
I was testing all of these on WinApe too. Might give JavaCPC a go.

A few longer sounds that gradually fade out.

10 ENV 1,1,15,2,15,-1,34:ENT -1,4,3,2,4,-3,1
20 SOUND 1,0,0,0,1,0,12
30 SOUND 1,20,500,0,1,1,0
40 SOUND 1,400,500,0,1,1,0
Title: Re: Sound effects in BASIC [Help needed!]
Post by: Morri on 11:49, 24 June 15
Teleport

10 ENV 1,10,0.5,5,10,-0.5,5
20 SOUND 1,100,80,15,12


Cool sound, can't think of a name yet.

10 ENT 1,20,-100,3
20 SOUND 1,638,30,15,0,1

Title: Re: Sound effects in BASIC [Help needed!]
Post by: Morri on 11:00, 23 August 15
Trying to find an effect for my game Let's Go. I need something for when the timer runs out. Anyone have or know of anything that might suit? I spent a couple of hours looking through old mags but nothing stuck out as suitable.
I thinking a wha, wha, whaaaa.. or doop, doop, doop, doop which gets deeper everytime. (Man, it's hard trying to describe sound... :-\ )  :laugh:
Title: Re: Sound effects in BASIC [Help needed!]
Post by: seanb on 12:00, 23 August 15
How about
Title: Re: Sound effects in BASIC [Help needed!]
Post by: Gryzor on 17:11, 23 August 15
Any simple bleep, even the default Amsrad's bleep (ooh!) would do if played at an increasing tempo, wouldn't it?
Title: Re: Sound effects in BASIC [Help needed!]
Post by: AMSDOS on 10:40, 24 August 15
Cannot seem to get past the Count Down Sound from Rock Hopper, the pitch of the sound changes the closer it gets to the bottom.  :o
Title: Re: Sound effects in BASIC [Help needed!]
Post by: IndyUK on 16:35, 01 September 24
Quote from: Morri on 08:33, 23 June 15Laser Beam
10 ENT -5,7,10,1,7,-10,1
20 SOUND 1,25,80,12,,5

Sorry folks, I know this is a very old post but I need some help in converting the above into it's assembly bytes equivalent. Sound is something I haven't touched at all so I'm a complete novice when it comes to that. Any help would be much appreciated.

@Morri - Hope you don't mind me using your example sound effect in my project.

Thank you!
Powered by SMFPacks Menu Editor Mod