Mastering Bit Reduction, Resampling, and Upsampling in Digital Audio Production
Dive into the world of digital audio production with a focus on bit reduction, resampling, and upsampling techniques. Learn about VST plugins, panning, and ear training for optimal sound processing. Explore the nuances of sampling analog sound waves, mastering digital sound resolutions, and understanding the effects of aliasing. Enhance your skills with practical insights on when to be cautious about aliasing in audio signal processing.
Download Presentation
Please find below an Image/Link to download the presentation.
The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author. If you encounter any issues during the download, it is possible that the publisher has removed the file from their server.
You are allowed to download the files provided on this website for personal or commercial use, subject to the condition that they are used lawfully. All files are the property of their respective owners.
The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author.
E N D
Presentation Transcript
Bitreduction Make a VST plugin Downsampling Panning Ear training for digital audio production yvind Brandtsegg
Digitizing (Sampling) Analog sound wave 0,09983342 1,5 0,19866933 1 0,29552021 0,5 Digital sound, fine resolution 0,38941834 0 0,47942554 -0,5 0,56464247 -1 0,64421769 -1,5 0,5 1,5 0,8 1 1 0,5 Digital sound, coarse resolution 0,9 0 0,6 -0,5 0,1 -1 -0,4 -1,5
Bit reduction b = bits, n = steps (discrete values) n=2(b) 16 bits audio has 65536 steps Range = -32768 to +32767 Bitreduction algorithm (we want balanced +/-) n=2(b-1) gives number of bipolar steps a=round(a*n)/n Gives normalized output Allows fractional bits (nonsensical but useful)
VST plugin from DSP kode Cabbage: open csd, export as effect Save in folder where your DAW expect to find plugins Windows: same name (.csd og .dll) OSX: .vst file is a bundle (.csd is inside bundle) Enable ad hoc codesign in Settings/Miscellaneous <Cabbage> form size(400, 300), caption("MyCoolPlug"), pluginId("new1") rslider channel("Volume"), bounds(10, 25, 70, 70), text("Volume"), range(0, 1, 1, 0.35) rslider channel("Drive"), bounds(90, 25, 70, 70), text("Drive"), range(1, 10, 1) </Cabbage> <CsOptions> -n -d </CsOptions>
Resampling Upsampling interpolation - decimation/downsampling Nyquist, Aliasing, Mirror images Simplified algorithm: (Downsampling/Decimation) Pulse generator at new sample rate Sample and hold Generous amount of artifacts/aliasing zero-order hold distortion NB: As a processing effect, we downsample but represent the signal in the original sampling rate. This works differently than real downsampling. Linear interpolation Disregard in-between samples Line segment between each sample Zero padding In-between samples = null Lowpass filter http://dspguru.com/dsp/faqs/multirate/resampling
Samplerate, Nyquist ? sr/8 sr/2 sr/2 sr/4
Aliasing Zero order hold distortion
In practice When should we be especially aware and cautious about aliasing? When processing the audio signal in such a way that we might generate new frequencies, e.g. distortion, modulation, etc.
Workshop assignment Explore code examples for bitreduction and resampling Run offline (terminal: csound bitreduction.csd) Make VST/AU plugin Run in Cabbage Export plugin Run in DAW