@@ -6,187 +6,187 @@ public static class EqualizerPresets
66{
77 public static Dictionary < string , List < EqualizerBand > > GetAllPresets ( )
88 {
9- return new Dictionary < string , List < EqualizerBand > >
9+ return new ( )
1010 {
11- { "Default" , DefaultEq ( ) } ,
12- { "Metal" , MetalEq ( ) } ,
13- { "HipHop" , HipHopEq ( ) } ,
14- { "Acoustic" , AcousticEq ( ) } ,
15- { "Jazz" , JazzEq ( ) } ,
16- { "Classical" , ClassicalEq ( ) } ,
17- { "Vocal Boost" , VocalBoostEq ( ) } ,
18- { "Bass Boost" , BassBoostEq ( ) } ,
19- { "Pop" , PopEq ( ) } ,
20- { "Rock" , RockEq ( ) } ,
21- { "Party" , PartyEq ( ) } ,
22- { "Rap" , RapEq ( ) } ,
23- { "Live" , LiveEq ( ) } ,
24- { "Large Hall" , LargeHallEq ( ) } ,
25- { "JPop" , JPopEq ( ) } ,
26- { "EDM" , EdmEq ( ) } ,
27- { "Podcast" , PodcastEq ( ) } ,
28- { "Nightcore" , NightcoreEq ( ) }
11+ [ "Default" ] = DefaultEq ( ) ,
12+ [ "Metal" ] = MetalEq ( ) ,
13+ [ "HipHop" ] = HipHopEq ( ) ,
14+ [ "Acoustic" ] = AcousticEq ( ) ,
15+ [ "Jazz" ] = JazzEq ( ) ,
16+ [ "Classical" ] = ClassicalEq ( ) ,
17+ [ "Vocal Boost" ] = VocalBoostEq ( ) ,
18+ [ "Bass Boost" ] = BassBoostEq ( ) ,
19+ [ "Pop" ] = PopEq ( ) ,
20+ [ "Rock" ] = RockEq ( ) ,
21+ [ "Party" ] = PartyEq ( ) ,
22+ [ "Rap" ] = RapEq ( ) ,
23+ [ "Live" ] = LiveEq ( ) ,
24+ [ "Large Hall" ] = LargeHallEq ( ) ,
25+ [ "JPop" ] = JPopEq ( ) ,
26+ [ "EDM" ] = EdmEq ( ) ,
27+ [ "Podcast" ] = PodcastEq ( ) ,
28+ [ "Nightcore" ] = NightcoreEq ( ) ,
2929 } ;
3030 }
3131
32- public static List < EqualizerBand > DefaultEq ( ) => new ( )
33- {
32+ public static List < EqualizerBand > DefaultEq ( ) =>
33+ [
3434 new ( FilterType . Peaking , 1000 , 6 , 1.4f ) ,
3535 new ( FilterType . LowShelf , 250 , - 10 , 0.7f ) ,
3636 new ( FilterType . HighShelf , 5000 , 3 , 0.7f ) ,
3737 new ( FilterType . BandPass , 2000 , 0 , 3.0f ) ,
3838 new ( FilterType . Notch , 500 , 0 , 2.0f ) ,
3939 new ( FilterType . LowPass , 150 , 0 , 0.7f ) ,
40- new ( FilterType . HighPass , 10000 , 0 , 0.7f )
41- } ;
40+ new ( FilterType . HighPass , 10000 , 0 , 0.7f ) ,
41+ ] ;
4242
43- public static List < EqualizerBand > MetalEq ( ) => new ( )
44- {
43+ public static List < EqualizerBand > MetalEq ( ) =>
44+ [
4545 new ( FilterType . Peaking , 80 , 9 , 2.0f ) ,
4646 new ( FilterType . Peaking , 250 , 3 , 1.4f ) ,
4747 new ( FilterType . Peaking , 500 , - 3 , 1.4f ) ,
4848 new ( FilterType . Peaking , 1000 , - 2 , 1.4f ) ,
4949 new ( FilterType . Peaking , 4000 , 4 , 1.4f ) ,
5050 new ( FilterType . Peaking , 8000 , 6 , 1.4f ) ,
51- new ( FilterType . HighShelf , 12000 , 4 , 0.7f )
52- } ;
51+ new ( FilterType . HighShelf , 12000 , 4 , 0.7f ) ,
52+ ] ;
5353
54- public static List < EqualizerBand > HipHopEq ( ) => new ( )
55- {
54+ public static List < EqualizerBand > HipHopEq ( ) =>
55+ [
5656 new ( FilterType . LowShelf , 80 , 6 , 0.7f ) ,
5757 new ( FilterType . Peaking , 100 , 4 , 1.4f ) ,
5858 new ( FilterType . Peaking , 300 , - 2 , 1.4f ) ,
5959 new ( FilterType . Peaking , 1000 , 1 , 1.4f ) ,
6060 new ( FilterType . Peaking , 3000 , 2 , 1.4f ) ,
61- new ( FilterType . HighShelf , 8000 , 3 , 0.7f )
62- } ;
61+ new ( FilterType . HighShelf , 8000 , 3 , 0.7f ) ,
62+ ] ;
6363
64- public static List < EqualizerBand > AcousticEq ( ) => new ( )
65- {
64+ public static List < EqualizerBand > AcousticEq ( ) =>
65+ [
6666 new ( FilterType . HighPass , 80 , 0 , 0.7f ) ,
6767 new ( FilterType . Peaking , 200 , - 2 , 1.4f ) ,
6868 new ( FilterType . Peaking , 3000 , 2 , 1.4f ) ,
6969 new ( FilterType . Peaking , 5000 , 3 , 1.4f ) ,
70- new ( FilterType . HighShelf , 10000 , 2 , 0.7f )
71- } ;
70+ new ( FilterType . HighShelf , 10000 , 2 , 0.7f ) ,
71+ ] ;
7272
73- public static List < EqualizerBand > JazzEq ( ) => new ( )
74- {
73+ public static List < EqualizerBand > JazzEq ( ) =>
74+ [
7575 new ( FilterType . Peaking , 60 , 2 , 1.4f ) ,
7676 new ( FilterType . Peaking , 400 , - 2 , 1.4f ) ,
7777 new ( FilterType . Peaking , 1000 , 1 , 1.4f ) ,
7878 new ( FilterType . Peaking , 5000 , 2 , 1.4f ) ,
79- new ( FilterType . HighShelf , 12000 , 1 , 0.7f )
80- } ;
79+ new ( FilterType . HighShelf , 12000 , 1 , 0.7f ) ,
80+ ] ;
8181
82- public static List < EqualizerBand > ClassicalEq ( ) => new ( )
83- {
82+ public static List < EqualizerBand > ClassicalEq ( ) =>
83+ [
8484 new ( FilterType . HighPass , 40 , 0 , 0.7f ) ,
8585 new ( FilterType . Peaking , 250 , - 1 , 1.4f ) ,
8686 new ( FilterType . Peaking , 4000 , 1 , 2.0f ) ,
87- new ( FilterType . HighShelf , 10000 , 1 , 0.7f )
88- } ;
87+ new ( FilterType . HighShelf , 10000 , 1 , 0.7f ) ,
88+ ] ;
8989
90- public static List < EqualizerBand > VocalBoostEq ( ) => new ( )
91- {
90+ public static List < EqualizerBand > VocalBoostEq ( ) =>
91+ [
9292 new ( FilterType . HighPass , 100 , 0 , 0.7f ) ,
9393 new ( FilterType . Peaking , 250 , - 2 , 1.4f ) ,
9494 new ( FilterType . Peaking , 3000 , 3 , 1.4f ) ,
9595 new ( FilterType . Peaking , 5000 , 2 , 1.4f ) ,
96- new ( FilterType . HighShelf , 10000 , 1 , 0.7f )
97- } ;
96+ new ( FilterType . HighShelf , 10000 , 1 , 0.7f ) ,
97+ ] ;
9898
99- public static List < EqualizerBand > BassBoostEq ( ) => new ( )
100- {
99+ public static List < EqualizerBand > BassBoostEq ( ) =>
100+ [
101101 new ( FilterType . LowShelf , 100 , 6 , 0.7f ) ,
102- new ( FilterType . Peaking , 300 , - 3 , 1.4f )
103- } ;
102+ new ( FilterType . Peaking , 300 , - 3 , 1.4f ) ,
103+ ] ;
104104
105- public static List < EqualizerBand > PopEq ( ) => new ( )
106- {
105+ public static List < EqualizerBand > PopEq ( ) =>
106+ [
107107 new ( FilterType . Peaking , 100 , 3 , 1.4f ) ,
108108 new ( FilterType . Peaking , 300 , - 2 , 1.4f ) ,
109109 new ( FilterType . Peaking , 1000 , 1 , 1.4f ) ,
110110 new ( FilterType . Peaking , 3000 , 2 , 1.4f ) ,
111111 new ( FilterType . Peaking , 8000 , 2 , 1.4f ) ,
112- new ( FilterType . HighShelf , 12000 , 1 , 0.7f )
113- } ;
112+ new ( FilterType . HighShelf , 12000 , 1 , 0.7f ) ,
113+ ] ;
114114
115- public static List < EqualizerBand > RockEq ( ) => new ( )
116- {
115+ public static List < EqualizerBand > RockEq ( ) =>
116+ [
117117 new ( FilterType . Peaking , 80 , 4 , 2.0f ) ,
118118 new ( FilterType . Peaking , 500 , - 2 , 1.4f ) ,
119119 new ( FilterType . Peaking , 1000 , - 1 , 1.4f ) ,
120120 new ( FilterType . Peaking , 4000 , 3 , 1.4f ) ,
121- new ( FilterType . Peaking , 8000 , 2 , 1.4f )
122- } ;
121+ new ( FilterType . Peaking , 8000 , 2 , 1.4f ) ,
122+ ] ;
123123
124- public static List < EqualizerBand > PartyEq ( ) => new ( )
125- {
124+ public static List < EqualizerBand > PartyEq ( ) =>
125+ [
126126 new ( FilterType . LowShelf , 100 , 5 , 0.7f ) ,
127127 new ( FilterType . Peaking , 300 , - 2 , 1.4f ) ,
128128 new ( FilterType . Peaking , 4000 , 2 , 1.4f ) ,
129- new ( FilterType . HighShelf , 10000 , 4 , 0.7f )
130- } ;
129+ new ( FilterType . HighShelf , 10000 , 4 , 0.7f ) ,
130+ ] ;
131131
132- public static List < EqualizerBand > RapEq ( ) => new ( )
133- {
132+ public static List < EqualizerBand > RapEq ( ) =>
133+ [
134134 new ( FilterType . LowShelf , 80 , 7 , 0.7f ) ,
135135 new ( FilterType . Peaking , 100 , 3 , 1.4f ) ,
136136 new ( FilterType . Peaking , 300 , - 3 , 1.4f ) ,
137137 new ( FilterType . Peaking , 3000 , 3 , 1.4f ) ,
138- new ( FilterType . HighShelf , 8000 , 2 , 0.7f )
139- } ;
138+ new ( FilterType . HighShelf , 8000 , 2 , 0.7f ) ,
139+ ] ;
140140
141- public static List < EqualizerBand > LiveEq ( ) => new ( )
142- {
141+ public static List < EqualizerBand > LiveEq ( ) =>
142+ [
143143 new ( FilterType . HighPass , 60 , 0 , 0.7f ) ,
144144 new ( FilterType . Peaking , 250 , - 3 , 1.4f ) ,
145145 new ( FilterType . Peaking , 4000 , 2 , 1.4f ) ,
146- new ( FilterType . Peaking , 8000 , - 2 , 1.4f )
147- } ;
146+ new ( FilterType . Peaking , 8000 , - 2 , 1.4f ) ,
147+ ] ;
148148
149- public static List < EqualizerBand > LargeHallEq ( ) => new ( )
150- {
149+ public static List < EqualizerBand > LargeHallEq ( ) =>
150+ [
151151 new ( FilterType . HighPass , 50 , 0 , 0.7f ) ,
152152 new ( FilterType . Peaking , 200 , - 4 , 1.4f ) ,
153153 new ( FilterType . Peaking , 4000 , 2 , 1.4f ) ,
154- new ( FilterType . Peaking , 8000 , - 1 , 1.4f )
155- } ;
154+ new ( FilterType . Peaking , 8000 , - 1 , 1.4f ) ,
155+ ] ;
156156
157- public static List < EqualizerBand > JPopEq ( ) => new ( )
158- {
157+ public static List < EqualizerBand > JPopEq ( ) =>
158+ [
159159 new ( FilterType . Peaking , 100 , 2 , 1.4f ) ,
160160 new ( FilterType . Peaking , 300 , - 2 , 1.4f ) ,
161161 new ( FilterType . Peaking , 1000 , 1 , 1.4f ) ,
162162 new ( FilterType . Peaking , 3000 , 3 , 1.4f ) ,
163163 new ( FilterType . Peaking , 6000 , 2 , 2.0f ) ,
164- new ( FilterType . HighShelf , 12000 , 2 , 0.7f )
165- } ;
164+ new ( FilterType . HighShelf , 12000 , 2 , 0.7f ) ,
165+ ] ;
166166
167- public static List < EqualizerBand > EdmEq ( ) => new ( )
168- {
167+ public static List < EqualizerBand > EdmEq ( ) =>
168+ [
169169 new ( FilterType . LowShelf , 60 , 4 , 0.7f ) ,
170170 new ( FilterType . Peaking , 100 , 3 , 1.4f ) ,
171171 new ( FilterType . Peaking , 300 , - 2 , 1.4f ) ,
172172 new ( FilterType . Peaking , 5000 , 2 , 2.0f ) ,
173- new ( FilterType . HighShelf , 10000 , 3 , 0.7f )
174- } ;
173+ new ( FilterType . HighShelf , 10000 , 3 , 0.7f ) ,
174+ ] ;
175175
176- public static List < EqualizerBand > PodcastEq ( ) => new ( )
177- {
176+ public static List < EqualizerBand > PodcastEq ( ) =>
177+ [
178178 new ( FilterType . HighPass , 100 , 0 , 0.7f ) ,
179179 new ( FilterType . Peaking , 250 , - 3 , 1.4f ) ,
180180 new ( FilterType . Peaking , 4000 , 2 , 1.4f ) ,
181- new ( FilterType . Peaking , 8000 , - 2 , 1.4f )
182- } ;
181+ new ( FilterType . Peaking , 8000 , - 2 , 1.4f ) ,
182+ ] ;
183183
184- public static List < EqualizerBand > NightcoreEq ( ) => new ( )
185- {
184+ public static List < EqualizerBand > NightcoreEq ( ) =>
185+ [
186186 new ( FilterType . Peaking , 100 , 2 , 1.4f ) ,
187187 new ( FilterType . Peaking , 300 , - 2 , 1.4f ) ,
188188 new ( FilterType . Peaking , 3000 , 3 , 1.4f ) ,
189189 new ( FilterType . Peaking , 6000 , 2 , 2.0f ) ,
190- new ( FilterType . HighShelf , 10000 , 2 , 0.7f )
191- } ;
190+ new ( FilterType . HighShelf , 10000 , 2 , 0.7f ) ,
191+ ] ;
192192}
0 commit comments