News:

Printed Amstrad Addict magazine announced, check it out here!

Main Menu

Adding music and sound efects to my basic game

Started by enteka, 12:00, 06 June 21

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

enteka

Er... how do I do that on Basic? It's not like I can load an mp3 file. Is there any collection of sound effects that I can use?
I've read the manual but all I get is "Music stuff musicians understand"

ComSoft6128

HI @enteka ,


If you look at my YT channel you'll find quite a few examples of BASIC music that you may find useful.


EG



https://www.youtube.com/watch?v=IM8oR0Pk6_A&t=61s


But don't ask me any questions - I'm not a programmer.




Targhan

You can code your sound effects and music in Basic, like in the example @ComSoft6128 showed, but it is slow, tedious, and not very funny.
If you don't mind using an assembler player, you can create both music and sound effects using my software Arkos Tracker 2 (see the link in my signature), which is a Windows/Mac/Linux software. Once you have created the sound effects and the music (if needed), you can load them in Basic and use them. The cool thing is that everything is done "in the background", so your Basic code continues its execution while the music/sfx are played. They are triggered by CALLs to the player.

There is a tutorial here with all you need.
Targhan/Arkos

Arkos Tracker 2.0.1 now released! - Follow the news on Twitter!
Disark - A cross-platform Z80 disassembler/source converter
FDC Tool 1.1 - Read Amsdos files without the system

Imperial Mahjong
Orion Prime

eto

Quote from: enteka on 12:00, 06 June 21
Er... how do I do that on Basic? It's not like I can load an mp3 file. Is there any collection of sound effects that I can use?
I've read the manual but all I get is "Music stuff musicians understand"

A collection of sound effects would be great, unfortunately I am not aware of any.

Sean McManus provides on his website a DSK with many tools, including an envelope designer. Even if you don't fully understand how that works, you can create envelops graphically and immediately hear how they sound. When you're happy, you end the program and it spits out the BASIC command for the sound effect you just have created. (Just make sure to immediately save it to disk - as nice as the editor is, it lacks saving/loading). It could be done better probably, but I don't know anything else that comes even close to this editor (for BASIC).

https://www.sean.co.uk/books/amstrad/amstrad6.shtm

If you want to dive more into Music and sound effects, check out "Making Music on the Amstrad CPC" by Ian Waugh. A full book that covers every single aspect of sound creation in BASIC including lots of examples:

https://acpc.me/ACME/LITTERATURE_LIVRES/[ENG]ENGLISH/SUNSHINE_BOOKS/Making_music_on_the_AMSTRAD_CPC464-664(Ian_WAUGH)(acme).pdf




banana

I would love it If there was a collection to just grab and use.

Powered by SMFPacks Menu Editor Mod