Jump to content
Sign in to follow this  
Rybags

Generating sound effects with Pulse-Width Modulation

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.

Share this post


Link to post
Share on other sites

How are these experiments working out?

 

Signal Modultion can be quite useful in feedback-oriented control systems... (if you redirect that output for non-audio control...).

 

 

L8R,

 

UNIXcoffee928

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
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.

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...
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...