| |
The Shadow
Registered: Oct 2007 Posts: 304 |
Digitizing Sound Effects
For the purposes of digitizing voices and other sounds for game sound effects, all suggestions are welcome. The ideal parameters are for a good program that can convert sound samples into a C=64 format. An ideal program is one that can have the sound effects take as little memory as possible and reasonably light on rastertime, without compromising sound quality. Ideas? |
|
... 3 posts hidden. Click here to view all posts.... |
| |
The Shadow
Registered: Oct 2007 Posts: 304 |
Very cool. Any good programs for this purpose are needed. |
| |
Frantic
Registered: Mar 2003 Posts: 1648 |
By the way, I realized that I wrote the wrong sample rates... I was thinking of 7800hz versus 3900hz rather than 7200hz versus 3600hz.
...and even more exactly 7820hz versus 3910hz; at least on a PAL system with 312 raster lines and a clock frequency of 50.125hz.
7820hz is every second raster line on a PAL system, and 3910hz is every fourth raster line. Anyway.. You seem to be on NTSC, so the exact rates you would be using would be slightly different in any case. |
| |
enthusi
Registered: May 2004 Posts: 677 |
Hi, in
Heartlight 64 Preview I used the original sample-WAVs from the PC game. Sampled down to 4bit 8Khz with a few lines of C code.
4 bit give you the big advantage of high/low-nibble data.
Also you can easyly use different sample-rates for different fx which is partially integrated in the preview above. Surely not all kinds of sounds require 8 khz. Also at 8 khz you dont have THAT much CPU time left. In Heartlight the NMI sample player is active permanently and merely feed with data when an fx is triggered. Don't judge the sample quality of HL64 - final optimization not done yet... |
| |
MagerValp
Registered: Dec 2001 Posts: 1078 |
If you have a few CPU cycles to spare, I'd suggest using delta compression (as invented by Robin Harbron) for the samples:
bit d418
0 no change
10 -1
11 +1 at ~8 kHz it's nearly lossless, uses about 1.5 bits per sample instead of 4, and is simple to unpack.
|
| |
algorithm
Registered: May 2002 Posts: 705 |
Alternatively 1 bit dynamic delta modulation can be used. eg per specific amount of chunk values (256 samples) the encoder can determine an optimum step size then encode the value with an unset bit as minus the step value and set bit as plus the step value.
The encoder can work with several future samples to generate least error.
Two bit delta modulation gives the possibility of two step values.
Even less processor intensive decoding would be via the Vector Quantisation route, but the encoder would be complex in comparison (this can be combined ofcourse with the dynamic deltamodulation :-)) |
| |
The Shadow
Registered: Oct 2007 Posts: 304 |
Alternately, is there a possible way to blend music and sound effects together such as music playing with sound effects interrupting the music seamlessly? |
| |
algorithm
Registered: May 2002 Posts: 705 |
You can use the 8 bit audio method but the non-cycle important method would use 2 sid channels (one seeking to the desired level) while the other one is set etc which will only give you one sid channel for music.
Alternatively the standard 4 bit method via $d418 (but on new sid this may be problematic (although may be be solved by using a null channel to boost the digi)
Another method would be to synthesize the sound effect using sid waveforms (but this would not really be that useful with a single channel)
|
| |
Frantic
Registered: Mar 2003 Posts: 1648 |
Just to make clear... the $d418 method works as a "fourth channel", which means that you can play digis at the same time as 3 channel SID music is playing. ...although it has the drawback/problem mentioned by Algorithm in the previous post. |
| |
The Shadow
Registered: Oct 2007 Posts: 304 |
For other projects, samples digitized in the 1980s have a low sound volume. Is there a way to boost the volume on a digitized sample so that the volume is the same as a standard SID? |
| |
Frantic
Registered: Mar 2003 Posts: 1648 |
Have you read the material on digis that is available on Codebase?
http://codebase64.org/doku.php?id=base:sid_programming#samples_..
...and regarding volume boost with $d418 digis:
http://codebase64.org/doku.php?id=magazines:chacking20&s[]=boos..
Also, I guess you already know that $d418 digis sound much more quiet on the new sid (8580) than on the old sid (6581)? |
Previous - 1 | 2 - Next |