comparison main/OSCHandler.cpp @ 1386:05d35ce6ea72 levelpanwidget

Start incorporating level-pan widgets
author Chris Cannam
date Mon, 05 Dec 2016 15:47:40 +0000
parents 28ccb621d1af
children f013210eeceb
comparison
equal deleted inserted replaced
1385:a01bca26ef52 1386:05d35ce6ea72
24 #include "widgets/CommandHistory.h" 24 #include "widgets/CommandHistory.h"
25 #include "audio/AudioCallbackPlaySource.h" 25 #include "audio/AudioCallbackPlaySource.h"
26 #include "framework/Document.h" 26 #include "framework/Document.h"
27 #include "data/fileio/WavFileWriter.h" 27 #include "data/fileio/WavFileWriter.h"
28 #include "transform/TransformFactory.h" 28 #include "transform/TransformFactory.h"
29 #include "widgets/Fader.h" 29 #include "widgets/LevelPanWidget.h"
30 #include "widgets/AudioDial.h" 30 #include "widgets/AudioDial.h"
31 31
32 #include <bqaudioio/SystemPlaybackTarget.h> 32 #include <bqaudioio/SystemPlaybackTarget.h>
33 33
34 #include <QFileInfo> 34 #include <QFileInfo>
340 QString property = message.getArg(0).toString(); 340 QString property = message.getArg(0).toString();
341 float value = (float)message.getArg(1).toDouble(); 341 float value = (float)message.getArg(1).toDouble();
342 342
343 if (property == "gain") { 343 if (property == "gain") {
344 if (value < 0.0) value = 0.0; 344 if (value < 0.0) value = 0.0;
345 m_fader->setValue(value); 345 m_mainLevelPan->setLevel(value);
346 if (m_playTarget) m_playTarget->setOutputGain(value); 346 if (m_playTarget) m_playTarget->setOutputGain(value);
347 } else if (property == "speedup") { 347 } else if (property == "speedup") {
348 m_playSpeed->setMappedValue(value); 348 m_playSpeed->setMappedValue(value);
349 } else if (property == "overlays") { 349 } else if (property == "overlays") {
350 if (value < 0.5) { 350 if (value < 0.5) {