jiiteepee
Headphoneus Supremus
- Joined
- Apr 5, 2005
- Posts
- 1,606
- Likes
- 62
Hello!
THIS THREAD IS 'BOUT THE OLD VERSION OF RIAA EQ SOFTWARE. NEW, IMPROVED VERSION IS AVAILABLE ON ANOTHER THREAD.
Well, after many tries w/ not so good results in using EQ plugins for RIAA compensation, I have now started implementing a solution of my own ... a RIAA reproduction filter to be used when turntable is connected into soundcard without hardware RIAA stage in signal path.
All I can say so far, is that the results I get are really qood but, since I have only one set of hardware to try it with, I would like you to evaluate this too. This filter,
http://img476.imageshack.us/img476/9...ascreendr8.png
(
.. Sorry 'bout the visual outlook but ... don't laugh, it should work)
which I have linked below, is prepared only for you. It is optimized for 44.1 kHz audio (any bit depth can be used) and it can be used through Cycling74 Max/MSP runtime enviroment only. ASIO, MME, DS, etc. are supported as well as Windows XP and MAC OS/X 10.3.9-> (there is a runtime for both systems available). For this "evaluation" version, I have included a rumble filter (Subsonic) w/ ability to set the cutoff frequency (5-30Hz) and Q (0.1-1.41). It's allways ON and not very well implemented (see below).
EDIT:
As mentioned, this filter is for 44.1kHz data only. What it means is that the mathematical model is matched for amount of this much samples (sample accurate processing). Biquad method used in this filter uses three samples to get the new output value calculated (current sample and two previous samples). What happens if you set samplerate to 48kHz as for an example ... samples becomes processed wrong --> quality becomes bad.
Here are the needed software:
- "RIAA Filter (for 44.1kHz).rar" (~16kB) NOTE: there is a 48kHz version w/ recording capability linked in post #7.
Mirror 1
Mirror 2
NOTE: Filename may become changed by the file service providers system.
-- 3 files included (2 pictures and the filter .pat file)
"Max/MSP 4.6.2 Runtime" enviroment (PC/MAC) (~4.5MB) -
Setting everything up (Windows):
- connect the turntable into PC through a flat pre-amplifier (no RIAA satage in signal path)
- connect your output device (receiver/amplifier/active speakers/headphones)
- install the Max/MSP runtime enviroment
- extract the "RIAA Filter (for 44.1kHz).rar" to your harddisk
Start the RIAA Filter program either by
- starting the runtime enviroment and Open the "RIAA Filter (for 44.1kHz).pat" or
- double-clicking the "RIAA Filter (for 44.1kHz).pat" (through Windows Explorer -> .pat extention should be associated to Max/MSP runtime then)
In "RIAA Filter (for 44.1kHz)" screen:
- set I/O devices; ASIO recommended (if no sound, remember check settings in mixer software)
- adjust the Subsonic filter by dragging w/ mouse (Hz = 25Hz and Q = 0.71 are good to start from) (see below)
- adjust Gain to somewhere near the 0dB mark (128)
- press the Play/Stop button to enable the playback through filter
NOTE: If you can hear audio when Play/Stop is set "OFF" (there should be total silence) then you need to set something in your mixer softwre (maybe monitoring OFF, mute something, etc.) otherwise the unfiltered signal is summed into playback --> brighten sound.
Some notes:
Subsonic filter:
It's low order highpass filter so the cut is not very sharp ... you can use 25-30Hz as cutoff frequency w/o loosing much from above the 20Hz frequencies.
Example on how # of orders effects (this is lowpass filter) :
http://www.kwon3d.com/theory/filteri..._lpass_f02.gif
RIAA filter:
The original filter coefficients (15 decimal accuracy) gives quite accurate de-emphasis curve (±0.23dB) even it's a 2nd order filter (4th order filter would give ±0.0006dB) .. as the Max/MSP enviroment seem to scale and round the given value into 6 decimal value, it may have some negative effect on accuracy. I have compared the orignal 15 decimal data against rounded 7, 6, 5, 4, 3, and 2 (http://img134.imageshack.us/img134/4356/dectestxv4.png) decimal data and those didn't differ very much by the results (sound/frequency response curve) until you're under 5 decomals. Some other results from measurements:
Phase:
http://img341.imageshack.us/img341/3000/phase441cu2.png
Harmonic distortion:
http://img124.imageshack.us/img124/1...dist441yx5.png
Software:
Gain, and Subsonic controllers resets to "0" when filter is loaded into runtime enviroment so, all these needs to be set every time after filter is loaded otherwise you get bad quality audio if at all. If you get rattle in audio, just toggle the Play/Stop or reassign your I/Os. Hmm.. I hope there are no bugs
since I can't test (or fix in realtime) because of I'm still using W2k and I do not have Max/MSP which also needs least XP being installed (even the runtime won't get installed in W2k SP4).
Hardware:
You need some pre-amplification for turntable output (in most cases) to get signal levels good enough for soundcard input. As you can gain the signal +17dB software wise, it's possible that you can get everything working w/o additional pre-amplifier (I have tried this and it seem to work well but, it is card dependent ofcourse) but, remember that the best input impedance for cardridge is normally 47kΩ (-100kΩ). Pre-amplifier is recommended in any case.
I beg you not to turn this thread into "hardware vs software RIAA". I just wish you could try this filter and comment the results you get. If you don't like the result then just say it and it also would be better if you could specify the reason for your opinion (I need a lot of all kind of information).
jiitee
P.S.
In generally, when trying this RIAA Filter w/o pre-amp and you can't get levels high enough for decent playback then you could also try this:
- download the Max/MSP Trial software
- open the Filter into it, and switch to Edit mode
- drag those objects (background image, etc.) to get those two biquad~objects available
http://img231.imageshack.us/img231/6205/riaapatnn8.png
There are five numerical values stored in those biquad~ boxes, just after the ADC~ object, for both left and right channels ... by multiplying those 3 first values by
- 5 you'll get ~+14dB more gain from filter (filter gain is then ~27dB),
- 10 you'll get ~+20dB (filter gain is then ~+33dB),
- etc.,
... so, If you copy these (these are for 48kHz only)
biquad~ 10, -7.555521, -1.646257113 -1.7327655 0.734553444
values and paste them over those old values in those biquad~ boxes (check also that everything matches there) ... do you start get better output levels? If results are not good yet then just multiply those original w/ 15 etc., or if you start getting distortion then use smaller multiplier. NOTE: Adding gain worses the Harmonic Distortion level but, w/ +33dB gain it should still be well below -100dB.
You should also be able to save the changes you made (the Max/MSP trial is valid for 30 days but, after that you should be able to use the fixed Filter w/ Max/MSP Runtime w/o limitations).
THIS THREAD IS 'BOUT THE OLD VERSION OF RIAA EQ SOFTWARE. NEW, IMPROVED VERSION IS AVAILABLE ON ANOTHER THREAD.
Well, after many tries w/ not so good results in using EQ plugins for RIAA compensation, I have now started implementing a solution of my own ... a RIAA reproduction filter to be used when turntable is connected into soundcard without hardware RIAA stage in signal path.
All I can say so far, is that the results I get are really qood but, since I have only one set of hardware to try it with, I would like you to evaluate this too. This filter,
http://img476.imageshack.us/img476/9...ascreendr8.png
(

which I have linked below, is prepared only for you. It is optimized for 44.1 kHz audio (any bit depth can be used) and it can be used through Cycling74 Max/MSP runtime enviroment only. ASIO, MME, DS, etc. are supported as well as Windows XP and MAC OS/X 10.3.9-> (there is a runtime for both systems available). For this "evaluation" version, I have included a rumble filter (Subsonic) w/ ability to set the cutoff frequency (5-30Hz) and Q (0.1-1.41). It's allways ON and not very well implemented (see below).
EDIT:
As mentioned, this filter is for 44.1kHz data only. What it means is that the mathematical model is matched for amount of this much samples (sample accurate processing). Biquad method used in this filter uses three samples to get the new output value calculated (current sample and two previous samples). What happens if you set samplerate to 48kHz as for an example ... samples becomes processed wrong --> quality becomes bad.
Here are the needed software:
- "RIAA Filter (for 44.1kHz).rar" (~16kB) NOTE: there is a 48kHz version w/ recording capability linked in post #7.
Mirror 1
Mirror 2
NOTE: Filename may become changed by the file service providers system.
-- 3 files included (2 pictures and the filter .pat file)
"Max/MSP 4.6.2 Runtime" enviroment (PC/MAC) (~4.5MB) -
Setting everything up (Windows):
- connect the turntable into PC through a flat pre-amplifier (no RIAA satage in signal path)
- connect your output device (receiver/amplifier/active speakers/headphones)
- install the Max/MSP runtime enviroment
- extract the "RIAA Filter (for 44.1kHz).rar" to your harddisk
Start the RIAA Filter program either by
- starting the runtime enviroment and Open the "RIAA Filter (for 44.1kHz).pat" or
- double-clicking the "RIAA Filter (for 44.1kHz).pat" (through Windows Explorer -> .pat extention should be associated to Max/MSP runtime then)
In "RIAA Filter (for 44.1kHz)" screen:
- set I/O devices; ASIO recommended (if no sound, remember check settings in mixer software)
- adjust the Subsonic filter by dragging w/ mouse (Hz = 25Hz and Q = 0.71 are good to start from) (see below)
- adjust Gain to somewhere near the 0dB mark (128)
- press the Play/Stop button to enable the playback through filter
NOTE: If you can hear audio when Play/Stop is set "OFF" (there should be total silence) then you need to set something in your mixer softwre (maybe monitoring OFF, mute something, etc.) otherwise the unfiltered signal is summed into playback --> brighten sound.
Some notes:
Subsonic filter:
It's low order highpass filter so the cut is not very sharp ... you can use 25-30Hz as cutoff frequency w/o loosing much from above the 20Hz frequencies.
Example on how # of orders effects (this is lowpass filter) :
http://www.kwon3d.com/theory/filteri..._lpass_f02.gif
RIAA filter:
The original filter coefficients (15 decimal accuracy) gives quite accurate de-emphasis curve (±0.23dB) even it's a 2nd order filter (4th order filter would give ±0.0006dB) .. as the Max/MSP enviroment seem to scale and round the given value into 6 decimal value, it may have some negative effect on accuracy. I have compared the orignal 15 decimal data against rounded 7, 6, 5, 4, 3, and 2 (http://img134.imageshack.us/img134/4356/dectestxv4.png) decimal data and those didn't differ very much by the results (sound/frequency response curve) until you're under 5 decomals. Some other results from measurements:
Phase:
http://img341.imageshack.us/img341/3000/phase441cu2.png
Harmonic distortion:
http://img124.imageshack.us/img124/1...dist441yx5.png
Software:
Gain, and Subsonic controllers resets to "0" when filter is loaded into runtime enviroment so, all these needs to be set every time after filter is loaded otherwise you get bad quality audio if at all. If you get rattle in audio, just toggle the Play/Stop or reassign your I/Os. Hmm.. I hope there are no bugs
since I can't test (or fix in realtime) because of I'm still using W2k and I do not have Max/MSP which also needs least XP being installed (even the runtime won't get installed in W2k SP4).
Hardware:
You need some pre-amplification for turntable output (in most cases) to get signal levels good enough for soundcard input. As you can gain the signal +17dB software wise, it's possible that you can get everything working w/o additional pre-amplifier (I have tried this and it seem to work well but, it is card dependent ofcourse) but, remember that the best input impedance for cardridge is normally 47kΩ (-100kΩ). Pre-amplifier is recommended in any case.
I beg you not to turn this thread into "hardware vs software RIAA". I just wish you could try this filter and comment the results you get. If you don't like the result then just say it and it also would be better if you could specify the reason for your opinion (I need a lot of all kind of information).
jiitee
P.S.
In generally, when trying this RIAA Filter w/o pre-amp and you can't get levels high enough for decent playback then you could also try this:
- download the Max/MSP Trial software
- open the Filter into it, and switch to Edit mode
- drag those objects (background image, etc.) to get those two biquad~objects available
http://img231.imageshack.us/img231/6205/riaapatnn8.png
There are five numerical values stored in those biquad~ boxes, just after the ADC~ object, for both left and right channels ... by multiplying those 3 first values by
- 5 you'll get ~+14dB more gain from filter (filter gain is then ~27dB),
- 10 you'll get ~+20dB (filter gain is then ~+33dB),
- etc.,
... so, If you copy these (these are for 48kHz only)
biquad~ 10, -7.555521, -1.646257113 -1.7327655 0.734553444
values and paste them over those old values in those biquad~ boxes (check also that everything matches there) ... do you start get better output levels? If results are not good yet then just multiply those original w/ 15 etc., or if you start getting distortion then use smaller multiplier. NOTE: Adding gain worses the Harmonic Distortion level but, w/ +33dB gain it should still be well below -100dB.
You should also be able to save the changes you made (the Max/MSP trial is valid for 30 days but, after that you should be able to use the fixed Filter w/ Max/MSP Runtime w/o limitations).