amiga.org
     
iconAll times are GMT -6. The time now is 06:09 AM. | Welcome to Forum, please register to access all of our features.

Amiga.org The "Not Quite Amiga but still computer related category" Amiga Emulation Paula Audio Emulation AudioUnit

Amiga Emulation This forum is dedicated to discussions about Commodore Amiga Emulation. This includes products such as WinUAE, Amithlon, Amiga Forever, etcetera.

Reply
 
Thread Tools Display Modes
Old 03-25-2012, 03:00 AM   #16
bloodline
Master Sock Abuser
Points: 38,930, Level: 100 Points: 38,930, Level: 100 Points: 38,930, Level: 100
Activity: 25% Activity: 25% Activity: 25%
 
bloodline's Avatar
 
Join Date: Mar 2002
Location: London, UK
Posts: 11,889
Blog Entries: 3
Default Re: Paula Audio Emulation AudioUnit

Quote:
Originally Posted by Karlos View Post
Didn't we also conclude that aliasing played a big part in the colouring of Paula's audio?

I found that for certain bright sounds, like cymbals, there were quite noticeable effects as you approached the regular PAL 27kHz playback limit, specifically a bit like the old aphex corp's "aural exciter" effect.
Indeed, once I get the resolution issues sorted (An idea hit me last night at the pub with some friends)... I will look at how to recreate the effect of the amiga sample rates...
__________________
My iPhone Game: Puny Humans -
http://itunes.apple.com/gb/app/puny-...362230281?mt=8
bloodline is offline   Reply With Quote
Old 03-25-2012, 06:47 AM   #17
ChaosLord
Premium Member
Points: 15,941, Level: 81 Points: 15,941, Level: 81 Points: 15,941, Level: 81
Activity: 14% Activity: 14% Activity: 14%
 
ChaosLord's Avatar
 
Join Date: Nov 2003
Location: Houston, Texas
Posts: 2,528
Default Re: Paula Audio Emulation AudioUnit

Amiga has a 14-bit (or more) DAC.

You are confusing the sample size with the DAC size. The samples are sadly, only 8-bits, but they happily get 6 bits of volume control added to them for a total of 14 bits that the DAC outputs.

If the DAC was only 8-bits then the volume control registers would have no effect and all Amiga mods would sound like crap.
__________________
Wanna try a wonderfull strategy game with lots of handdrawn anims,
Magic Spells and Monsters, Incredible playability and lastability,
English speech, etc. Total Chaos AGA
ChaosLord is offline   Reply With Quote
Old 03-25-2012, 07:42 AM   #18
Karlos
Sockologist
Points: 50,125, Level: 100 Points: 50,125, Level: 100 Points: 50,125, Level: 100
Activity: 5% Activity: 5% Activity: 5%
 
Karlos's Avatar
 
Join Date: Nov 2002
Location: Barishabaad, Sardistan
Posts: 16,644
Blog Entries: 18
Default Re: Paula Audio Emulation AudioUnit

Quote:
Originally Posted by ChaosLord View Post
Amiga has a 14-bit (or more) DAC..
You are talking cross purposes. Bloodline isn't trying to reproduce 14-bit replay, he's trying to reproduce how 8-bit audio sounds when it's played back through the DAC at a given volume.

The output precision of Paula itself is not what is being modelled here, it's the response behaviour.

Paula is very non-linear. For a fixed channel volume, the output does not vary linearly as a function of the input 8-bit sample. Likewise, the output does not vary linearly as a function of channel volume for a fixed input 8-bit sample value.

Finally, these variances themselves change from one Paula to another.

The guy (sorry, the name escapes me just now) that wrote the original 14-bit Cybersound driver that was later assimilated into AHI was well aware of this. He developed a calibration tool that relies on the user manually eliminating a simple square wave (IIRC) across a spread of input values by adjusting a set of scaling factors. The idea was that for each input value, you had to adjust the scaling factor until the square wave was as inaudible as possible.

It was my original suggestion to Bloodline that the resulting calibration table should contain the necessary data (likely requiring some inversion) for his proposed application.

We then went on to discuss other factors affecting the audio. On the digital side, there is sample aliasing and on the analogue side, the frequency response (always kinda bassy to my ear) of the op-amps that boost the output from the DAC and, of course, the low pass filter (if enabled).
__________________
OCA
This isn't SCSI... This is SATA!!!
I have CDO. It's like OCD except all the letters are in ascending order. The way they should be.
Core2 Quad Q9450 2.66GHz / X48T / 4GB DDR3 / nVidia GTX275 / Linux x64, AROS, Win64
A1XE 800MHz / 512MB / Radeon 9200 / OS4.1
A1200T BPPC 240MHz / 256MB / Permedia 2 / OS 3.1 - OS3.9, OS4
A1200T Apollo 1240 28MHz / 32MB / Mediator1200 / Voodoo 3000 / OS3.9
A1200D Apollo 1240 25MHz (ejector seat ROM edition) / 32MB
Karlos is offline   Reply With Quote
Old 03-25-2012, 11:17 PM   #19
Bif
Too much caffeine
Points: 3,847, Level: 39 Points: 3,847, Level: 39 Points: 3,847, Level: 39
Activity: 15% Activity: 15% Activity: 15%
 
Join Date: Aug 2009
Location: BC, Canada
Posts: 97
Default Re: Paula Audio Emulation AudioUnit

Cool research. If you want to be serious about knowing if the changes you make are truly audible and not a placebo effect you should be performing ABX tests: http://wiki.hydrogenaudio.org/index.php?title=ABX

It may sound silly if you have never been exposed to it but the brain plays surprising tricks on you, especially when you start to think of audio with warm nostalgic feelings - you perceive it that way even if it isn't.

In what you have done so far you can try to ABX the non-linear vs. linear response to see if you can confidently hear a difference.

If you get Paula better emulated via crude resampling/etc. then you probably want to ABX against what you do in software and an actual recording of the Paula, ensuring they are level matched and time aligned. Heck if you can get that close you could just start to compare the recorded audio files directly to check for bit differences to see how close you are.

I'm not a Paula guru, but I would also suspect it is the crude and noisy/aliasing resampling + 8-bit that provides most of the distinctiveness of the output you hear, not so much the non-linearity.
Bif is offline   Reply With Quote
Old 04-29-2012, 04:59 AM   #20
Thorham
Cult Member
Points: 5,263, Level: 46 Points: 5,263, Level: 46 Points: 5,263, Level: 46
Activity: 61% Activity: 61% Activity: 61%
 
Thorham's Avatar
 
Join Date: Oct 2009
Location: Nerd City, Nerderon
Posts: 780
Default Re: Paula Audio Emulation AudioUnit

Quote:
Originally Posted by TheBilgeRat View Post
You may not tell a difference, but I bet there's some audiophile out there who possibly could.
With 8 bit samples at maximum volume, no, but with 14 bit playback, the soft parts of a sample will sound noisy.

Quote:
Originally Posted by bloodline View Post
Not really, you can't count the 6 volume bits when talking about audio reproduction. The Amiga's audio chip is fed with 8 bit signed integer values and at full volume, the DAC is an 8 bit DAC... So those extra 6 bits are simply altering the maximum output value, the resolution of the input remains 8 bit.
No, the 6 volume bits are part of the DAC. 8 bits are used for the sample, 6 bits are used for the volume.

Quote:
Originally Posted by Karlos View Post
You are talking cross purposes. Bloodline isn't trying to reproduce 14-bit replay, he's trying to reproduce how 8-bit audio sounds when it's played back through the DAC at a given volume.
Which means it's perfectly relevant that Paula is 14 bit, given that 6 bits are used to control volume. Especially in MODs that use different volumes all the time, this may be important.

Generally speaking these non-linearities will result in some noise, and probably nothing more. The only thing that's special about the Paula is the ridiculous speed at which it can operate when using the CPU to feed it with data.

Last edited by Thorham; 04-29-2012 at 05:01 AM..
Thorham is offline   Reply With Quote
Reply

Bookmarks

Tags
audio , audiounit , emulation , paula

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump