Page 1 of 2

New 1bit PWM music engine for the COCO

Posted: Tue Nov 26, 2013 6:25 pm
by zephyr
Something interesting from Simon Jonassen at the CoCo mailing list:
Simon Jonassen wrote: 1 bit revisited......

I hooked up with the LEGENDARY SOCKMASTER to work out this 1 bit routine....

I provided him with some z80 sourcecode which he quickly converted to
6809.... we tried it and it sounded shite, so we set about some
debugging.... (over 2 days)....

now we have a decent 1 bit music player for the coco - you can use the zx
spectrum program (beepola) to make music... (choose the engine called THE
MUSIC STUDIO).......

then export the data as an.asm file ( junk the z80 code and grab the song
data)....

sound of this engine here ( any funky sounds are lag on my old laptop):
http://www.roust-it.dk/coco/coco1bit.wav

https://www.youtube.com/watch?v=1_0TOZxOzn4
http://www.youtube.com/watch?v=WDIdBKCgSKg

REMEMBER THIS IS 1 BIT PWM.......

/Simon :-)

Re: New 1bit PWM music engine for the COCO

Posted: Tue Nov 26, 2013 7:29 pm
by Rink
Sounds great - nice work!

Re: New 1bit PWM music engine for the COCO

Posted: Wed Nov 27, 2013 2:18 am
by zephyr
I would like to see this converted for use on the Dragon 32/64. But, AFAIK there is no source or executable code available for download. :o

Re: New 1bit PWM music engine for the COCO

Posted: Wed Nov 27, 2013 5:49 pm
by Rink
zephyr wrote:I would like to see this converted for use on the Dragon 32/64. But, AFAIK there is no source or executable code available for download. :o
Really? Ack.

Maybe drop him a line and say that the lovely folks over at World of Dragon want to enjoy his engine.

Re: New 1bit PWM music engine for the COCO

Posted: Wed Nov 27, 2013 6:31 pm
by zephyr
Rink wrote: Really? Ack.

Maybe drop him a line and say that the lovely folks over at World of Dragon want to enjoy his engine.
Done. :)

Re: New 1bit PWM music engine for the COCO

Posted: Wed Nov 27, 2013 9:02 pm
by simon
source with music data has been posted to steve....

also a .wav file (cloadm/exec &h3f00)

/Simon Jonassen :-)

Re: New 1bit PWM music engine for the COCO

Posted: Thu Nov 28, 2013 10:58 pm
by zephyr
Thanks, Simon. :) Full source code, executable demo, and Beepola are now in the Uploads section.

Re: New 1bit PWM music engine for the COCO

Posted: Fri Nov 29, 2013 4:20 pm
by simon
@zephyr

another thing u need 2 watch out for when modifying the code would be that it runs DP at $3f......

alot of pointers/counters get modified (self modding code).... so stray beyond the 256 byte boundry and nasty things happen

/Simon :-)

Re: New 1bit PWM music engine for the COCO

Posted: Mon Oct 06, 2014 2:01 pm
by simon
Hooked up with a guy from the spectrum 1 bit scene (UTZ - Irrlicht Project) http://irrlichtproject.de/

heres a new 1 bit tune for the coco /dragon 1bit engine

this one was tailor made for my demo !!!! so no using it pls....

/Simon :-)

Re: New 1bit PWM music engine for the COCO

Posted: Mon Oct 06, 2014 10:44 pm
by tormod
Amazing piece of 1-bit music on the Dragon!

Just a note: The .bin file does not correspond to the .asm file (e.g. starts with a JSR), and it doesn't have the correct exec address.