News:

Printed Amstrad Addict magazine announced, check it out here!

Main Menu
avatar_Morri

Sound effects in BASIC [Help needed!]

Started by Morri, 06:06, 21 June 15

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Morri

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:

       
  • Main character walking
  • Main character jumping

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

       
  • A complete the stage sound when you touch a flag.
10 ENT 3,100,-2,2
20 SOUND 1,142,140,15,0,3

       
  • A 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

       
  • A laser beam
10 ENT -5,7,10,1,7,-10,1
20 SOUND 1,25,80,12,,5

       
  • A snowball being thrown by a snowman

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

       
  • A giant snowball rolling along the ground.
  • Losing a Life
10 ENT 8,100,5,3
20 SOUND 1,142,100,15,0,8


Thanks All!
Keeping it Kiwi since 1977

Morri

#1
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
Keeping it Kiwi since 1977

Gryzor

These are simple but nice :)

AMSDOS

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 or Sound Experiment Programme For Amstrad CPC 464, might help produce some sound effects. Personally, I like Laser Beams when you add more Noise to the effect.
* Using the old Amstrad Languages :D   * with the Firmware :P
* I also like to problem solve code in BASIC :)   * And type-in Type-Ins! :D

Home Computing Weekly Programs
Popular Computing Weekly Programs
Your Computer Programs
Updated Other Program Links on Profile Page (Update April 16/15 phew!)
Programs for Turbo Pascal 3

Morri

#4
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
Keeping it Kiwi since 1977

Morri

#5
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
Keeping it Kiwi since 1977

Morri

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

Keeping it Kiwi since 1977

Morri

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

Keeping it Kiwi since 1977

Morri

Laser Beam
10 ENT -5,7,10,1,7,-10,1
20 SOUND 1,25,80,12,,5

Keeping it Kiwi since 1977

Morri

Bouncing Ball
10 ENV 1,1,15,1,15,-1,1
20 SOUND 1,638,0,0,1
Keeping it Kiwi since 1977

AMSDOS

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.
* Using the old Amstrad Languages :D   * with the Firmware :P
* I also like to problem solve code in BASIC :)   * And type-in Type-Ins! :D

Home Computing Weekly Programs
Popular Computing Weekly Programs
Your Computer Programs
Updated Other Program Links on Profile Page (Update April 16/15 phew!)
Programs for Turbo Pascal 3

McKlain

DON'T use Winape to test the sound, use another emulator like CPCE or JavaCPC.

AMSDOS

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.
* Using the old Amstrad Languages :D   * with the Firmware :P
* I also like to problem solve code in BASIC :)   * And type-in Type-Ins! :D

Home Computing Weekly Programs
Popular Computing Weekly Programs
Your Computer Programs
Updated Other Program Links on Profile Page (Update April 16/15 phew!)
Programs for Turbo Pascal 3

Morri

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
Keeping it Kiwi since 1977

Morri

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

Keeping it Kiwi since 1977

Morri

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:
Keeping it Kiwi since 1977

seanb

Thou shall not question Captain Wrong!

Gryzor

Any simple bleep, even the default Amsrad's bleep (ooh!) would do if played at an increasing tempo, wouldn't it?

AMSDOS

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
* Using the old Amstrad Languages :D   * with the Firmware :P
* I also like to problem solve code in BASIC :)   * And type-in Type-Ins! :D

Home Computing Weekly Programs
Popular Computing Weekly Programs
Your Computer Programs
Updated Other Program Links on Profile Page (Update April 16/15 phew!)
Programs for Turbo Pascal 3

Powered by SMFPacks Menu Editor Mod