SuperEQ

From Avisynth wiki
(Difference between revisions)
Jump to: navigation, search
m (clarify values as integers (for file) & float for script arguments)
(clarify frequency bands & etc; add links)
Line 1: Line 1:
{{Template:Func2Def|SuperEq(clip, string filename)|SuperEq(clip, float ''band1'' [, float ''band2'', ..., float ''band18''])}}
+
{{Template:Func2Def|SuperEQ(clip, string filename)|SuperEQ(clip, float ''band1'' [, float ''band2'', ..., float ''band18''])}}
  
 
'''Parameter:'''
 
'''Parameter:'''
Line 12: Line 12:
  
  
Shibatch Super Equalizer is a graphic and parametric equalizer plugin for winamp. This plugin uses 16383th order FIR filter with FFT algorithm. Its equalization is very precise. Equalization setting can be done for each channel separately. SuperEQ is originally written by [http://shibatch.sourceforge.net/ Naoki Shibata].
+
'''Shibatch Super Equalizer''' is a graphic equalizer, originally created as plugin for Winamp. It was originally written by [http://shibatch.sourceforge.net/ Naoki Shibata]. SuperEQ uses 16383th order FIR filter with FFT algorithm. Its equalization is very precise.  
  
SuperEQ can accept a [http://www.foobar2000.org foobar2k] equalizer setting (.feq) file.  The equalizer can be found in foobar's DSPManager, and settings are adjusted and saved from there as well.
+
Note that unlike traditional equalizers, there is very little [[wikipedia:Roll-off|roll-off]] or overlap between the bands; see the spectrum analysis images below.
 
+
An .feq file is a text file with a positive or negative integer on each line.
+
Each value controls the amplification in decibels of 18 frequency bands.
+
The boundaries between bands lie on the following frequencies:
+
  
 +
The 18 '''SuperEQ''' bands cover the following frequency ranges:
 
{| border="1"  style="text-align:right"
 
{| border="1"  style="text-align:right"
!Band #!!Frequency
+
!Band #!!''f'' (low)!!''f'' (high)
 
|-  
 
|-  
| 1|| 65 Hz
+
| 1||0 Hz|| 65 Hz
 
|-  
 
|-  
|2|| 92 Hz
+
|2|| 65 Hz|| 92 Hz
 
|-  
 
|-  
|3|| 131 Hz
+
|3|| 92 Hz|| 131 Hz
 
|-  
 
|-  
|4|| 185 Hz
+
|4|| 131 Hz|| 185 Hz
 
|-  
 
|-  
|5|| 262 Hz
+
|5|| 185 Hz|| 262 Hz
 
|-  
 
|-  
|6|| 370 Hz
+
|6|| 262 Hz|| 370 Hz
 
|-  
 
|-  
|7|| 523 Hz
+
|7|| 370 Hz|| 523 Hz
 
|-  
 
|-  
|8|| 740 Hz
+
|8|| 523 Hz|| 740 Hz
 
|-  
 
|-  
|9|| 1046 Hz
+
|9|| 740 Hz|| 1046 Hz
 
|-  
 
|-  
|10|| 1480 Hz
+
|10|| 1046 Hz|| 1480 Hz
 
|-  
 
|-  
|11|| 2093 Hz
+
|11|| 1480 Hz|| 2093 Hz
 
|-  
 
|-  
|12|| 2960 Hz
+
|12|| 2093 Hz|| 2960 Hz
 
|-  
 
|-  
|13|| 4186 Hz
+
|13|| 2960 Hz|| 4186 Hz
 
|-  
 
|-  
|14|| 5920 Hz
+
|14|| 4186 Hz|| 5920 Hz
 
|-  
 
|-  
|15|| 8372 Hz
+
|15|| 5920 Hz|| 8372 Hz
 
|-  
 
|-  
|16|| 11839 Hz
+
|16|| 8372 Hz||11839 Hz
 
|-  
 
|-  
|17|| 16744 Hz
+
|17||11839 Hz||16744 Hz
 
|}
 
|}
 
(adapted from [http://avisynth2.cvs.sourceforge.net/viewvc/avisynth2/avisynth/src/audio/supereq.h?view=markup#l197 avisynth/src/audio/supereq.h])
 
(adapted from [http://avisynth2.cvs.sourceforge.net/viewvc/avisynth2/avisynth/src/audio/supereq.h?view=markup#l197 avisynth/src/audio/supereq.h])
 +
<!-- For example, the first line of the file controls 0 to 65 Hz, and the sixth controls 262 to 370 Hz. -->
 +
<!-- These frequencies are the frequencies of C and F# in the modern equal tempered scales.
 +
The lowest is the C two octaves below middle C. -->
  
For example, the first line of the file controls 0 to 65 Hz, and the sixth controls 262 to 370 Hz.
 
  
These frequencies are the frequencies of C and F# in the modern equal tempered scales.
+
SuperEQ can accept a [http://www.foobar2000.org foobar2k] equalizer '''Preset''' (.feq) file. Foobar's equalizer can be found in the [http://wiki.hydrogenaud.io/index.php?title=Foobar2000:Preferences:Playback:DSP_Manager DSPManager], and presets are adjusted and saved from there as well.
The lowest is the C two octaves below middle C.
+
  
 +
An .feq file is a text file with a positive or negative integer on each line. No extra characters are allowed on the line.
 +
Each value controls the amplification in decibels over one frequency band. See [[Loudness.feq|here]] for an sample file.
  
 
Preset files can be found in your \AviSynth25\Examples folder  (Equalizer Presets.zip), or may be downloaded by searching the Web for "foobar2000 presets."  
 
Preset files can be found in your \AviSynth25\Examples folder  (Equalizer Presets.zip), or may be downloaded by searching the Web for "foobar2000 presets."  
Line 76: Line 76:
  
  
In v2.60, a custom band setting (band1, band2, ...) is added to allow all 18 bands to be set within your script (instead of within your preset file). The values are specified in decibels (integer or floating point).
+
From Avisynth version 2.60, '''band gain arguments''' allow all 18 bands to be set within your script, instead of requiring a preset file. The values are specified in [[wikipedia:Decibel|decibels]] (integer or floating point).
  
 
'''Example 2:''' ''Boost midrange (speech) using band arguments''
 
'''Example 2:''' ''Boost midrange (speech) using band arguments''

Revision as of 01:29, 1 September 2015

SuperEQ(clip, string filename)
SuperEQ(clip, float band1 [, float band2, ..., float band18])

Parameter:

filename The foobar2k equalizer preset file to apply.
band1-band18 Allows to set all bands within your script (in dB).


Shibatch Super Equalizer is a graphic equalizer, originally created as plugin for Winamp. It was originally written by Naoki Shibata. SuperEQ uses 16383th order FIR filter with FFT algorithm. Its equalization is very precise.

Note that unlike traditional equalizers, there is very little roll-off or overlap between the bands; see the spectrum analysis images below.

The 18 SuperEQ bands cover the following frequency ranges:

Band # f (low) f (high)
1 0 Hz 65 Hz
2 65 Hz 92 Hz
3 92 Hz 131 Hz
4 131 Hz 185 Hz
5 185 Hz 262 Hz
6 262 Hz 370 Hz
7 370 Hz 523 Hz
8 523 Hz 740 Hz
9 740 Hz 1046 Hz
10 1046 Hz 1480 Hz
11 1480 Hz 2093 Hz
12 2093 Hz 2960 Hz
13 2960 Hz 4186 Hz
14 4186 Hz 5920 Hz
15 5920 Hz 8372 Hz
16 8372 Hz 11839 Hz
17 11839 Hz 16744 Hz

(adapted from avisynth/src/audio/supereq.h)


SuperEQ can accept a foobar2k equalizer Preset (.feq) file. Foobar's equalizer can be found in the DSPManager, and presets are adjusted and saved from there as well.

An .feq file is a text file with a positive or negative integer on each line. No extra characters are allowed on the line. Each value controls the amplification in decibels over one frequency band. See here for an sample file.

Preset files can be found in your \AviSynth25\Examples folder (Equalizer Presets.zip), or may be downloaded by searching the Web for "foobar2000 presets."

Example 1: Apply "Loudness.feq" filter from a Presets file

SuperEq("C:\Equalizer Presets\Loudness.feq")

SuperEQ-loudness-624x534.png

Audacity spectrum analysis


From Avisynth version 2.60, band gain arguments allow all 18 bands to be set within your script, instead of requiring a preset file. The values are specified in decibels (integer or floating point).

Example 2: Boost midrange (speech) using band arguments

ConvertAudioToFloat  
SuperEQ(
\   0,  [*    65 *]
\   0,  [*    92 *]
\   0,  [*   131 *]
\   0,  [*   185 *]
\   0,  [*   262 *]
\   0,  [*   370 *]
\   0,  [*   523 *]
\   5,  [*   740 *]
\  10,  [*  1046 *]
\  10,  [*  1480 *]
\  10,  [*  2093 *]
\   5,  [*  2960 *]
\   0,  [*  4186 *]
\   0,  [*  5920 *]
\   0,  [*  8372 *]
\   0,  [* 11839 *]
\   0   [* 16744 *]
\ )
ConvertAudioTo16bit

SuperEQ-midboost-624x534.png

Audacity spectrum analysis


Requirements:

This plugin is optimized for processors which have cache equal to or greater than 128k bytes (16383*2*sizeof(float) = 128k). This plugin won't work efficiently with K6 series processors.

Changes:

v2.60 Added custom band setting to allow all 16 bands to be set from script.
v2.54 Initial Release.

Some parts of SuperEQ are:
Copyright © Naoki Shibata.

Other parts are:
Copyright © 2001-2003, Peter Pawlowski All rights reserved.

Personal tools