[ 3 / biz / cgl / ck / diy / fa / ic / jp / lit / sci / vr / vt ] [ index / top / reports ] [ become a patron ] [ status ]
2023-11: Warosu is now out of extended maintenance.

/vr/ - Retro Games

Search:


View post   

>> No.2635368 [View]
File: 79 KB, 704x448, Radiant Silvergun1.jpg [View same] [iqdb] [saucenao] [google]
2635368

No push yet, but here's a brief update on where I am:

I cleaned up my codec code, and will push it with the next update. To encode a PCM waveform to BRR, the wave is first broken down into blocks of 16 samples. Next the codec encodes the 16-cample block using each of the four available "filters". For each filter the block is encoded using a greedy optimization strategy that searches for a "shift" and encoding that when decoded minimizes the error for the current point being considered, not by minimizing the error for the entire sample at once (still haven't figured out the mathematics behind that one yet). The filter with the lowest decoded error is selected as the encoding for the block. Rinse and repeat until the sound is encoded.

I've perfromed the WAV->PCM->BRR conversion and dropped the sounds into the game. Currently I am tweaking the sounds so they have the proper pitch in game.

The original music scale of pitches I put together assumes that when played at 32kHz (the SNES's audio rate), a sample plays A-4 (A440Hz). Since the samples I was given where encoded at 11025Hz, and furthermore since I don't know what note they play when played at 32kHz, I am in the process of resampling and tuning the sounds. This really comes down to a pitch transposition, and is to minimize distortion when playing samples at very low and high frequencies.

Last but not least I am adding key offs between certain notes to get rid of popping/clicking caused by envelope discontinuities. This can only really be done after nailing down the sample encodings.

Sorry for the glacial updates, but remember that I am literally assembling all of my sound related data by hand. Things will move along again at good clip once I get back to the 65816 side of things.

In the mean time enjoy some kick ass video game music:
https://youtu.be/wmbtRW0noRw?t=3443 (the first level is good too).

>> No.2502758 [View]
File: 79 KB, 704x448, Radiant Silvergun1.jpg [View same] [iqdb] [saucenao] [google]
2502758

>>2502085
Penta. This fight is literally art.

Navigation
View posts[+24][+48][+96]