| Author | Topic: SSM version 1 (Read 101 times) |
Eddy-B Administrator
     member is offline
Joined: Jun 2008 Gender: Male  Posts: 19 Location: Netherlands Karma: 0 |  | SSM version 1 « Thread Started on Jun 20, 2008, 7:04pm » | |
The first version of the Simple Sound Module contains only a few basic functions. The code consists of several parts:a waveform generation subroutine; an ADSR enveloppe;a pseudo-random number generator used for white noise;and a mixer module that mixes the voices together and implements the main volume. When incorporated in the Mega-Console each of these parts is called every other scanline (making the sample frequency 7.8kHz on PAL systems which starts creating some audible artifacts above 2kHz - still accaptable for musical applications).
The waveform generation is on-the-fly, using linear interpolation to make it fast enough to fit within a PAL horizontal sync: only 3.25 microseconds are required for each voice. The ADSR envelope and random number generation also requires 3.25 microseconds.
As a stand-alone module, it would be possible to increase the sampling frequency to 31.25kHz and still be able to probably fit in 8 voices.
| -- www.ElectronicsPit.com -- |
|
Eddy-B Administrator
     member is offline
Joined: Jun 2008 Gender: Male  Posts: 19 Location: Netherlands Karma: 0 |  | Re: SSM version 1 « Reply #1 on Jun 22, 2008, 12:19pm » | |
After some more testing with ring modulation, i found an interesting new waveform today: ring-modulated sawtooth.
The sound is similar to regular ring-mod, but the sharp edges of the sawtooth create a distinct pattern in the sound. By altering the difference between the base frequency and the modulation frequency i can create a waveform that sounds a lot like an airplane propeller. And when there's only a very slight offset between the two frequencies (or one of the overtones), you can create a distinct sweeping sound that many MOD-trackers use.
As a matter of consequence i've included ring-modulated pulsewave, but it doesn really create interesting sounds when modulating 2 pulsewaves.
As for noise: no use modulating random signals, they'll still be random!
| -- www.ElectronicsPit.com -- |
| |
|