Page 1 of 1
Beep Music in PB
Posted: Sat Dec 05, 2020 9:21 pm
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
Re: Beep Music in PB
Posted: Sat Dec 05, 2020 11:35 pm
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)
Re: Beep Music in PB
Posted: Sat Dec 05, 2020 11:59 pm
by matalog
Any 8-bit beeper music I heard didn't click quite so much. Maybe they were a different waveform.
Re: Beep Music in PB
Posted: Wed Dec 09, 2020 11:03 am
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.
Re: Beep Music in PB
Posted: Mon Dec 14, 2020 7:04 pm
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