dotfiles/wireplumber/.local/share/wireplumber/scripts/equalizer/zero2.lua
Sanchayan Maity e5cb1b31d0
wireplumber: Update zero2 equalizer configuration
```bash
python -m autoeq --input-file="measurements/Super Review/data/in-ear/7Hz x Crinacle Zero 2.csv" --output-dir="zero2-results" --target="targets/Diffuse field 5128.csv" --parametric-eq --convolution-eq --fs=44100,48000
```
2024-05-17 11:35:54 +05:30

111 lines
3.5 KiB
Lua

-- Generated by EQ'ing Zero2 frequency response to the Diffuse Field
-- target curve using AutoEq.
-- luacheck: ignore 111 113
local args = {
["node.description"] = "7HZ Zero2 Equalizer Sink",
["media.name"] = "7HZ Zero2 Equalizer Sink",
["audio.position"] = Json.Array { "FL", "FR" },
["audio.channels"] = 2,
}
args["filter.graph"] = Json.Object {
nodes = Json.Array {
Json.Object {
type = "builtin",
name = "eq_band_1",
label = "bq_highshelf",
control = Json.Object { Freq = 0, Gain = -6.1, Q = 1.0 },
},
Json.Object {
type = "builtin",
name = "eq_band_2",
label = "bq_lowshelf",
control = Json.Object { Freq = 105, Gain = -14.4, Q = 0.70 },
},
Json.Object {
type = "builtin",
name = "eq_band_3",
label = "bq_peaking",
control = Json.Object { Freq = 201, Gain = -4.2, Q = 0.94 },
},
Json.Object {
type = "builtin",
name = "eq_band_4",
label = "bq_peaking",
control = Json.Object { Freq = 6444, Gain = 5.3, Q = 0.61 },
},
Json.Object {
type = "builtin",
name = "eq_band_5",
label = "bq_peaking",
control = Json.Object { Freq = 2780, Gain = 5.0, Q = 1.99 },
},
Json.Object {
type = "builtin",
name = "eq_band_6",
label = "bq_peaking",
control = Json.Object { Freq = 2318, Gain = -1.9, Q = 1.43 },
},
Json.Object {
type = "builtin",
name = "eq_band_7",
label = "bq_highshelf",
control = Json.Object { Freq = 10000, Gain = 5.4, Q = 0.70 },
},
Json.Object {
type = "builtin",
name = "eq_band_8",
label = "bq_peaking",
control = Json.Object { Freq = 9047, Gain = -2.1, Q = 2.07 },
},
Json.Object {
type = "builtin",
name = "eq_band_9",
label = "bq_peaking",
control = Json.Object { Freq = 60, Gain = 0.9, Q = 2.06 },
},
Json.Object {
type = "builtin",
name = "eq_band_10",
label = "bq_peaking",
control = Json.Object { Freq = 747, Gain = 1.4, Q = 2.53 },
},
Json.Object {
type = "builtin",
name = "eq_band_11",
label = "bq_peaking",
control = Json.Object { Freq = 396, Gain = -0.6, Q = 1.80 },
},
},
links = Json.Array {
Json.Object { output = "eq_band_1:Out" , input = "eq_band_2:In" },
Json.Object { output = "eq_band_2:Out" , input = "eq_band_3:In" },
Json.Object { output = "eq_band_3:Out" , input = "eq_band_4:In" },
Json.Object { output = "eq_band_4:Out" , input = "eq_band_5:In" },
Json.Object { output = "eq_band_5:Out" , input = "eq_band_6:In" },
Json.Object { output = "eq_band_6:Out" , input = "eq_band_7:In" },
Json.Object { output = "eq_band_7:Out" , input = "eq_band_8:In" },
Json.Object { output = "eq_band_8:Out" , input = "eq_band_9:In" },
Json.Object { output = "eq_band_9:Out" , input = "eq_band_10:In" },
Json.Object { output = "eq_band_10:Out", input = "eq_band_11:In" },
},
}
args["capture.props"] = Json.Object {
["node.name"] = "zero2_effect_input.eq11",
["media.class"] = "Audio/Sink",
}
args["playback.props"] = Json.Object {
["node.name"] = "zero2_effect_output.eq11",
["node.passive"] = true,
}
local args_json = Json.Object(args)
local args_string = args_json:get_data()
local properties = {}
print("Loading 7HZ Zero2 Equalizer Sink with arguments = ")
print(args_string)
filter_chain = LocalModule("libpipewire-module-filter-chain", args_string, properties)