From 003c637ef40e1826b7c829afbfba82ea028e21a5 Mon Sep 17 00:00:00 2001 From: Chris Xiong Date: Thu, 24 Jan 2019 23:09:16 +0800 Subject: Migrated to fluidsynth 2.x. Moved to mxe for Windows build. Fixed default value for CC#8. --- qmidiplayer-desktop/qmpefxwindow.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'qmidiplayer-desktop/qmpefxwindow.cpp') diff --git a/qmidiplayer-desktop/qmpefxwindow.cpp b/qmidiplayer-desktop/qmpefxwindow.cpp index 4c7d0c0..5602dd4 100644 --- a/qmidiplayer-desktop/qmpefxwindow.cpp +++ b/qmidiplayer-desktop/qmpefxwindow.cpp @@ -17,16 +17,16 @@ qmpEfxWindow::qmpEfxWindow(QWidget *parent) : QSettings *settings=qmpSettingsWindow::getSettingsIntf(); ui->cbEnabledC->setChecked(settings->value("Effects/ChorusEnabled",1).toInt()); ui->cbEnabledR->setChecked(settings->value("Effects/ReverbEnabled",1).toInt()); - rr=settings->value("Effects/ReverbRoom",FLUID_REVERB_DEFAULT_ROOMSIZE).toDouble(); - rd=settings->value("Effects/ReverbDamp",FLUID_REVERB_DEFAULT_DAMP).toDouble(); - rw=settings->value("Effects/ReverbWidth",FLUID_REVERB_DEFAULT_WIDTH).toDouble(); - rl=settings->value("Effects/ReverbLevel",FLUID_REVERB_DEFAULT_LEVEL).toDouble(); - - cfb=settings->value("Effects/ChorusFeedbk",FLUID_CHORUS_DEFAULT_N).toInt(); - cl=settings->value("Effects/ChorusLevel",FLUID_CHORUS_DEFAULT_LEVEL).toDouble(); - cr=settings->value("Effects/ChorusRate",FLUID_CHORUS_DEFAULT_SPEED).toDouble(); - cd=settings->value("Effects/ChorusDepth",FLUID_CHORUS_DEFAULT_DEPTH).toDouble(); - ct=settings->value("Effects/ChorusType",FLUID_CHORUS_DEFAULT_TYPE).toInt(); + rr=settings->value("Effects/ReverbRoom",0.2).toDouble(); + rd=settings->value("Effects/ReverbDamp",0.0).toDouble(); + rw=settings->value("Effects/ReverbWidth",0.5).toDouble(); + rl=settings->value("Effects/ReverbLevel",0.9).toDouble(); + + cfb=settings->value("Effects/ChorusFeedbk",3).toInt(); + cl=settings->value("Effects/ChorusLevel",2.0).toDouble(); + cr=settings->value("Effects/ChorusRate",0.3).toDouble(); + cd=settings->value("Effects/ChorusDepth",8.0).toDouble(); + ct=settings->value("Effects/ChorusType",FLUID_CHORUS_MOD_SINE).toInt(); qmpMainWindow::getInstance()->registerFunctionality( efxf=new qmpEfxFunc(this), std::string("Effects"), -- cgit v1.2.3