Skip to content

Commit c966cf5

Browse files
committed
New EEL scripts + AutoEQ bug fixes
1 parent 40dfd5c commit c966cf5

7 files changed

Lines changed: 51 additions & 16 deletions

File tree

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
desc: Stereo to mono downmixer
2+
3+
@init
4+
;
5+
6+
@sample
7+
spl0 = spl1 = spl0 / 2 + spl1 / 2;

resources/assets/liveprog/stereowide.eel

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
desc: Stereo Widener
2-
//width:4<0,6,0.1>Stereo Width
2+
//width:3<0,6,0.1>Stereo Width
33
//reimplemented from: https://www.musicdsp.org/en/latest/Effects/256-stereo-width-control-obtained-via-transfromation-matrix.html
44

55
@init
6-
width = 4;
6+
width = 3;
77

88
@sample
99
coef_S = width * 0.5;
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
desc: Swap channels
2+
3+
leftGain:0<-30,10>Left post-gain (dB)
4+
rightGain:0<-30,10>Right post-gain (dB)
5+
6+
@init
7+
leftGain = 0.00;
8+
rightGain = 0.00;
9+
10+
function db2Lin(dB)(
11+
DB_2_LOG = 0.11512925464970228420089957273422;
12+
exp(dB * DB_2_LOG);
13+
);
14+
15+
@sample
16+
tmp0 = spl0;
17+
tmp1 = spl1;
18+
19+
spl0 = tmp1 * db2Lin(leftGain);
20+
spl1 = tmp0 * db2Lin(rightGain);

resources/styles/default.qss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ QFrame[frameShape="4"],
22
QFrame[frameShape="5"]{
33
color: lightgray;
44
}
5+

src/interface/dialog/AutoEqSelector.cpp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,12 @@ void AutoEQSelector::updateDetails()
8585

8686
void AutoEQSelector::doQuery()
8787
{
88+
if(ui->searchInput->text().length() <= 2)
89+
{
90+
QMessageBox::warning(this, "AutoEQ", "Please enter at least 3 characters or more");
91+
return;
92+
}
93+
8894
ui->listWidget->setEnabled(false);
8995
ui->search->setEnabled(false);
9096

@@ -122,4 +128,4 @@ HeadphoneMeasurement AutoEQSelector::getSelection()
122128
}
123129

124130
return hpCache;
125-
}
131+
}

src/interface/dialog/AutoEqSelector.ui

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
<item>
6969
<widget class="QLabel" name="group">
7070
<property name="text">
71-
<string>Please select your headphone on the right and press 'Ok' to accept.
71+
<string>Please select your headphone on the left side and press 'OK' to accept.
7272
This will override your current GraphicEQ configuration.</string>
7373
</property>
7474
<property name="wordWrap">

src/utils/StyleHelper.cpp

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -47,20 +47,21 @@ void StyleHelper::SetStyle()
4747
{
4848
loadIcons(false);
4949
QApplication::setPalette(m_host->style()->standardPalette());
50-
QFile f(":/styles/default.qss");
51-
52-
if (!f.exists())
53-
{
54-
printf("Unable to set stylesheet, file not found\n");
55-
}
56-
else
57-
{
58-
f.open(QFile::ReadOnly | QFile::Text);
59-
QTextStream ts(&f);
60-
qApp->setStyleSheet(ts.readAll());
61-
}
6250
}
6351

52+
QFile f(":/styles/default.qss");
53+
54+
if (!f.exists())
55+
{
56+
printf("Unable to set stylesheet, file not found\n");
57+
}
58+
else
59+
{
60+
f.open(QFile::ReadOnly | QFile::Text);
61+
QTextStream ts(&f);
62+
qApp->setStyleSheet(ts.readAll());
63+
}
64+
6465
emit styleChanged();
6566
}
6667

0 commit comments

Comments
 (0)