motorollin wrote:
@bloodline
I really wish I understood what you're on about :lol: Can you explain it in layman's terms?
--
moto
I guess what Karlos and I are demonstrating is the opposite of small talk :-)
The theory is quite simple actually:
Paula can output 256 discrete voltage levels... which steps from -5 volts to +5 volts... so each level is about 0.039 volts... but due to her design, some levels are a bit larger and some are a bit smaller... this is because the DAC in paula is not perfectly linear (perhaps due to the design or flaws in the manufacturing).
In pure number terms, i.e. the digitized audio sample it looks like this:
-128 to +127 (-5 volts to +5 volts)
Which if the DAC was perfectly linear would look like this:
-2= -0.078 volts
-1= -0.039 volts
0 = 0 volts
1 = 0.039 volts
2 = 0.078 volts
So when we want to pay back the 8bit audio sample on 16bit hardware we need to convert the sample which could be any number from -128 to +127 into any number from (-65536 to +65535)... this is done simply by multiplying the sample by 256... (or we use the logical shift left operation since that is much faster, a good book on Boolean algebra will explain why).
That mean that 1 becomes 256... 2 becomes 512... 3 becomes 768... you get the picture... but that resultant output from the 16bit hardware won't sound like paula, because it is perfectly linear... so instead of multiplying by 256 we can use a lookup table to give the value that paula would have given if her output was sampled at 16bit!
So the value of 1 should have been 256 in a 16bit sample if she was perfectly linear... but Paula would actually give 239 (this isn't the true value since I don't have my tables with me at the moment)!
My plan is to make an Audio Unit, that takes the Audio stream converts it to 8bit, applies this paula derived nonlinear distortion, and than upscales back to the native audio resolution... Eh Viola! Instant Paula Audio from Logic Pro... or Ableton Live... Garage Band... or whatever Audio app you use to make music on your Mac! This is why I love digital music making :-)
Karlos also pointed out that the Amplifiers on the Motherboard colour the audio... But Logic has special EQ software which I should be able to use to match the that... it would be nice to have that as part of the Audio unit... but sadly Fast Fourier Transform isn't my idea of fun.