Jump to content
IGNORED

Generating sound effects with Pulse-Width Modulation


Rybags

Recommended Posts

PWM sound uses a duty cycle which averages out over the sample period to generate the same result as modulating a wave to a certain position.

 

Has anyone tried, or got any software which does it?

 

There is an article here http://www.ffd2.com/fridge/chacking/c=hacking20.txt and here http://www.ffd2.com/fridge/chacking/c=hacking21.txt about digitized sound on the C-64.

 

I've been playing about with it on the 130XE, using various techniques like POKEY timers, and have tried playing direct POKEY sound and forced volume (alternating 0 and 15).

 

So far, my results aren't so great. I'm using voice 1/2 combined on a 1.79 base, which allows Timer resolutions to a single machine cycle.

Link to comment
Share on other sites

  • 2 weeks later...

I got it to the point where it played recognisable samples, using 2 methods.

 

1st method was the classic "Volume only" output.

 

2nd method was using a voice pair at 1.78 MHz -plus using Pokey timer (which forces modulation cycle to restart).

 

Both results poor so far, plus you get the carrier frequency which can't easily be filtered.

 

I haven't touched it for some time - devoting programming time to Impossible Mission project.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...