Author Topic: Adding music and sound efects to my basic game  (Read 436 times)

0 Members and 1 Guest are viewing this topic.

Offline enteka

  • CPC464
  • **
  • Posts: 33
  • Country: es
  • Liked: 26
  • Likes Given: 25
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"

Offline ComSoft6128

  • ..................................
  • Supporter
  • 6128 Plus
  • *
  • Posts: 2.323
  • Country: scotland
  • CPC THEN CPC NOW
    • index.php?action=treasury
  • Liked: 2553
  • Likes Given: 4876
Re: Adding music and sound efects to my basic game
« Reply #1 on: 14:35, 06 June 21 »
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.




Offline Targhan

  • Supporter
  • 6128 Plus
  • *
  • Posts: 1.403
  • Country: fr
  • Liked: 1331
  • Likes Given: 195
Re: Adding music and sound efects to my basic game
« Reply #2 on: 15:45, 06 June 21 »
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

Offline eto

  • Supporter
  • 464 Plus
  • *
  • Posts: 431
  • Country: de
  • Liked: 272
  • Likes Given: 243
Re: Adding music and sound efects to my basic game
« Reply #3 on: 17:35, 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:

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




Offline banana

  • CPC664
  • ***
  • Posts: 109
  • Country: gr
  • Liked: 27
  • Likes Given: 56
Re: Adding music and sound efects to my basic game
« Reply #4 on: 16:31, 10 June 21 »
I would love it If there was a collection to just grab and use.