The Dink Network

Reply to Re: sound number 1 - the quack

If you don't have an account, just leave the password field blank.
Username:
Password:
Subject:
Antispam: Enter Dink Smallwood's last name (surname) below.
Formatting: :) :( ;( :P ;) :D >( : :s :O evil cat blood
Bold font Italic font hyperlink Code tags
Message:
 
 
June 30th 2024, 07:35 AM
peasantmb.gif
yeoldetoast
Peasant They/Them Australia
Oh, NOW YOU'VE DONE IT! 
Yes, I was considering adding this to my recent review of Sparrowhawk's sound list, but thought it too obscure at the time.

The final playback hz for the duck is determined by the duck's size. For ducks of sprite size 100 (default) or larger, the playback rate is:

duck_hz - (size * 50)


By default, duck_hz is 18Khz but is only changeable in Yedink so far. Therefore, a size 100 duck will play back sound slot 1 at 13KHz assuming no modifications.
For ducks smaller than size 100, the formula is:

(duck_hz - 2000) + (size * 100)


Which results in higher frequency quacks for little ducks. The same applies to pigs (slots 2-4), except that those also receive an 800Hz random variance and have a thing that checks if they've already got a sound playing before oinking again.

Resampling in ffmpeg goes something like:

ffmpeg -i inquack.wav -ar 13000 outquack.wav


Keep in mind that resampling this low will make it sound comparatively horrible, assuming the original is at a standard rate of 44, 48, or 96KHz etc.