Beep Music in PB

Everything else that doesn't fall into one of the other PB categories.
matalog
Enthusiast
Enthusiast
Posts: 165
Joined: Tue Sep 05, 2017 10:07 am

Beep Music in PB

Post by matalog »

Has anyone tried to make beeper music with Purebasic? I took the DATA from a ZX Spectrum tune I had and got PB to play it. It's a bit clicky.

https://www.dropbox.com/s/8mws0nty7f3n7 ... 6.mp4?dl=0
User avatar
TheAutomator
Enthusiast
Enthusiast
Posts: 112
Joined: Tue Dec 01, 2020 8:33 pm

Re: Beep Music in PB

Post by TheAutomator »

I think the clicking comes from sudden cutoff, for example
one waveform ending at its peak value, the other starting at it's lowest value immediately after:

_/''''\__/''''\__/''''\__/'''_____/'''''''''''\_____/'''''''''''\_____
.........beep 1.......|....................beep 2.......

(second beep cutting the first off)
matalog
Enthusiast
Enthusiast
Posts: 165
Joined: Tue Sep 05, 2017 10:07 am

Re: Beep Music in PB

Post by matalog »

Any 8-bit beeper music I heard didn't click quite so much. Maybe they were a different waveform.
#NULL
Addict
Addict
Posts: 1440
Joined: Thu Aug 30, 2007 11:54 pm
Location: right here

Re: Beep Music in PB

Post by #NULL »

I made something similar for the Windows Beep() command to compose for the pc-speaker and generate the PB code for it:
(german forum)
forums.purebasic.com/german/viewtopic.php?f=11&t=11966
But it's probably not what you are looking for.
ProphetOfDoom
User
User
Posts: 84
Joined: Mon Jun 30, 2008 4:36 pm
Location: UK

Re: Beep Music in PB

Post by ProphetOfDoom »

Slightly tangential but I wrote a program in Flat Assembler many years ago that plays Beethoven‘s “Ode to Joy” in beeps. I think PureBasic uses Fasm as a backend doesn’t it? Maybe someone could get it working and find it useful?
https://board.flatassembler.net/topic.php?t=15083
Post Reply