![]() |
![]() |
#1 |
Registered User
Join Date: Apr 2016
Location: Helsinki / Finland
Posts: 176
|
Audio filter mod
Hi all,
I've been wanting to modify hardware audio filter from my Amiga 600 due to lacking highs when playing music. Amiga 1200 does not have this problem due to higher cut off frequency and I was planning to mod Amiga 600 and rise cutoff frequency to Amiga 1200 levels. I am not electronics engineer so perhaps somebody could kindly verify that I am doing the right thing? So I've been studying schematics of Amiga 500, 600 and 1200. They all are implemented equally, it's just a simple low pass filter implemented by using opamp, resistor and capacitor per channel. So cutoff frequency can be calculated using formula 1/(2*3,14*R*C). According to schematics different Amiga models uses following values: A500: 0.1 uF, 360 Ohm -> 4,4 kHz A600: 3900 pF, 1.5k Ohm -> 27 kHz A1200 r1: 3900pF, 1.5kOhm -> 27 kHz A1200 r2: 6800pF, 680 Ohm -> 34 kHz So actually Amiga 600 should already have quite nice cutoff frequency - however schematics are wrong. I have three Amiga 600 from r1 to r2 and all have 360 Ohm resistors and according to RMAA measurements cutoff frequency is ~4kHz so I suspect that filter in Amiga 600 is equivalent to Amiga 500. Somebody else also said on other thread that schematics are wrong. So to change cutoff frequency to match Amiga 1200, one can change resistors and capacitors to match Amiga 1200, but that would alter gain also, no? So alternative is just to replace capacitors and calculate suitable value using that formula 1/(2*3,14*R*C). That should keep original gain but alter cutoff, did I got it right? I calculated that when resistor is 360 ohm using 15 nF capacitor will produce 29 kHz cutoff frequency and using 22 nF capacitor will produce 20 kHz cutoff frequency. 20 kHz should be plenty, but one could use 29 kHz also since A1200 r2 uses 34 kHz, no? Am I on right track? Thanks a lot! -J |
![]() |
![]() |
#2 |
Registered User
Join Date: Apr 2016
Location: Helsinki / Finland
Posts: 176
|
I just had to test this already. I replaced filter caps with 15nF caps (only problem was that my 0805 caps were a tad too small to replace original caps, had to place them extremely carefully to avoid shorts) which should produce that 29 kHz cutoff frequency.
Here frequency response before mod (oops seems my input levels were way off, I calibrated levels using VU meter on my preamp but that probably did not take such agressive low pass filter into account): And here's after mod (be aware of the scale, it's different on both pictures): I call this success. Frequency response is actually better than on many 1990s sound cards ![]() Ps. RMAA says that noise level is 83 dB and dynamic range is 77 dB. I think this is amazing when taking Paula's age into account? Distortion is high though. Last edited by jarp; 22 April 2017 at 16:53. |
![]() |
![]() |
#3 | |
Defendit numerus
Join Date: Mar 2017
Location: Crossing the Rubicon
Age: 54
Posts: 4,534
|
Quote:
This can confirm feasibility for my thoughts: http://eab.abime.net/showpost.php?p=1146073&postcount=6 We've log[2](4856)=12,25bit non-linear resolution (then more linearized), so a DR>73,72dB. We cover 77dB with 12,79 Q-bit linear <- 20*log[10](2^Q) There is somewhere on board a long discussion about real dynamics obtainable from 14bit Paula player. Someone think 10, someone 11, 12, 13, full 14 Q-bit DR or better... I narrow the field, my bet is somewhere betwheen 12,25 and 12,80 Q-bit ![]() (which is absolutely an excellent result for a chip of the early 80s!) Bye, ross |
|
![]() |
![]() |
#4 |
Registered User
Join Date: May 2001
Location: ?
Posts: 19,665
|
I achieved the "A1200 sound" just by removing the two filters underneath the board, C331 and C321. I was thinking about adding a controllable cutoff filter on those points, but I never did. Maybe a project for one day!
So the A600 for whatever reason has those extra filters on top of the lowpass filter it already has (the LED one all Amigas have). Why? No idea. More discussion on this subject here: http://eab.abime.net/showthread.php?t=57506 |
![]() |
![]() |
#5 |
Registered User
Join Date: Apr 2016
Location: Helsinki / Finland
Posts: 176
|
Yeah those C332 and C321 caps are those low pass filter caps from schematics above. By removing them I believe you will remove totally disabled low pass filter which is not exactly like A1200. AFAIK that low pass filter is for removing aliasing but don't know if it really matters in real life.
In any case beats me why Commodre had set it to 4.4 kHz. That is totally too low and cripples Paula's capabilities badly. Who cares if there are no aliasing when you cannot output frequencies higher than that! |
![]() |
![]() |
#6 |
Registered User
Join Date: May 2001
Location: ?
Posts: 19,665
|
I'll do some recordings to compare, I never bothered, since it sounds really good to me.
|
![]() |
![]() |
#7 |
Registered User
Join Date: Jun 2013
Location: Australia
Posts: 685
|
I’d have assumed it was simply because the Amigas after A600 are faster and the highs would sound like crap with the slower models.
Are you able to produce a high audio sine and hear that on it’s own? |
![]() |
![]() |
#8 |
Defendit numerus
Join Date: Mar 2017
Location: Crossing the Rubicon
Age: 54
Posts: 4,534
|
I do not think it has to do with machine speed but with the available Chip memory.
In OCS/ECS Amiga normally we have 0.5/1MB, on AGA 2MB. Paula do not have a fixed period output, so more high-frequency sampled audio (better quality) more Chip RAM is required. In old models i'm constrained to use low-frequency samples and then a filterer output is a better compromise... |
![]() |
![]() |
#9 | |
Registered User
Join Date: May 2001
Location: ?
Posts: 19,665
|
Quote:
I've been using my A600s for years without these two capacitors, and guess what, I started to notice that distortion. It doesn't always happens, but when it does, it's nasty. So hopefully an idea can come up here on what to replace those caps with, because it seems leaving them empty can be problematic. In al inked above thread, 8bitbubsy said they changed components with those found in an A1200, and it was an improvement. Would that be the solution? |
|
![]() |
![]() |
#10 |
-
Join Date: Jul 2003
Location: Helsinki / Finland
Age: 44
Posts: 9,957
|
I reckon installing the A1200 values in there are a good idea.
|
![]() |
![]() |
#11 |
Registered User
Join Date: Jun 2010
Location: PL?
Posts: 2,919
|
There is also problem with OPAMP's used in Amiga audio path - they are simply to slow to correctly convert current to voltage and do lowpass filtering - at least in first stage.
passive LC filter should precede OPAMP's - this would help a lot with slow OPAMP (or replace OPAMP to something significantly faster with decent GBW - capable to deal with few V square wave 3.5MHz), additional issue is with virtual analog ground and power supply quality also affect overall audio quality. |
![]() |
![]() |
#12 | |
Registered User
Join Date: May 2001
Location: ?
Posts: 19,665
|
Quote:
I also notice that the output level of every Amiga I have is really low, doesn't seem like proper line level. |
|
![]() |
![]() |
#13 | |
Registered User
Join Date: Jun 2010
Location: PL?
Posts: 2,919
|
Quote:
There was at least one thread with such modifications ( http://eab.abime.net/showthread.php?t=109051 ) but some problems would require different approach so new PCB (at least some piggyback/daughterboard for Paula, filtered virtual ground, low noise power supply, faster OPAMP and passive lowpass 1.79MHz filter). It is quite important to understand that Amiga was designed in first half of 80's past century and from this point we have significantly more knowledge about let say digital audio. Paula can sound better and also 14 bit mode can be done more accurate but this require lot of changes when compared to generic Commodore. |
|
![]() |
![]() |
#14 |
Registered User
Join Date: Sep 2009
Location: Norway
Posts: 1,725
|
Yes, the schematics are wrong. All A600's are ~4.4kHz (just like A500), and I think all A1200's are ~34kHz. Not sure about the very early boards.
|
![]() |
![]() |
#15 |
Registered User
Join Date: Jan 2004
Location: Yorkshire
Posts: 768
|
Looking at the schematics both the A600 and A1200 have the same 3khz 2nd order Sallen-Key active low pass filter in the 2nd stage, the only difference is in the 1st stage. It's the two 10K resistors in series, the 6800pf in parallel with the op amp and 3900pf to ground. I'm not exactly an expert but I've been toying with trying to improve audio on a MD2 for what seems like ages now.
Use this calculator if you want to modify the cut-off frequency: http://sim.okawa-denshi.jp/en/OPseikiLowkeisan.htm I just looked at the A500 schematics as well and they too have the same 3khz filter on the final stage. CD32 has it too for the audio coming out of Paula, A4000 as well... seems fairly consistent, probably all of them. If you want higher frequencies than 3khz to be output you'll need to modify that 2nd order filter. Last edited by Mick; 05 May 2023 at 22:06. |
![]() |
![]() |
#16 |
Registered User
Join Date: Jan 2004
Location: Yorkshire
Posts: 768
|
So did anyone try raising the low pass filter to 5khz or so for comparison?
This is the 3khz filter: ![]() Last edited by Mick; 24 June 2024 at 19:10. |
![]() |
![]() |
#17 |
Registered User
Join Date: Jan 2004
Location: Yorkshire
Posts: 768
|
I did some testing.
The files will apparently expire after 30 days but I didn't know how else to upload them without having to register somewhere. https://ufile.io/f/dvsba stock is with stock filter. 6k1hz is 6.1khz with a peak in the highs (due to limited selection of capacitors on my part) 15k9hz is 15.9khz totally flat. They don't sound all that different to me. Is it possible that Megaball only uses low frequency sounds? or does Paula not have a very high frequency range? the Mega Drive FM output is a night and day difference at 15khz (although not necessarily in a good way). Last edited by Mick; 06 June 2024 at 16:07. |
![]() |
![]() |
#18 | |
Registered User
Join Date: Jun 2010
Location: PL?
Posts: 2,919
|
Quote:
|
|
![]() |
![]() |
#19 | |
Registered User
Join Date: Sep 2006
Location: New Sandusky
Posts: 949
|
Quote:
The actual DAC has accuracy limits though so you get a falloff as you can see in the graph above, your Amiga is not going to actually output ultrasonic audio. =) |
|
![]() |
![]() |
#20 |
Registered User
Join Date: Sep 2009
Location: Norway
Posts: 1,725
|
Remember that the 2nd-stage filter (aka. the "LED" filter) can be controlled in software, and most games and software turn it off (it can't be turned off on A1000 and A500 rev 3, though).
If you want to sharpen the sound of Amigas, you need to modify the RC components of the 1st stage filter (6dB/oct RC low-pass). It's tuned to around 4-5kHz on all Amigas (except A1200 where the cutoff is above human hearing, resulting in very sharp sound). Don't just remove components though, like some people do to bypass the filter. This is wrong, as it will result in the waveform not being properly reconstructed after the PWM-based volume stage. |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Modified Audio Filter | CHRIS-F | support.Hardware | 11 | 29 January 2017 23:42 |
Tools for set FILTER OFF audio | jhonny82 | support.Games | 14 | 22 July 2015 16:06 |
A600 Audio Filter Always On! | h0ffman | support.Hardware | 15 | 08 September 2013 22:29 |
Feature request (Audio Filter) | DaveMB | support.FS-UAE | 16 | 20 August 2013 21:53 |
Audio filter force on/off switch | TomCrazy | Hardware mods | 12 | 02 November 2012 14:18 |
|
|