Rename a lot…
This commit is contained in:
@@ -40,27 +40,27 @@ AmplifierControlDialog::AmplifierControlDialog( AmplifierControls* controls ) :
|
||||
setPalette( pal );
|
||||
setFixedSize( 100, 125 );
|
||||
|
||||
knob * volumeKnob = new knob( knobBright_26, this);
|
||||
Knob * volumeKnob = new Knob( knobBright_26, this);
|
||||
volumeKnob -> move( 20, 30 );
|
||||
volumeKnob -> setVolumeKnob( true );
|
||||
volumeKnob->setModel( &controls->m_volumeModel );
|
||||
volumeKnob->setLabel( tr( "VOL" ) );
|
||||
volumeKnob->setHintText( tr( "Volume:" ) + " ", "%" );
|
||||
|
||||
knob * panKnob = new knob( knobBright_26, this);
|
||||
Knob * panKnob = new Knob( knobBright_26, this);
|
||||
panKnob -> move( 60, 30 );
|
||||
panKnob->setModel( &controls->m_panModel );
|
||||
panKnob->setLabel( tr( "PAN" ) );
|
||||
panKnob->setHintText( tr( "Panning:" ) + " ", "" );
|
||||
|
||||
knob * leftKnob = new knob( knobBright_26, this);
|
||||
Knob * leftKnob = new Knob( knobBright_26, this);
|
||||
leftKnob -> move( 20, 80 );
|
||||
leftKnob -> setVolumeKnob( true );
|
||||
leftKnob->setModel( &controls->m_leftModel );
|
||||
leftKnob->setLabel( tr( "LEFT" ) );
|
||||
leftKnob->setHintText( tr( "Left gain:" ) + " ", "%" );
|
||||
|
||||
knob * rightKnob = new knob( knobBright_26, this);
|
||||
Knob * rightKnob = new Knob( knobBright_26, this);
|
||||
rightKnob -> move( 60, 80 );
|
||||
rightKnob -> setVolumeKnob( true );
|
||||
rightKnob->setModel( &controls->m_rightModel );
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
|
||||
#include "EffectControls.h"
|
||||
#include "AmplifierControlDialog.h"
|
||||
#include "knob.h"
|
||||
#include "Knob.h"
|
||||
|
||||
|
||||
class AmplifierEffect;
|
||||
|
||||
@@ -44,17 +44,17 @@ BassBoosterControlDialog::BassBoosterControlDialog( BassBoosterControls* control
|
||||
|
||||
QHBoxLayout * l = new QHBoxLayout;
|
||||
|
||||
knob * freqKnob = new knob( knobBright_26, this);
|
||||
Knob * freqKnob = new Knob( knobBright_26, this);
|
||||
freqKnob->setModel( &controls->m_freqModel );
|
||||
freqKnob->setLabel( tr( "FREQ" ) );
|
||||
freqKnob->setHintText( tr( "Frequency:" ) + " ", "Hz" );
|
||||
|
||||
knob * gainKnob = new knob( knobBright_26, this );
|
||||
Knob * gainKnob = new Knob( knobBright_26, this );
|
||||
gainKnob->setModel( &controls->m_gainModel );
|
||||
gainKnob->setLabel( tr( "GAIN" ) );
|
||||
gainKnob->setHintText( tr( "Gain:" ) + " ", "" );
|
||||
|
||||
knob * ratioKnob = new knob( knobBright_26, this );
|
||||
Knob * ratioKnob = new Knob( knobBright_26, this );
|
||||
ratioKnob->setModel( &controls->m_ratioModel );
|
||||
ratioKnob->setLabel( tr( "RATIO" ) );
|
||||
ratioKnob->setHintText( tr( "Ratio:" ) + " ", "" );
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
|
||||
#include "EffectControls.h"
|
||||
#include "BassBoosterControlDialog.h"
|
||||
#include "knob.h"
|
||||
#include "Knob.h"
|
||||
|
||||
|
||||
class BassBoosterEffect;
|
||||
|
||||
@@ -28,13 +28,13 @@
|
||||
#include "DualFilterControlDialog.h"
|
||||
#include "DualFilterControls.h"
|
||||
#include "embed.h"
|
||||
#include "led_checkbox.h"
|
||||
#include "combobox.h"
|
||||
#include "tooltip.h"
|
||||
#include "LedCheckbox.h"
|
||||
#include "ComboBox.h"
|
||||
#include "ToolTip.h"
|
||||
#include "gui_templates.h"
|
||||
|
||||
#define makeknob( name, x, y, model, label, hint, unit ) \
|
||||
knob * name = new knob( knobBright_26, this); \
|
||||
Knob * name = new Knob( knobBright_26, this); \
|
||||
name -> move( x, y ); \
|
||||
name ->setModel( &controls-> model ); \
|
||||
name ->setLabel( tr( label ) ); \
|
||||
@@ -62,24 +62,24 @@ DualFilterControlDialog::DualFilterControlDialog( DualFilterControls* controls )
|
||||
gain1Knob-> setVolumeKnob( true );
|
||||
gain2Knob-> setVolumeKnob( true );
|
||||
|
||||
ledCheckBox * enabled1Toggle = new ledCheckBox( "", this,
|
||||
tr( "Filter 1 enabled" ), ledCheckBox::Green );
|
||||
ledCheckBox * enabled2Toggle = new ledCheckBox( "", this,
|
||||
tr( "Filter 2 enabled" ), ledCheckBox::Green );
|
||||
LedCheckBox * enabled1Toggle = new LedCheckBox( "", this,
|
||||
tr( "Filter 1 enabled" ), LedCheckBox::Green );
|
||||
LedCheckBox * enabled2Toggle = new LedCheckBox( "", this,
|
||||
tr( "Filter 2 enabled" ), LedCheckBox::Green );
|
||||
|
||||
enabled1Toggle -> move( 5, 30 );
|
||||
enabled1Toggle -> setModel( &controls -> m_enabled1Model );
|
||||
toolTip::add( enabled1Toggle, tr( "Click to enable/disable Filter 1" ) );
|
||||
ToolTip::add( enabled1Toggle, tr( "Click to enable/disable Filter 1" ) );
|
||||
enabled2Toggle -> move( 5, 145 );
|
||||
enabled2Toggle -> setModel( &controls -> m_enabled2Model );
|
||||
toolTip::add( enabled2Toggle, tr( "Click to enable/disable Filter 2" ) );
|
||||
ToolTip::add( enabled2Toggle, tr( "Click to enable/disable Filter 2" ) );
|
||||
|
||||
comboBox * m_filter1ComboBox = new comboBox( this );
|
||||
ComboBox * m_filter1ComboBox = new ComboBox( this );
|
||||
m_filter1ComboBox->setGeometry( 5, 70, 140, 22 );
|
||||
m_filter1ComboBox->setFont( pointSize<8>( m_filter1ComboBox->font() ) );
|
||||
m_filter1ComboBox->setModel( &controls->m_filter1Model );
|
||||
|
||||
comboBox * m_filter2ComboBox = new comboBox( this );
|
||||
ComboBox * m_filter2ComboBox = new ComboBox( this );
|
||||
m_filter2ComboBox->setGeometry( 5, 185, 140, 22 );
|
||||
m_filter2ComboBox->setFont( pointSize<8>( m_filter2ComboBox->font() ) );
|
||||
m_filter2ComboBox->setModel( &controls->m_filter2Model );
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
|
||||
#include "EffectControls.h"
|
||||
#include "DualFilterControlDialog.h"
|
||||
#include "knob.h"
|
||||
#include "Knob.h"
|
||||
#include "ComboBoxModel.h"
|
||||
|
||||
class DualFilterEffect;
|
||||
|
||||
@@ -41,13 +41,13 @@
|
||||
#include "InstrumentTrack.h"
|
||||
#include "InstrumentPlayHandle.h"
|
||||
#include "NotePlayHandle.h"
|
||||
#include "knob.h"
|
||||
#include "Knob.h"
|
||||
#include "Song.h"
|
||||
#include "ConfigManager.h"
|
||||
#include "endian_handling.h"
|
||||
|
||||
#include "PatchesDialog.h"
|
||||
#include "tooltip.h"
|
||||
#include "ToolTip.h"
|
||||
#include "LcdSpinBox.h"
|
||||
|
||||
#include "embed.cpp"
|
||||
@@ -904,11 +904,11 @@ void GigInstrument::updateSampleRate()
|
||||
|
||||
|
||||
|
||||
class gigKnob : public knob
|
||||
class gigKnob : public Knob
|
||||
{
|
||||
public:
|
||||
gigKnob( QWidget * _parent ) :
|
||||
knob( knobBright_26, _parent )
|
||||
Knob( knobBright_26, _parent )
|
||||
{
|
||||
setFixedSize( 31, 38 );
|
||||
}
|
||||
@@ -926,7 +926,7 @@ GigInstrumentView::GigInstrumentView( Instrument * _instrument, QWidget * _paren
|
||||
connect( &k->m_patchNum, SIGNAL( dataChanged() ), this, SLOT( updatePatchName() ) );
|
||||
|
||||
// File Button
|
||||
m_fileDialogButton = new pixmapButton( this );
|
||||
m_fileDialogButton = new PixmapButton( this );
|
||||
m_fileDialogButton->setCursor( QCursor( Qt::PointingHandCursor ) );
|
||||
m_fileDialogButton->setActiveGraphic( PLUGIN_NAME::getIconPixmap( "fileselect_on" ) );
|
||||
m_fileDialogButton->setInactiveGraphic( PLUGIN_NAME::getIconPixmap( "fileselect_off" ) );
|
||||
@@ -934,12 +934,12 @@ GigInstrumentView::GigInstrumentView( Instrument * _instrument, QWidget * _paren
|
||||
|
||||
connect( m_fileDialogButton, SIGNAL( clicked() ), this, SLOT( showFileDialog() ) );
|
||||
|
||||
toolTip::add( m_fileDialogButton, tr( "Open other GIG file" ) );
|
||||
ToolTip::add( m_fileDialogButton, tr( "Open other GIG file" ) );
|
||||
|
||||
m_fileDialogButton->setWhatsThis( tr( "Click here to open another GIG file" ) );
|
||||
|
||||
// Patch Button
|
||||
m_patchDialogButton = new pixmapButton( this );
|
||||
m_patchDialogButton = new PixmapButton( this );
|
||||
m_patchDialogButton->setCursor( QCursor( Qt::PointingHandCursor ) );
|
||||
m_patchDialogButton->setActiveGraphic( PLUGIN_NAME::getIconPixmap( "patches_on" ) );
|
||||
m_patchDialogButton->setInactiveGraphic( PLUGIN_NAME::getIconPixmap( "patches_off" ) );
|
||||
@@ -948,7 +948,7 @@ GigInstrumentView::GigInstrumentView( Instrument * _instrument, QWidget * _paren
|
||||
|
||||
connect( m_patchDialogButton, SIGNAL( clicked() ), this, SLOT( showPatchDialog() ) );
|
||||
|
||||
toolTip::add( m_patchDialogButton, tr( "Choose the patch" ) );
|
||||
ToolTip::add( m_patchDialogButton, tr( "Choose the patch" ) );
|
||||
|
||||
m_patchDialogButton->setWhatsThis( tr( "Click here to change which patch of the GIG file to use" ) );
|
||||
|
||||
|
||||
@@ -32,11 +32,11 @@
|
||||
#include <QMutexLocker>
|
||||
|
||||
#include "Instrument.h"
|
||||
#include "pixmap_button.h"
|
||||
#include "PixmapButton.h"
|
||||
#include "InstrumentView.h"
|
||||
#include "knob.h"
|
||||
#include "Knob.h"
|
||||
#include "LcdSpinBox.h"
|
||||
#include "led_checkbox.h"
|
||||
#include "LedCheckbox.h"
|
||||
#include "SampleBuffer.h"
|
||||
#include "MemoryManager.h"
|
||||
#include "gig.h"
|
||||
@@ -345,8 +345,8 @@ public:
|
||||
private:
|
||||
virtual void modelChanged();
|
||||
|
||||
pixmapButton * m_fileDialogButton;
|
||||
pixmapButton * m_patchDialogButton;
|
||||
PixmapButton * m_fileDialogButton;
|
||||
PixmapButton * m_patchDialogButton;
|
||||
|
||||
LcdSpinBox * m_bankNumLcd;
|
||||
LcdSpinBox * m_patchNumLcd;
|
||||
@@ -354,7 +354,7 @@ private:
|
||||
QLabel * m_filenameLabel;
|
||||
QLabel * m_patchLabel;
|
||||
|
||||
knob * m_gainKnob;
|
||||
Knob * m_gainKnob;
|
||||
|
||||
static PatchesDialog * s_patchDialog;
|
||||
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
#include "LadspaEffect.h"
|
||||
#include "LadspaControlDialog.h"
|
||||
#include "LadspaControlView.h"
|
||||
#include "led_checkbox.h"
|
||||
#include "LedCheckbox.h"
|
||||
|
||||
|
||||
|
||||
@@ -52,7 +52,7 @@ LadspaControlDialog::LadspaControlDialog( LadspaControls * _ctl ) :
|
||||
mainLay->addSpacing( 3 );
|
||||
QHBoxLayout * center = new QHBoxLayout();
|
||||
mainLay->addLayout( center );
|
||||
m_stereoLink = new ledCheckBox( tr( "Link Channels" ), this );
|
||||
m_stereoLink = new LedCheckBox( tr( "Link Channels" ), this );
|
||||
m_stereoLink->setModel( &_ctl->m_stereoLinkModel );
|
||||
center->addWidget( m_stereoLink );
|
||||
}
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
|
||||
class QHBoxLayout;
|
||||
class LadspaControls;
|
||||
class ledCheckBox;
|
||||
class LedCheckBox;
|
||||
|
||||
|
||||
class LadspaControlDialog : public EffectControlDialog
|
||||
@@ -49,7 +49,7 @@ private slots:
|
||||
|
||||
private:
|
||||
QHBoxLayout * m_effectLayout;
|
||||
ledCheckBox * m_stereoLink;
|
||||
LedCheckBox * m_stereoLink;
|
||||
|
||||
} ;
|
||||
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
|
||||
#include "SpectrumAnalyzer.h"
|
||||
#include "MainWindow.h"
|
||||
#include "led_checkbox.h"
|
||||
#include "LedCheckbox.h"
|
||||
#include "embed.h"
|
||||
|
||||
|
||||
@@ -157,11 +157,11 @@ SpectrumAnalyzerControlDialog::SpectrumAnalyzerControlDialog( SpectrumAnalyzerCo
|
||||
SpectrumView* v = new SpectrumView( controls->m_effect, this );
|
||||
v->move( 27, 30 );
|
||||
|
||||
ledCheckBox * lin_spec = new ledCheckBox( tr( "Linear spectrum" ), this );
|
||||
LedCheckBox * lin_spec = new LedCheckBox( tr( "Linear spectrum" ), this );
|
||||
lin_spec->move( 24, 204 );
|
||||
lin_spec->setModel( &controls->m_linearSpec );
|
||||
|
||||
ledCheckBox * lin_y = new ledCheckBox( tr( "Linear Y axis" ), this );
|
||||
LedCheckBox * lin_y = new LedCheckBox( tr( "Linear Y axis" ), this );
|
||||
lin_y->move( 24, 220 );
|
||||
lin_y->setModel( &controls->m_linearYAxis );
|
||||
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
|
||||
#include "EffectControls.h"
|
||||
#include "SpectrumAnalyzerControlDialog.h"
|
||||
#include "knob.h"
|
||||
#include "Knob.h"
|
||||
|
||||
|
||||
class SpectrumAnalyzer;
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
|
||||
#include "VstEffect.h"
|
||||
#include "Song.h"
|
||||
#include "text_float.h"
|
||||
#include "TextFloat.h"
|
||||
#include "VstSubPluginFeatures.h"
|
||||
|
||||
#include "embed.cpp"
|
||||
@@ -124,7 +124,7 @@ bool VstEffect::processAudioBuffer( sampleFrame * _buf, const fpp_t _frames )
|
||||
|
||||
void VstEffect::openPlugin( const QString & _plugin )
|
||||
{
|
||||
textFloat * tf = textFloat::displayMessage(
|
||||
TextFloat * tf = TextFloat::displayMessage(
|
||||
VstPlugin::tr( "Loading plugin" ),
|
||||
VstPlugin::tr( "Please wait while loading VST plugin..." ),
|
||||
PLUGIN_NAME::getIconPixmap( "logo", 24, 24 ), 0 );
|
||||
|
||||
@@ -30,9 +30,9 @@
|
||||
#include "VstEffectControlDialog.h"
|
||||
#include "VstEffect.h"
|
||||
|
||||
#include "pixmap_button.h"
|
||||
#include "PixmapButton.h"
|
||||
#include "embed.h"
|
||||
#include "tooltip.h"
|
||||
#include "ToolTip.h"
|
||||
|
||||
#include <QObject>
|
||||
#include <QPainter>
|
||||
@@ -84,7 +84,7 @@ VstEffectControlDialog::VstEffectControlDialog( VstEffectControls * _ctl ) :
|
||||
btn->setMinimumHeight( 24 );
|
||||
btn->setMaximumHeight( 24 );
|
||||
|
||||
m_managePluginButton = new pixmapButton( this, "" );
|
||||
m_managePluginButton = new PixmapButton( this, "" );
|
||||
m_managePluginButton->setCheckable( false );
|
||||
m_managePluginButton->setCursor( Qt::PointingHandCursor );
|
||||
m_managePluginButton->setActiveGraphic( PLUGIN_NAME::getIconPixmap(
|
||||
@@ -93,7 +93,7 @@ VstEffectControlDialog::VstEffectControlDialog( VstEffectControls * _ctl ) :
|
||||
"track_op_menu" ) );
|
||||
connect( m_managePluginButton, SIGNAL( clicked() ), _ctl,
|
||||
SLOT( managePlugin() ) );
|
||||
toolTip::add( m_managePluginButton, tr( "Control VST-plugin from LMMS host" ) );
|
||||
ToolTip::add( m_managePluginButton, tr( "Control VST-plugin from LMMS host" ) );
|
||||
|
||||
m_managePluginButton->setWhatsThis(
|
||||
tr( "Click here, if you want to control VST-plugin from host." ) );
|
||||
@@ -103,7 +103,7 @@ VstEffectControlDialog::VstEffectControlDialog( VstEffectControls * _ctl ) :
|
||||
m_managePluginButton->setMinimumHeight( 21 );
|
||||
m_managePluginButton->setMaximumHeight( 21 );
|
||||
|
||||
m_openPresetButton = new pixmapButton( this, "" );
|
||||
m_openPresetButton = new PixmapButton( this, "" );
|
||||
m_openPresetButton->setCheckable( false );
|
||||
m_openPresetButton->setCursor( Qt::PointingHandCursor );
|
||||
m_openPresetButton->setActiveGraphic( PLUGIN_NAME::getIconPixmap(
|
||||
@@ -112,7 +112,7 @@ VstEffectControlDialog::VstEffectControlDialog( VstEffectControls * _ctl ) :
|
||||
"stepper-up" ) );
|
||||
connect( m_openPresetButton, SIGNAL( clicked() ), _ctl,
|
||||
SLOT( openPreset() ) );
|
||||
toolTip::add( m_openPresetButton, tr( "Open VST-plugin preset" ) );
|
||||
ToolTip::add( m_openPresetButton, tr( "Open VST-plugin preset" ) );
|
||||
|
||||
m_openPresetButton->setWhatsThis(
|
||||
tr( "Click here, if you want to open another *.fxp, *.fxb VST-plugin preset." ) );
|
||||
@@ -122,7 +122,7 @@ VstEffectControlDialog::VstEffectControlDialog( VstEffectControls * _ctl ) :
|
||||
m_openPresetButton->setMinimumHeight( 16 );
|
||||
m_openPresetButton->setMaximumHeight( 16 );
|
||||
|
||||
m_rolLPresetButton = new pixmapButton( this, "" );
|
||||
m_rolLPresetButton = new PixmapButton( this, "" );
|
||||
m_rolLPresetButton->setCheckable( false );
|
||||
m_rolLPresetButton->setCursor( Qt::PointingHandCursor );
|
||||
m_rolLPresetButton->setActiveGraphic( PLUGIN_NAME::getIconPixmap(
|
||||
@@ -135,7 +135,7 @@ VstEffectControlDialog::VstEffectControlDialog( VstEffectControls * _ctl ) :
|
||||
connect( m_rolLPresetButton, SIGNAL( clicked() ), this,
|
||||
SLOT( update() ) );
|
||||
|
||||
toolTip::add( m_rolLPresetButton, tr( "Previous (-)" ) );
|
||||
ToolTip::add( m_rolLPresetButton, tr( "Previous (-)" ) );
|
||||
|
||||
m_rolLPresetButton->setShortcut( Qt::Key_Minus );
|
||||
|
||||
@@ -147,7 +147,7 @@ VstEffectControlDialog::VstEffectControlDialog( VstEffectControls * _ctl ) :
|
||||
m_rolLPresetButton->setMinimumHeight( 16 );
|
||||
m_rolLPresetButton->setMaximumHeight( 16 );
|
||||
|
||||
m_rolRPresetButton = new pixmapButton( this, "" );
|
||||
m_rolRPresetButton = new PixmapButton( this, "" );
|
||||
m_rolRPresetButton->setCheckable( false );
|
||||
m_rolRPresetButton->setCursor( Qt::PointingHandCursor );
|
||||
m_rolRPresetButton->setActiveGraphic( PLUGIN_NAME::getIconPixmap(
|
||||
@@ -160,7 +160,7 @@ VstEffectControlDialog::VstEffectControlDialog( VstEffectControls * _ctl ) :
|
||||
connect( m_rolRPresetButton, SIGNAL( clicked() ), this,
|
||||
SLOT( update() ) );
|
||||
|
||||
toolTip::add( m_rolRPresetButton, tr( "Next (+)" ) );
|
||||
ToolTip::add( m_rolRPresetButton, tr( "Next (+)" ) );
|
||||
|
||||
m_rolRPresetButton->setShortcut( Qt::Key_Plus );
|
||||
|
||||
@@ -187,7 +187,7 @@ VstEffectControlDialog::VstEffectControlDialog( VstEffectControls * _ctl ) :
|
||||
_ctl->m_selPresetButton->setMinimumHeight( 16 );
|
||||
_ctl->m_selPresetButton->setMaximumHeight( 16 );
|
||||
|
||||
m_savePresetButton = new pixmapButton( this, "" );
|
||||
m_savePresetButton = new PixmapButton( this, "" );
|
||||
m_savePresetButton->setCheckable( false );
|
||||
m_savePresetButton->setCursor( Qt::PointingHandCursor );
|
||||
m_savePresetButton->setActiveGraphic( PLUGIN_NAME::getIconPixmap(
|
||||
@@ -196,7 +196,7 @@ VstEffectControlDialog::VstEffectControlDialog( VstEffectControls * _ctl ) :
|
||||
"project_save", 21, 21 ) );
|
||||
connect( m_savePresetButton, SIGNAL( clicked() ), _ctl,
|
||||
SLOT( savePreset() ) );
|
||||
toolTip::add( m_savePresetButton, tr( "Save preset" ) );
|
||||
ToolTip::add( m_savePresetButton, tr( "Save preset" ) );
|
||||
|
||||
m_savePresetButton->setWhatsThis(
|
||||
tr( "Click here, if you want to save current VST-plugin preset program." ) );
|
||||
|
||||
@@ -34,10 +34,10 @@
|
||||
|
||||
|
||||
class VstEffectControls;
|
||||
class pixmapButton;
|
||||
class PixmapButton;
|
||||
class QPixmap;
|
||||
class QPushButton;
|
||||
class pixmapButton;
|
||||
class PixmapButton;
|
||||
|
||||
|
||||
class VstEffectControlDialog : public EffectControlDialog
|
||||
@@ -52,11 +52,11 @@ protected:
|
||||
private:
|
||||
QWidget * m_pluginWidget;
|
||||
|
||||
pixmapButton * m_openPresetButton;
|
||||
pixmapButton * m_rolLPresetButton;
|
||||
pixmapButton * m_rolRPresetButton;
|
||||
pixmapButton * m_managePluginButton;
|
||||
pixmapButton * m_savePresetButton;
|
||||
PixmapButton * m_openPresetButton;
|
||||
PixmapButton * m_rolLPresetButton;
|
||||
PixmapButton * m_rolRPresetButton;
|
||||
PixmapButton * m_managePluginButton;
|
||||
PixmapButton * m_savePresetButton;
|
||||
|
||||
VstPlugin * m_plugin;
|
||||
|
||||
|
||||
@@ -71,7 +71,7 @@ void VstEffectControls::loadSettings( const QDomElement & _this )
|
||||
const QMap<QString, QString> & dump = m_effect->m_plugin->parameterDump();
|
||||
paramCount = dump.size();
|
||||
char paramStr[35];
|
||||
vstKnobs = new knob *[ paramCount ];
|
||||
vstKnobs = new Knob *[ paramCount ];
|
||||
knobFModel = new FloatModel *[ paramCount ];
|
||||
QStringList s_dumpValues;
|
||||
QWidget * widget = new QWidget();
|
||||
@@ -80,7 +80,7 @@ void VstEffectControls::loadSettings( const QDomElement & _this )
|
||||
sprintf( paramStr, "param%d", i );
|
||||
s_dumpValues = dump[ paramStr ].split( ":" );
|
||||
|
||||
vstKnobs[i] = new knob( knobBright_26, widget, s_dumpValues.at( 1 ) );
|
||||
vstKnobs[i] = new Knob( knobBright_26, widget, s_dumpValues.at( 1 ) );
|
||||
vstKnobs[i]->setHintText( s_dumpValues.at( 1 ) + ":", "" );
|
||||
vstKnobs[i]->setLabel( s_dumpValues.at( 1 ).left( 15 ) );
|
||||
|
||||
@@ -361,7 +361,7 @@ manageVSTEffectView::manageVSTEffectView( VstEffect * _eff, VstEffectControls *
|
||||
|
||||
|
||||
if (m_vi->vstKnobs == NULL) {
|
||||
m_vi->vstKnobs = new knob *[ m_vi->paramCount ];
|
||||
m_vi->vstKnobs = new Knob *[ m_vi->paramCount ];
|
||||
isVstKnobs = false;
|
||||
}
|
||||
if (m_vi->knobFModel == NULL) {
|
||||
@@ -377,7 +377,7 @@ manageVSTEffectView::manageVSTEffectView( VstEffect * _eff, VstEffectControls *
|
||||
sprintf( paramStr, "param%d", i);
|
||||
s_dumpValues = dump[ paramStr ].split( ":" );
|
||||
|
||||
m_vi->vstKnobs[ i ] = new knob( knobBright_26, widget, s_dumpValues.at( 1 ) );
|
||||
m_vi->vstKnobs[ i ] = new Knob( knobBright_26, widget, s_dumpValues.at( 1 ) );
|
||||
m_vi->vstKnobs[ i ]->setHintText( s_dumpValues.at( 1 ) + ":", "" );
|
||||
m_vi->vstKnobs[ i ]->setLabel( s_dumpValues.at( 1 ).left( 15 ) );
|
||||
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
|
||||
#include <QMdiSubWindow>
|
||||
#include <QScrollArea>
|
||||
#include "knob.h"
|
||||
#include "Knob.h"
|
||||
#include <QLayout>
|
||||
#include <QPainter>
|
||||
#include <QObject>
|
||||
@@ -87,7 +87,7 @@ private:
|
||||
QMdiSubWindow * m_subWindow;
|
||||
QScrollArea * m_scrollArea;
|
||||
FloatModel ** knobFModel;
|
||||
knob ** vstKnobs;
|
||||
Knob ** vstKnobs;
|
||||
int paramCount;
|
||||
|
||||
QObject * ctrHandle;
|
||||
|
||||
@@ -38,7 +38,7 @@
|
||||
#include "NotePlayHandle.h"
|
||||
#include "interpolation.h"
|
||||
#include "gui_templates.h"
|
||||
#include "tooltip.h"
|
||||
#include "ToolTip.h"
|
||||
#include "string_pair_drag.h"
|
||||
#include "DataFile.h"
|
||||
|
||||
@@ -447,7 +447,7 @@ AudioFileProcessorView::AudioFileProcessorView( Instrument * _instrument,
|
||||
"artwork" ) );
|
||||
}
|
||||
|
||||
m_openAudioFileButton = new pixmapButton( this );
|
||||
m_openAudioFileButton = new PixmapButton( this );
|
||||
m_openAudioFileButton->setCursor( QCursor( Qt::PointingHandCursor ) );
|
||||
m_openAudioFileButton->move( 227, 72 );
|
||||
m_openAudioFileButton->setActiveGraphic( PLUGIN_NAME::getIconPixmap(
|
||||
@@ -456,7 +456,7 @@ AudioFileProcessorView::AudioFileProcessorView( Instrument * _instrument,
|
||||
"select_file" ) );
|
||||
connect( m_openAudioFileButton, SIGNAL( clicked() ),
|
||||
this, SLOT( openAudioFile() ) );
|
||||
toolTip::add( m_openAudioFileButton, tr( "Open other sample" ) );
|
||||
ToolTip::add( m_openAudioFileButton, tr( "Open other sample" ) );
|
||||
|
||||
m_openAudioFileButton->setWhatsThis(
|
||||
tr( "Click here, if you want to open another audio-file. "
|
||||
@@ -465,14 +465,14 @@ AudioFileProcessorView::AudioFileProcessorView( Instrument * _instrument,
|
||||
"amplify-value, and so on are not reset. So, it may not "
|
||||
"sound like the original sample.") );
|
||||
|
||||
m_reverseButton = new pixmapButton( this );
|
||||
m_reverseButton = new PixmapButton( this );
|
||||
m_reverseButton->setCheckable( true );
|
||||
m_reverseButton->move( 164, 105 );
|
||||
m_reverseButton->setActiveGraphic( PLUGIN_NAME::getIconPixmap(
|
||||
"reverse_on" ) );
|
||||
m_reverseButton->setInactiveGraphic( PLUGIN_NAME::getIconPixmap(
|
||||
"reverse_off" ) );
|
||||
toolTip::add( m_reverseButton, tr( "Reverse sample" ) );
|
||||
ToolTip::add( m_reverseButton, tr( "Reverse sample" ) );
|
||||
m_reverseButton->setWhatsThis(
|
||||
tr( "If you enable this button, the whole sample is reversed. "
|
||||
"This is useful for cool effects, e.g. a reversed "
|
||||
@@ -480,39 +480,39 @@ AudioFileProcessorView::AudioFileProcessorView( Instrument * _instrument,
|
||||
|
||||
// loop button group
|
||||
|
||||
pixmapButton * m_loopOffButton = new pixmapButton( this );
|
||||
PixmapButton * m_loopOffButton = new PixmapButton( this );
|
||||
m_loopOffButton->setCheckable( true );
|
||||
m_loopOffButton->move( 190, 105 );
|
||||
m_loopOffButton->setActiveGraphic( PLUGIN_NAME::getIconPixmap(
|
||||
"loop_off_on" ) );
|
||||
m_loopOffButton->setInactiveGraphic( PLUGIN_NAME::getIconPixmap(
|
||||
"loop_off_off" ) );
|
||||
toolTip::add( m_loopOffButton, tr( "Disable loop" ) );
|
||||
ToolTip::add( m_loopOffButton, tr( "Disable loop" ) );
|
||||
m_loopOffButton->setWhatsThis(
|
||||
tr( "This button disables looping. "
|
||||
"The sample plays only once from start to end. " ) );
|
||||
|
||||
|
||||
pixmapButton * m_loopOnButton = new pixmapButton( this );
|
||||
PixmapButton * m_loopOnButton = new PixmapButton( this );
|
||||
m_loopOnButton->setCheckable( true );
|
||||
m_loopOnButton->move( 190, 124 );
|
||||
m_loopOnButton->setActiveGraphic( PLUGIN_NAME::getIconPixmap(
|
||||
"loop_on_on" ) );
|
||||
m_loopOnButton->setInactiveGraphic( PLUGIN_NAME::getIconPixmap(
|
||||
"loop_on_off" ) );
|
||||
toolTip::add( m_loopOnButton, tr( "Enable loop" ) );
|
||||
ToolTip::add( m_loopOnButton, tr( "Enable loop" ) );
|
||||
m_loopOnButton->setWhatsThis(
|
||||
tr( "This button enables forwards-looping. "
|
||||
"The sample loops between the end point and the loop point." ) );
|
||||
|
||||
pixmapButton * m_loopPingPongButton = new pixmapButton( this );
|
||||
PixmapButton * m_loopPingPongButton = new PixmapButton( this );
|
||||
m_loopPingPongButton->setCheckable( true );
|
||||
m_loopPingPongButton->move( 216, 124 );
|
||||
m_loopPingPongButton->setActiveGraphic( PLUGIN_NAME::getIconPixmap(
|
||||
"loop_pingpong_on" ) );
|
||||
m_loopPingPongButton->setInactiveGraphic( PLUGIN_NAME::getIconPixmap(
|
||||
"loop_pingpong_off" ) );
|
||||
toolTip::add( m_loopPingPongButton, tr( "Enable loop" ) );
|
||||
ToolTip::add( m_loopPingPongButton, tr( "Enable loop" ) );
|
||||
m_loopPingPongButton->setWhatsThis(
|
||||
tr( "This button enables ping-pong-looping. "
|
||||
"The sample loops backwards and forwards between the end point "
|
||||
@@ -523,14 +523,14 @@ AudioFileProcessorView::AudioFileProcessorView( Instrument * _instrument,
|
||||
m_loopGroup->addButton( m_loopOnButton );
|
||||
m_loopGroup->addButton( m_loopPingPongButton );
|
||||
|
||||
m_stutterButton = new pixmapButton( this );
|
||||
m_stutterButton = new PixmapButton( this );
|
||||
m_stutterButton->setCheckable( true );
|
||||
m_stutterButton->move( 164, 124 );
|
||||
m_stutterButton->setActiveGraphic( PLUGIN_NAME::getIconPixmap(
|
||||
"stutter_on" ) );
|
||||
m_stutterButton->setInactiveGraphic( PLUGIN_NAME::getIconPixmap(
|
||||
"stutter_off" ) );
|
||||
toolTip::add( m_stutterButton,
|
||||
ToolTip::add( m_stutterButton,
|
||||
tr( "Continue sample playback across notes" ) );
|
||||
m_stutterButton->setWhatsThis(
|
||||
tr( "Enabling this option makes the sample continue playing "
|
||||
@@ -540,7 +540,7 @@ AudioFileProcessorView::AudioFileProcessorView( Instrument * _instrument,
|
||||
"playback to the start of the sample, insert a note at the bottom "
|
||||
"of the keyboard (< 20 Hz)") );
|
||||
|
||||
m_ampKnob = new knob( knobBright_26, this );
|
||||
m_ampKnob = new Knob( knobBright_26, this );
|
||||
m_ampKnob->setVolumeKnob( true );
|
||||
m_ampKnob->move( 5, 108 );
|
||||
m_ampKnob->setHintText( tr( "Amplify:" )+" ", "%" );
|
||||
@@ -572,7 +572,7 @@ AudioFileProcessorView::AudioFileProcessorView( Instrument * _instrument,
|
||||
"the loop starts. " ) );
|
||||
|
||||
// interpolation selector
|
||||
m_interpBox = new comboBox( this );
|
||||
m_interpBox = new ComboBox( this );
|
||||
m_interpBox->setGeometry( 142, 62, 82, 22 );
|
||||
m_interpBox->setFont( pointSize<8>( m_interpBox->font() ) );
|
||||
|
||||
@@ -1247,7 +1247,7 @@ float AudioFileProcessorWaveView::knob::getValue( const QPoint & _p )
|
||||
const double dec_fact = ! m_waveView ? 1 :
|
||||
double( m_waveView->m_to - m_waveView->m_from )
|
||||
/ m_waveView->m_sampleBuffer.frames();
|
||||
const float inc = ::knob::getValue( _p ) * dec_fact;
|
||||
const float inc = ::Knob::getValue( _p ) * dec_fact;
|
||||
|
||||
return inc;
|
||||
}
|
||||
|
||||
@@ -32,10 +32,10 @@
|
||||
#include "Instrument.h"
|
||||
#include "InstrumentView.h"
|
||||
#include "SampleBuffer.h"
|
||||
#include "knob.h"
|
||||
#include "pixmap_button.h"
|
||||
#include "Knob.h"
|
||||
#include "PixmapButton.h"
|
||||
#include "AutomatableButton.h"
|
||||
#include "combobox.h"
|
||||
#include "ComboBox.h"
|
||||
|
||||
|
||||
class audioFileProcessor : public Instrument
|
||||
@@ -136,16 +136,16 @@ private:
|
||||
static QPixmap * s_artwork;
|
||||
|
||||
AudioFileProcessorWaveView * m_waveView;
|
||||
knob * m_ampKnob;
|
||||
knob * m_startKnob;
|
||||
knob * m_endKnob;
|
||||
knob * m_loopKnob;
|
||||
Knob * m_ampKnob;
|
||||
Knob * m_startKnob;
|
||||
Knob * m_endKnob;
|
||||
Knob * m_loopKnob;
|
||||
|
||||
pixmapButton * m_openAudioFileButton;
|
||||
pixmapButton * m_reverseButton;
|
||||
PixmapButton * m_openAudioFileButton;
|
||||
PixmapButton * m_reverseButton;
|
||||
automatableButtonGroup * m_loopGroup;
|
||||
pixmapButton * m_stutterButton;
|
||||
comboBox * m_interpBox;
|
||||
PixmapButton * m_stutterButton;
|
||||
ComboBox * m_interpBox;
|
||||
|
||||
} ;
|
||||
|
||||
@@ -172,15 +172,15 @@ public:
|
||||
loop
|
||||
} ;
|
||||
|
||||
class knob : public ::knob
|
||||
class knob : public ::Knob
|
||||
{
|
||||
const AudioFileProcessorWaveView * m_waveView;
|
||||
const knob * m_relatedKnob;
|
||||
const Knob * m_relatedKnob;
|
||||
|
||||
|
||||
public:
|
||||
knob( QWidget * _parent ) :
|
||||
::knob( knobBright_26, _parent ),
|
||||
::Knob( knobBright_26, _parent ),
|
||||
m_waveView( 0 ),
|
||||
m_relatedKnob( 0 )
|
||||
{
|
||||
@@ -192,7 +192,7 @@ public:
|
||||
m_waveView = _wv;
|
||||
}
|
||||
|
||||
void setRelatedKnob( const knob * _knob )
|
||||
void setRelatedKnob( const Knob * _knob )
|
||||
{
|
||||
m_relatedKnob = _knob;
|
||||
}
|
||||
@@ -258,7 +258,7 @@ private:
|
||||
|
||||
public:
|
||||
AudioFileProcessorWaveView( QWidget * _parent, int _w, int _h, SampleBuffer& buf );
|
||||
void setKnobs( knob * _start, knob * _end, knob * _loop );
|
||||
void setKnobs(knob *_start, knob *_end, knob *_loop );
|
||||
|
||||
|
||||
private:
|
||||
|
||||
@@ -28,15 +28,15 @@
|
||||
#include "bit_invader.h"
|
||||
#include "base64.h"
|
||||
#include "Engine.h"
|
||||
#include "graph.h"
|
||||
#include "Graph.h"
|
||||
#include "InstrumentTrack.h"
|
||||
#include "knob.h"
|
||||
#include "led_checkbox.h"
|
||||
#include "Knob.h"
|
||||
#include "LedCheckbox.h"
|
||||
#include "NotePlayHandle.h"
|
||||
#include "Oscillator.h"
|
||||
#include "pixmap_button.h"
|
||||
#include "PixmapButton.h"
|
||||
#include "templates.h"
|
||||
#include "tooltip.h"
|
||||
#include "ToolTip.h"
|
||||
#include "Song.h"
|
||||
#include "interpolation.h"
|
||||
|
||||
@@ -333,16 +333,16 @@ bitInvaderView::bitInvaderView( Instrument * _instrument,
|
||||
"artwork" ) );
|
||||
setPalette( pal );
|
||||
|
||||
m_sampleLengthKnob = new knob( knobDark_28, this );
|
||||
m_sampleLengthKnob = new Knob( knobDark_28, this );
|
||||
m_sampleLengthKnob->move( 6, 201 );
|
||||
m_sampleLengthKnob->setHintText( tr( "Sample Length" ) + " ", "" );
|
||||
|
||||
m_graph = new graph( this, graph::NearestStyle, 204, 134 );
|
||||
m_graph = new Graph( this, Graph::NearestStyle, 204, 134 );
|
||||
m_graph->move(23,59); // 55,120 - 2px border
|
||||
m_graph->setAutoFillBackground( true );
|
||||
m_graph->setGraphColor( QColor( 255, 255, 255 ) );
|
||||
|
||||
toolTip::add( m_graph, tr ( "Draw your own waveform here "
|
||||
ToolTip::add( m_graph, tr ( "Draw your own waveform here "
|
||||
"by dragging your mouse on this graph."
|
||||
));
|
||||
|
||||
@@ -353,78 +353,78 @@ bitInvaderView::bitInvaderView( Instrument * _instrument,
|
||||
m_graph->setPalette( pal );
|
||||
|
||||
|
||||
m_sinWaveBtn = new pixmapButton( this, tr( "Sine wave" ) );
|
||||
m_sinWaveBtn = new PixmapButton( this, tr( "Sine wave" ) );
|
||||
m_sinWaveBtn->move( 131, 205 );
|
||||
m_sinWaveBtn->setActiveGraphic( embed::getIconPixmap(
|
||||
"sin_wave_active" ) );
|
||||
m_sinWaveBtn->setInactiveGraphic( embed::getIconPixmap(
|
||||
"sin_wave_inactive" ) );
|
||||
toolTip::add( m_sinWaveBtn,
|
||||
ToolTip::add( m_sinWaveBtn,
|
||||
tr( "Click for a sine-wave." ) );
|
||||
|
||||
m_triangleWaveBtn = new pixmapButton( this, tr( "Triangle wave" ) );
|
||||
m_triangleWaveBtn = new PixmapButton( this, tr( "Triangle wave" ) );
|
||||
m_triangleWaveBtn->move( 131 + 14, 205 );
|
||||
m_triangleWaveBtn->setActiveGraphic(
|
||||
embed::getIconPixmap( "triangle_wave_active" ) );
|
||||
m_triangleWaveBtn->setInactiveGraphic(
|
||||
embed::getIconPixmap( "triangle_wave_inactive" ) );
|
||||
toolTip::add( m_triangleWaveBtn,
|
||||
ToolTip::add( m_triangleWaveBtn,
|
||||
tr( "Click here for a triangle-wave." ) );
|
||||
|
||||
m_sawWaveBtn = new pixmapButton( this, tr( "Saw wave" ) );
|
||||
m_sawWaveBtn = new PixmapButton( this, tr( "Saw wave" ) );
|
||||
m_sawWaveBtn->move( 131 + 14*2, 205 );
|
||||
m_sawWaveBtn->setActiveGraphic( embed::getIconPixmap(
|
||||
"saw_wave_active" ) );
|
||||
m_sawWaveBtn->setInactiveGraphic( embed::getIconPixmap(
|
||||
"saw_wave_inactive" ) );
|
||||
toolTip::add( m_sawWaveBtn,
|
||||
ToolTip::add( m_sawWaveBtn,
|
||||
tr( "Click here for a saw-wave." ) );
|
||||
|
||||
m_sqrWaveBtn = new pixmapButton( this, tr( "Square wave" ) );
|
||||
m_sqrWaveBtn = new PixmapButton( this, tr( "Square wave" ) );
|
||||
m_sqrWaveBtn->move( 131 + 14*3, 205 );
|
||||
m_sqrWaveBtn->setActiveGraphic( embed::getIconPixmap(
|
||||
"square_wave_active" ) );
|
||||
m_sqrWaveBtn->setInactiveGraphic( embed::getIconPixmap(
|
||||
"square_wave_inactive" ) );
|
||||
toolTip::add( m_sqrWaveBtn,
|
||||
ToolTip::add( m_sqrWaveBtn,
|
||||
tr( "Click here for a square-wave." ) );
|
||||
|
||||
m_whiteNoiseWaveBtn = new pixmapButton( this,
|
||||
m_whiteNoiseWaveBtn = new PixmapButton( this,
|
||||
tr( "White noise wave" ) );
|
||||
m_whiteNoiseWaveBtn->move( 131 + 14*4, 205 );
|
||||
m_whiteNoiseWaveBtn->setActiveGraphic(
|
||||
embed::getIconPixmap( "white_noise_wave_active" ) );
|
||||
m_whiteNoiseWaveBtn->setInactiveGraphic(
|
||||
embed::getIconPixmap( "white_noise_wave_inactive" ) );
|
||||
toolTip::add( m_whiteNoiseWaveBtn,
|
||||
ToolTip::add( m_whiteNoiseWaveBtn,
|
||||
tr( "Click here for white-noise." ) );
|
||||
|
||||
m_usrWaveBtn = new pixmapButton( this, tr( "User defined wave" ) );
|
||||
m_usrWaveBtn = new PixmapButton( this, tr( "User defined wave" ) );
|
||||
m_usrWaveBtn->move( 131 + 14*5, 205 );
|
||||
m_usrWaveBtn->setActiveGraphic( embed::getIconPixmap(
|
||||
"usr_wave_active" ) );
|
||||
m_usrWaveBtn->setInactiveGraphic( embed::getIconPixmap(
|
||||
"usr_wave_inactive" ) );
|
||||
toolTip::add( m_usrWaveBtn,
|
||||
ToolTip::add( m_usrWaveBtn,
|
||||
tr( "Click here for a user-defined shape." ) );
|
||||
|
||||
m_smoothBtn = new pixmapButton( this, tr( "Smooth" ) );
|
||||
m_smoothBtn = new PixmapButton( this, tr( "Smooth" ) );
|
||||
m_smoothBtn->move( 131 + 14*6, 205 );
|
||||
m_smoothBtn->setActiveGraphic( PLUGIN_NAME::getIconPixmap(
|
||||
"smooth_active" ) );
|
||||
m_smoothBtn->setInactiveGraphic( PLUGIN_NAME::getIconPixmap(
|
||||
"smooth_inactive" ) );
|
||||
toolTip::add( m_smoothBtn,
|
||||
ToolTip::add( m_smoothBtn,
|
||||
tr( "Click here to smooth waveform." ) );
|
||||
|
||||
|
||||
m_interpolationToggle = new ledCheckBox( "Interpolation", this,
|
||||
tr( "Interpolation" ), ledCheckBox::Yellow );
|
||||
m_interpolationToggle = new LedCheckBox( "Interpolation", this,
|
||||
tr( "Interpolation" ), LedCheckBox::Yellow );
|
||||
m_interpolationToggle->move( 131, 221 );
|
||||
|
||||
|
||||
m_normalizeToggle = new ledCheckBox( "Normalize", this,
|
||||
tr( "Normalize" ), ledCheckBox::Green );
|
||||
m_normalizeToggle = new LedCheckBox( "Normalize", this,
|
||||
tr( "Normalize" ), LedCheckBox::Green );
|
||||
m_normalizeToggle->move( 131, 236 );
|
||||
|
||||
|
||||
@@ -517,7 +517,7 @@ void bitInvaderView::noiseWaveClicked()
|
||||
void bitInvaderView::usrWaveClicked()
|
||||
{
|
||||
QString fileName = m_graph->model()->setWaveToUser();
|
||||
toolTip::add( m_usrWaveBtn, fileName );
|
||||
ToolTip::add( m_usrWaveBtn, fileName );
|
||||
Engine::getSong()->setModified();
|
||||
/*
|
||||
m_graph->model()->setWaveToNoise();
|
||||
@@ -562,7 +562,7 @@ void bitInvaderView::smoothClicked()
|
||||
|
||||
void bitInvaderView::interpolationToggled( bool value )
|
||||
{
|
||||
m_graph->setGraphStyle( value ? graph::LinearStyle : graph::NearestStyle);
|
||||
m_graph->setGraphStyle( value ? Graph::LinearStyle : Graph::NearestStyle);
|
||||
Engine::getSong()->setModified();
|
||||
}
|
||||
|
||||
|
||||
@@ -29,10 +29,10 @@
|
||||
|
||||
#include "Instrument.h"
|
||||
#include "InstrumentView.h"
|
||||
#include "graph.h"
|
||||
#include "knob.h"
|
||||
#include "pixmap_button.h"
|
||||
#include "led_checkbox.h"
|
||||
#include "Graph.h"
|
||||
#include "Knob.h"
|
||||
#include "PixmapButton.h"
|
||||
#include "LedCheckbox.h"
|
||||
#include "MemoryManager.h"
|
||||
|
||||
class oscillator;
|
||||
@@ -135,20 +135,20 @@ protected slots:
|
||||
private:
|
||||
virtual void modelChanged();
|
||||
|
||||
knob * m_sampleLengthKnob;
|
||||
pixmapButton * m_sinWaveBtn;
|
||||
pixmapButton * m_triangleWaveBtn;
|
||||
pixmapButton * m_sqrWaveBtn;
|
||||
pixmapButton * m_sawWaveBtn;
|
||||
pixmapButton * m_whiteNoiseWaveBtn;
|
||||
pixmapButton * m_smoothBtn;
|
||||
pixmapButton * m_usrWaveBtn;
|
||||
Knob * m_sampleLengthKnob;
|
||||
PixmapButton * m_sinWaveBtn;
|
||||
PixmapButton * m_triangleWaveBtn;
|
||||
PixmapButton * m_sqrWaveBtn;
|
||||
PixmapButton * m_sawWaveBtn;
|
||||
PixmapButton * m_whiteNoiseWaveBtn;
|
||||
PixmapButton * m_smoothBtn;
|
||||
PixmapButton * m_usrWaveBtn;
|
||||
|
||||
static QPixmap * s_artwork;
|
||||
|
||||
graph * m_graph;
|
||||
ledCheckBox * m_interpolationToggle;
|
||||
ledCheckBox * m_normalizeToggle;
|
||||
Graph * m_graph;
|
||||
LedCheckBox * m_interpolationToggle;
|
||||
LedCheckBox * m_normalizeToggle;
|
||||
|
||||
} ;
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
#define DELAYCONTROLS_H
|
||||
|
||||
#include "EffectControls.h"
|
||||
#include "knob.h"
|
||||
#include "Knob.h"
|
||||
#include "delaycontrolsdialog.h"
|
||||
|
||||
|
||||
|
||||
@@ -46,7 +46,7 @@ DelayControlsDialog::DelayControlsDialog( DelayControls *controls ) :
|
||||
sampleDelayKnob->setLabel( tr( "Delay" ) );
|
||||
sampleDelayKnob->setHintText( tr( "Delay Time Seconds:" ) + " ", "" );
|
||||
|
||||
knob * feedbackKnob = new knob( knobBright_26, this );
|
||||
Knob * feedbackKnob = new Knob( knobBright_26, this );
|
||||
feedbackKnob->move( 63,10 );
|
||||
feedbackKnob->setVolumeKnob( true) ;
|
||||
feedbackKnob->setModel( &controls->m_feedbackModel);
|
||||
@@ -60,7 +60,7 @@ DelayControlsDialog::DelayControlsDialog( DelayControls *controls ) :
|
||||
lfoFreqKnob->setLabel( tr( "Rate" ) );
|
||||
lfoFreqKnob->setHintText( tr ( "Lfo Seconds:" ) + " ", "" );
|
||||
|
||||
knob * lfoAmtKnob = new knob( knobBright_26, this );
|
||||
Knob * lfoAmtKnob = new Knob( knobBright_26, this );
|
||||
lfoAmtKnob->move( 150,10 );
|
||||
lfoAmtKnob->setVolumeKnob( true );
|
||||
lfoAmtKnob->setModel( &controls->m_lfoAmountModel );
|
||||
|
||||
@@ -29,10 +29,10 @@
|
||||
#include "dynamics_processor_control_dialog.h"
|
||||
#include "dynamics_processor_controls.h"
|
||||
#include "embed.h"
|
||||
#include "graph.h"
|
||||
#include "pixmap_button.h"
|
||||
#include "tooltip.h"
|
||||
#include "led_checkbox.h"
|
||||
#include "Graph.h"
|
||||
#include "PixmapButton.h"
|
||||
#include "ToolTip.h"
|
||||
#include "LedCheckbox.h"
|
||||
|
||||
|
||||
dynProcControlDialog::dynProcControlDialog(
|
||||
@@ -46,7 +46,7 @@ dynProcControlDialog::dynProcControlDialog(
|
||||
setPalette( pal );
|
||||
setFixedSize( 224, 340 );
|
||||
|
||||
graph * waveGraph = new graph( this, graph::LinearNonCyclicStyle, 204, 205 );
|
||||
Graph * waveGraph = new Graph( this, Graph::LinearNonCyclicStyle, 204, 205 );
|
||||
waveGraph -> move( 10, 32 );
|
||||
waveGraph -> setModel( &_controls -> m_wavegraphModel );
|
||||
waveGraph -> setAutoFillBackground( true );
|
||||
@@ -57,7 +57,7 @@ dynProcControlDialog::dynProcControlDialog(
|
||||
waveGraph->setGraphColor( QColor( 170, 255, 255 ) );
|
||||
waveGraph -> setMaximumSize( 204, 205 );
|
||||
|
||||
knob * inputKnob = new knob( knobBright_26, this);
|
||||
Knob * inputKnob = new Knob( knobBright_26, this);
|
||||
inputKnob -> setVolumeKnob( true );
|
||||
inputKnob -> setVolumeRatio( 1.0 );
|
||||
inputKnob -> move( 14, 251 );
|
||||
@@ -65,7 +65,7 @@ dynProcControlDialog::dynProcControlDialog(
|
||||
inputKnob->setLabel( tr( "INPUT" ) );
|
||||
inputKnob->setHintText( tr( "Input gain:" ) + " ", "" );
|
||||
|
||||
knob * outputKnob = new knob( knobBright_26, this );
|
||||
Knob * outputKnob = new Knob( knobBright_26, this );
|
||||
outputKnob -> setVolumeKnob( true );
|
||||
outputKnob -> setVolumeRatio( 1.0 );
|
||||
outputKnob -> move( 54, 251 );
|
||||
@@ -73,13 +73,13 @@ dynProcControlDialog::dynProcControlDialog(
|
||||
outputKnob->setLabel( tr( "OUTPUT" ) );
|
||||
outputKnob->setHintText( tr( "Output gain:" ) + " ", "" );
|
||||
|
||||
knob * attackKnob = new knob( knobBright_26, this);
|
||||
Knob * attackKnob = new Knob( knobBright_26, this);
|
||||
attackKnob -> move( 11, 291 );
|
||||
attackKnob->setModel( &_controls->m_attackModel );
|
||||
attackKnob->setLabel( tr( "ATTACK" ) );
|
||||
attackKnob->setHintText( tr( "Peak attack time:" ) + " ", "ms" );
|
||||
|
||||
knob * releaseKnob = new knob( knobBright_26, this );
|
||||
Knob * releaseKnob = new Knob( knobBright_26, this );
|
||||
releaseKnob -> move( 52, 291 );
|
||||
releaseKnob->setModel( &_controls->m_releaseModel );
|
||||
releaseKnob->setLabel( tr( "RELEASE" ) );
|
||||
@@ -87,55 +87,55 @@ dynProcControlDialog::dynProcControlDialog(
|
||||
|
||||
//waveform control buttons
|
||||
|
||||
pixmapButton * resetButton = new pixmapButton( this, tr("Reset waveform") );
|
||||
PixmapButton * resetButton = new PixmapButton( this, tr("Reset waveform") );
|
||||
resetButton -> move( 164, 251 );
|
||||
resetButton -> resize( 12, 48 );
|
||||
resetButton -> setActiveGraphic( PLUGIN_NAME::getIconPixmap( "reset_active" ) );
|
||||
resetButton -> setInactiveGraphic( PLUGIN_NAME::getIconPixmap( "reset_inactive" ) );
|
||||
toolTip::add( resetButton, tr( "Click here to reset the wavegraph back to default" ) );
|
||||
ToolTip::add( resetButton, tr( "Click here to reset the wavegraph back to default" ) );
|
||||
|
||||
pixmapButton * smoothButton = new pixmapButton( this, tr("Smooth waveform") );
|
||||
PixmapButton * smoothButton = new PixmapButton( this, tr("Smooth waveform") );
|
||||
smoothButton -> move( 164, 267 );
|
||||
smoothButton -> resize( 12, 48 );
|
||||
smoothButton -> setActiveGraphic( PLUGIN_NAME::getIconPixmap( "smooth_active" ) );
|
||||
smoothButton -> setInactiveGraphic( PLUGIN_NAME::getIconPixmap( "smooth_inactive" ) );
|
||||
toolTip::add( smoothButton, tr( "Click here to apply smoothing to wavegraph" ) );
|
||||
ToolTip::add( smoothButton, tr( "Click here to apply smoothing to wavegraph" ) );
|
||||
|
||||
pixmapButton * addOneButton = new pixmapButton( this, tr("Increase wavegraph amplitude by 1dB") );
|
||||
PixmapButton * addOneButton = new PixmapButton( this, tr("Increase wavegraph amplitude by 1dB") );
|
||||
addOneButton -> move( 133, 251 );
|
||||
addOneButton -> resize( 12, 29 );
|
||||
addOneButton -> setActiveGraphic( PLUGIN_NAME::getIconPixmap( "add1_active" ) );
|
||||
addOneButton -> setInactiveGraphic( PLUGIN_NAME::getIconPixmap( "add1_inactive" ) );
|
||||
toolTip::add( addOneButton, tr( "Click here to increase wavegraph amplitude by 1dB" ) );
|
||||
ToolTip::add( addOneButton, tr( "Click here to increase wavegraph amplitude by 1dB" ) );
|
||||
|
||||
pixmapButton * subOneButton = new pixmapButton( this, tr("Decrease wavegraph amplitude by 1dB") );
|
||||
PixmapButton * subOneButton = new PixmapButton( this, tr("Decrease wavegraph amplitude by 1dB") );
|
||||
subOneButton -> move( 133, 267 );
|
||||
subOneButton -> resize( 12, 29 );
|
||||
subOneButton -> setActiveGraphic( PLUGIN_NAME::getIconPixmap( "sub1_active" ) );
|
||||
subOneButton -> setInactiveGraphic( PLUGIN_NAME::getIconPixmap( "sub1_inactive" ) );
|
||||
toolTip::add( subOneButton, tr( "Click here to decrease wavegraph amplitude by 1dB" ) );
|
||||
ToolTip::add( subOneButton, tr( "Click here to decrease wavegraph amplitude by 1dB" ) );
|
||||
|
||||
//stereomode switches
|
||||
pixmapButton * smMaxButton = new pixmapButton( this, tr( "Stereomode Maximum" ) );
|
||||
PixmapButton * smMaxButton = new PixmapButton( this, tr( "Stereomode Maximum" ) );
|
||||
smMaxButton -> move( 165, 290 );
|
||||
smMaxButton -> resize( 48, 13 );
|
||||
smMaxButton -> setActiveGraphic( PLUGIN_NAME::getIconPixmap( "max_active" ) );
|
||||
smMaxButton -> setInactiveGraphic( PLUGIN_NAME::getIconPixmap( "max_inactive" ) );
|
||||
toolTip::add( smMaxButton, tr( "Process based on the maximum of both stereo channels" ) );
|
||||
ToolTip::add( smMaxButton, tr( "Process based on the maximum of both stereo channels" ) );
|
||||
|
||||
pixmapButton * smAvgButton = new pixmapButton( this, tr( "Stereomode Average" ) );
|
||||
PixmapButton * smAvgButton = new PixmapButton( this, tr( "Stereomode Average" ) );
|
||||
smAvgButton -> move( 165, 290 + 13 );
|
||||
smAvgButton -> resize( 48, 13 );
|
||||
smAvgButton -> setActiveGraphic( PLUGIN_NAME::getIconPixmap( "avg_active" ) );
|
||||
smAvgButton -> setInactiveGraphic( PLUGIN_NAME::getIconPixmap( "avg_inactive" ) );
|
||||
toolTip::add( smAvgButton, tr( "Process based on the average of both stereo channels" ) );
|
||||
ToolTip::add( smAvgButton, tr( "Process based on the average of both stereo channels" ) );
|
||||
|
||||
pixmapButton * smUnlButton = new pixmapButton( this, tr( "Stereomode Unlinked" ) );
|
||||
PixmapButton * smUnlButton = new PixmapButton( this, tr( "Stereomode Unlinked" ) );
|
||||
smUnlButton -> move( 165, 290 + (13*2) );
|
||||
smUnlButton -> resize( 48, 13 );
|
||||
smUnlButton -> setActiveGraphic( PLUGIN_NAME::getIconPixmap( "unl_active" ) );
|
||||
smUnlButton -> setInactiveGraphic( PLUGIN_NAME::getIconPixmap( "unl_inactive" ) );
|
||||
toolTip::add( smUnlButton, tr( "Process each stereo channel independently" ) );
|
||||
ToolTip::add( smUnlButton, tr( "Process each stereo channel independently" ) );
|
||||
|
||||
automatableButtonGroup * smGroup = new automatableButtonGroup( this );
|
||||
smGroup -> addButton( smMaxButton );
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
#include "dynamics_processor_controls.h"
|
||||
#include "dynamics_processor.h"
|
||||
#include "base64.h"
|
||||
#include "graph.h"
|
||||
#include "Graph.h"
|
||||
#include "Engine.h"
|
||||
#include "Song.h"
|
||||
|
||||
|
||||
@@ -28,8 +28,8 @@
|
||||
|
||||
#include "EffectControls.h"
|
||||
#include "dynamics_processor_control_dialog.h"
|
||||
#include "knob.h"
|
||||
#include "graph.h"
|
||||
#include "Knob.h"
|
||||
#include "Graph.h"
|
||||
|
||||
class dynProcEffect;
|
||||
|
||||
|
||||
@@ -35,23 +35,23 @@
|
||||
#include "basic_filters.h"
|
||||
#include "bb_track.h"
|
||||
#include "BBTrackContainer.h"
|
||||
#include "combobox.h"
|
||||
#include "ComboBox.h"
|
||||
#include "ConfigManager.h"
|
||||
#include "debug.h"
|
||||
#include "Effect.h"
|
||||
#include "Engine.h"
|
||||
#include "FxMixer.h"
|
||||
#include "FxMixerView.h"
|
||||
#include "group_box.h"
|
||||
#include "GroupBox.h"
|
||||
#include "Instrument.h"
|
||||
#include "InstrumentTrack.h"
|
||||
#include "EnvelopeAndLfoParameters.h"
|
||||
#include "knob.h"
|
||||
#include "Knob.h"
|
||||
#include "Oscillator.h"
|
||||
#include "Pattern.h"
|
||||
#include "Piano.h"
|
||||
#include "ProjectJournal.h"
|
||||
#include "project_notes.h"
|
||||
#include "ProjectNotes.h"
|
||||
#include "Song.h"
|
||||
#include "TrackContainer.h"
|
||||
#include "embed.h"
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
#include "kicker.h"
|
||||
#include "Engine.h"
|
||||
#include "InstrumentTrack.h"
|
||||
#include "knob.h"
|
||||
#include "Knob.h"
|
||||
#include "NotePlayHandle.h"
|
||||
#include "KickerOsc.h"
|
||||
|
||||
@@ -226,11 +226,11 @@ PluginView * kickerInstrument::instantiateView( QWidget * _parent )
|
||||
|
||||
|
||||
|
||||
class kickerKnob : public knob
|
||||
class kickerKnob : public Knob
|
||||
{
|
||||
public:
|
||||
kickerKnob( QWidget * _parent ) :
|
||||
knob( knobStyled, _parent )
|
||||
Knob( knobStyled, _parent )
|
||||
{
|
||||
setFixedSize( 29, 29 );
|
||||
setObjectName( "smallKnob" );
|
||||
@@ -250,11 +250,11 @@ public:
|
||||
};
|
||||
|
||||
|
||||
class kickerLargeKnob : public knob
|
||||
class kickerLargeKnob : public Knob
|
||||
{
|
||||
public:
|
||||
kickerLargeKnob( QWidget * _parent ) :
|
||||
knob( knobStyled, _parent )
|
||||
Knob( knobStyled, _parent )
|
||||
{
|
||||
setFixedSize( 34, 34 );
|
||||
setObjectName( "largeKnob" );
|
||||
@@ -319,10 +319,10 @@ kickerInstrumentView::kickerInstrumentView( Instrument * _instrument,
|
||||
m_distEndKnob->setHintText( tr( "Distortion End:" ) + " ", "" );
|
||||
m_distEndKnob->move( COL5, ROW2 );
|
||||
|
||||
m_startNoteToggle = new ledCheckBox( "", this, "", ledCheckBox::Green );
|
||||
m_startNoteToggle = new LedCheckBox( "", this, "", LedCheckBox::Green );
|
||||
m_startNoteToggle->move( COL1 + 8, LED_ROW );
|
||||
|
||||
m_endNoteToggle = new ledCheckBox( "", this, "", ledCheckBox::Green );
|
||||
m_endNoteToggle = new LedCheckBox( "", this, "", LedCheckBox::Green );
|
||||
m_endNoteToggle->move( END_COL + 8, LED_ROW );
|
||||
|
||||
setAutoFillBackground( true );
|
||||
|
||||
@@ -30,8 +30,8 @@
|
||||
#include <QObject>
|
||||
#include "Instrument.h"
|
||||
#include "InstrumentView.h"
|
||||
#include "knob.h"
|
||||
#include "led_checkbox.h"
|
||||
#include "Knob.h"
|
||||
#include "LedCheckbox.h"
|
||||
#include "TempoSyncKnob.h"
|
||||
|
||||
|
||||
@@ -103,19 +103,19 @@ public:
|
||||
private:
|
||||
virtual void modelChanged();
|
||||
|
||||
knob * m_startFreqKnob;
|
||||
knob * m_endFreqKnob;
|
||||
knob * m_decayKnob;
|
||||
knob * m_distKnob;
|
||||
knob * m_distEndKnob;
|
||||
knob * m_gainKnob;
|
||||
knob * m_envKnob;
|
||||
knob * m_noiseKnob;
|
||||
knob * m_clickKnob;
|
||||
knob * m_slopeKnob;
|
||||
Knob * m_startFreqKnob;
|
||||
Knob * m_endFreqKnob;
|
||||
Knob * m_decayKnob;
|
||||
Knob * m_distKnob;
|
||||
Knob * m_distEndKnob;
|
||||
Knob * m_gainKnob;
|
||||
Knob * m_envKnob;
|
||||
Knob * m_noiseKnob;
|
||||
Knob * m_clickKnob;
|
||||
Knob * m_slopeKnob;
|
||||
|
||||
ledCheckBox * m_startNoteToggle;
|
||||
ledCheckBox * m_endNoteToggle;
|
||||
LedCheckBox * m_startNoteToggle;
|
||||
LedCheckBox * m_endNoteToggle;
|
||||
|
||||
} ;
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
#include "gui_templates.h"
|
||||
#include "ladspa_description.h"
|
||||
#include "ladspa_port_dialog.h"
|
||||
#include "tab_bar.h"
|
||||
#include "TabBar.h"
|
||||
#include "tab_button.h"
|
||||
|
||||
#include "embed.cpp"
|
||||
@@ -103,7 +103,7 @@ ladspaBrowserView::ladspaBrowserView( ToolPlugin * _tool ) :
|
||||
hlayout->setSpacing( 0 );
|
||||
hlayout->setMargin( 0 );
|
||||
|
||||
m_tabBar = new tabBar( this, QBoxLayout::TopToBottom );
|
||||
m_tabBar = new TabBar( this, QBoxLayout::TopToBottom );
|
||||
m_tabBar->setExclusive( true );
|
||||
m_tabBar->setFixedWidth( 72 );
|
||||
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
#include "ToolPlugin.h"
|
||||
#include "ToolPluginView.h"
|
||||
|
||||
class tabBar;
|
||||
class TabBar;
|
||||
|
||||
|
||||
class ladspaBrowserView : public ToolPluginView
|
||||
@@ -47,7 +47,7 @@ public slots:
|
||||
|
||||
|
||||
private:
|
||||
tabBar * m_tabBar;
|
||||
TabBar * m_tabBar;
|
||||
|
||||
QWidget * createTab( QWidget * _parent, const QString & _txt,
|
||||
ladspaPluginType _type );
|
||||
|
||||
@@ -33,12 +33,12 @@
|
||||
#include "Engine.h"
|
||||
#include "InstrumentPlayHandle.h"
|
||||
#include "InstrumentTrack.h"
|
||||
#include "knob.h"
|
||||
#include "Knob.h"
|
||||
#include "NotePlayHandle.h"
|
||||
#include "Oscillator.h"
|
||||
#include "pixmap_button.h"
|
||||
#include "PixmapButton.h"
|
||||
#include "templates.h"
|
||||
#include "tooltip.h"
|
||||
#include "ToolTip.h"
|
||||
#include "BandLimitedWave.h"
|
||||
|
||||
#include "embed.cpp"
|
||||
@@ -822,48 +822,48 @@ lb302SynthView::lb302SynthView( Instrument * _instrument, QWidget * _parent ) :
|
||||
InstrumentView( _instrument, _parent )
|
||||
{
|
||||
// GUI
|
||||
m_vcfCutKnob = new knob( knobBright_26, this );
|
||||
m_vcfCutKnob = new Knob( knobBright_26, this );
|
||||
m_vcfCutKnob->move( 75, 130 );
|
||||
m_vcfCutKnob->setHintText( tr( "Cutoff Freq:" ) + " ", "" );
|
||||
m_vcfCutKnob->setLabel( "" );
|
||||
|
||||
m_vcfResKnob = new knob( knobBright_26, this );
|
||||
m_vcfResKnob = new Knob( knobBright_26, this );
|
||||
m_vcfResKnob->move( 120, 130 );
|
||||
m_vcfResKnob->setHintText( tr( "Resonance:" ) + " ", "" );
|
||||
m_vcfResKnob->setLabel( "" );
|
||||
|
||||
m_vcfModKnob = new knob( knobBright_26, this );
|
||||
m_vcfModKnob = new Knob( knobBright_26, this );
|
||||
m_vcfModKnob->move( 165, 130 );
|
||||
m_vcfModKnob->setHintText( tr( "Env Mod:" ) + " ", "" );
|
||||
m_vcfModKnob->setLabel( "" );
|
||||
|
||||
m_vcfDecKnob = new knob( knobBright_26, this );
|
||||
m_vcfDecKnob = new Knob( knobBright_26, this );
|
||||
m_vcfDecKnob->move( 210, 130 );
|
||||
m_vcfDecKnob->setHintText( tr( "Decay:" ) + " ", "" );
|
||||
m_vcfDecKnob->setLabel( "" );
|
||||
|
||||
m_slideToggle = new ledCheckBox( "", this );
|
||||
m_slideToggle = new LedCheckBox( "", this );
|
||||
m_slideToggle->move( 10, 180 );
|
||||
|
||||
/* m_accentToggle = new ledCheckBox( "", this );
|
||||
/* m_accentToggle = new LedCheckBox( "", this );
|
||||
m_accentToggle->move( 10, 200 );
|
||||
m_accentToggle->setDisabled(true);*/ // accent removed pending real implementation - no need for non-functional buttons
|
||||
|
||||
m_deadToggle = new ledCheckBox( "", this );
|
||||
m_deadToggle = new LedCheckBox( "", this );
|
||||
m_deadToggle->move( 10, 200 );
|
||||
|
||||
m_db24Toggle = new ledCheckBox( "", this );
|
||||
m_db24Toggle = new LedCheckBox( "", this );
|
||||
m_db24Toggle->setWhatsThis(
|
||||
tr( "303-es-que, 24dB/octave, 3 pole filter" ) );
|
||||
m_db24Toggle->move( 10, 150);
|
||||
|
||||
|
||||
m_slideDecKnob = new knob( knobBright_26, this );
|
||||
m_slideDecKnob = new Knob( knobBright_26, this );
|
||||
m_slideDecKnob->move( 210, 75 );
|
||||
m_slideDecKnob->setHintText( tr( "Slide Decay:" ) + " ", "" );
|
||||
m_slideDecKnob->setLabel( "");
|
||||
|
||||
m_distKnob = new knob( knobBright_26, this );
|
||||
m_distKnob = new Knob( knobBright_26, this );
|
||||
m_distKnob->move( 210, 190 );
|
||||
m_distKnob->setHintText( tr( "DIST:" ) + " ", "" );
|
||||
m_distKnob->setLabel( tr( ""));
|
||||
@@ -873,122 +873,122 @@ lb302SynthView::lb302SynthView( Instrument * _instrument, QWidget * _parent ) :
|
||||
// move to 120,75
|
||||
const int waveBtnX = 10;
|
||||
const int waveBtnY = 96;
|
||||
pixmapButton * sawWaveBtn = new pixmapButton( this, tr( "Saw wave" ) );
|
||||
PixmapButton * sawWaveBtn = new PixmapButton( this, tr( "Saw wave" ) );
|
||||
sawWaveBtn->move( waveBtnX, waveBtnY );
|
||||
sawWaveBtn->setActiveGraphic( embed::getIconPixmap(
|
||||
"saw_wave_active" ) );
|
||||
sawWaveBtn->setInactiveGraphic( embed::getIconPixmap(
|
||||
"saw_wave_inactive" ) );
|
||||
toolTip::add( sawWaveBtn,
|
||||
ToolTip::add( sawWaveBtn,
|
||||
tr( "Click here for a saw-wave." ) );
|
||||
|
||||
pixmapButton * triangleWaveBtn =
|
||||
new pixmapButton( this, tr( "Triangle wave" ) );
|
||||
PixmapButton * triangleWaveBtn =
|
||||
new PixmapButton( this, tr( "Triangle wave" ) );
|
||||
triangleWaveBtn->move( waveBtnX+(16*1), waveBtnY );
|
||||
triangleWaveBtn->setActiveGraphic(
|
||||
embed::getIconPixmap( "triangle_wave_active" ) );
|
||||
triangleWaveBtn->setInactiveGraphic(
|
||||
embed::getIconPixmap( "triangle_wave_inactive" ) );
|
||||
toolTip::add( triangleWaveBtn,
|
||||
ToolTip::add( triangleWaveBtn,
|
||||
tr( "Click here for a triangle-wave." ) );
|
||||
|
||||
pixmapButton * sqrWaveBtn = new pixmapButton( this, tr( "Square wave" ) );
|
||||
PixmapButton * sqrWaveBtn = new PixmapButton( this, tr( "Square wave" ) );
|
||||
sqrWaveBtn->move( waveBtnX+(16*2), waveBtnY );
|
||||
sqrWaveBtn->setActiveGraphic( embed::getIconPixmap(
|
||||
"square_wave_active" ) );
|
||||
sqrWaveBtn->setInactiveGraphic( embed::getIconPixmap(
|
||||
"square_wave_inactive" ) );
|
||||
toolTip::add( sqrWaveBtn,
|
||||
ToolTip::add( sqrWaveBtn,
|
||||
tr( "Click here for a square-wave." ) );
|
||||
|
||||
pixmapButton * roundSqrWaveBtn =
|
||||
new pixmapButton( this, tr( "Rounded square wave" ) );
|
||||
PixmapButton * roundSqrWaveBtn =
|
||||
new PixmapButton( this, tr( "Rounded square wave" ) );
|
||||
roundSqrWaveBtn->move( waveBtnX+(16*3), waveBtnY );
|
||||
roundSqrWaveBtn->setActiveGraphic( embed::getIconPixmap(
|
||||
"round_square_wave_active" ) );
|
||||
roundSqrWaveBtn->setInactiveGraphic( embed::getIconPixmap(
|
||||
"round_square_wave_inactive" ) );
|
||||
toolTip::add( roundSqrWaveBtn,
|
||||
ToolTip::add( roundSqrWaveBtn,
|
||||
tr( "Click here for a square-wave with a rounded end." ) );
|
||||
|
||||
pixmapButton * moogWaveBtn =
|
||||
new pixmapButton( this, tr( "Moog wave" ) );
|
||||
PixmapButton * moogWaveBtn =
|
||||
new PixmapButton( this, tr( "Moog wave" ) );
|
||||
moogWaveBtn->move( waveBtnX+(16*4), waveBtnY );
|
||||
moogWaveBtn->setActiveGraphic(
|
||||
embed::getIconPixmap( "moog_saw_wave_active" ) );
|
||||
moogWaveBtn->setInactiveGraphic(
|
||||
embed::getIconPixmap( "moog_saw_wave_inactive" ) );
|
||||
toolTip::add( moogWaveBtn,
|
||||
ToolTip::add( moogWaveBtn,
|
||||
tr( "Click here for a moog-like wave." ) );
|
||||
|
||||
pixmapButton * sinWaveBtn = new pixmapButton( this, tr( "Sine wave" ) );
|
||||
PixmapButton * sinWaveBtn = new PixmapButton( this, tr( "Sine wave" ) );
|
||||
sinWaveBtn->move( waveBtnX+(16*5), waveBtnY );
|
||||
sinWaveBtn->setActiveGraphic( embed::getIconPixmap(
|
||||
"sin_wave_active" ) );
|
||||
sinWaveBtn->setInactiveGraphic( embed::getIconPixmap(
|
||||
"sin_wave_inactive" ) );
|
||||
toolTip::add( sinWaveBtn,
|
||||
ToolTip::add( sinWaveBtn,
|
||||
tr( "Click for a sine-wave." ) );
|
||||
|
||||
pixmapButton * exponentialWaveBtn =
|
||||
new pixmapButton( this, tr( "White noise wave" ) );
|
||||
PixmapButton * exponentialWaveBtn =
|
||||
new PixmapButton( this, tr( "White noise wave" ) );
|
||||
exponentialWaveBtn->move( waveBtnX+(16*6), waveBtnY );
|
||||
exponentialWaveBtn->setActiveGraphic(
|
||||
embed::getIconPixmap( "exp_wave_active" ) );
|
||||
exponentialWaveBtn->setInactiveGraphic(
|
||||
embed::getIconPixmap( "exp_wave_inactive" ) );
|
||||
toolTip::add( exponentialWaveBtn,
|
||||
ToolTip::add( exponentialWaveBtn,
|
||||
tr( "Click here for an exponential wave." ) );
|
||||
|
||||
|
||||
pixmapButton * whiteNoiseWaveBtn =
|
||||
new pixmapButton( this, tr( "White noise wave" ) );
|
||||
PixmapButton * whiteNoiseWaveBtn =
|
||||
new PixmapButton( this, tr( "White noise wave" ) );
|
||||
whiteNoiseWaveBtn->move( waveBtnX+(16*7), waveBtnY );
|
||||
whiteNoiseWaveBtn->setActiveGraphic(
|
||||
embed::getIconPixmap( "white_noise_wave_active" ) );
|
||||
whiteNoiseWaveBtn->setInactiveGraphic(
|
||||
embed::getIconPixmap( "white_noise_wave_inactive" ) );
|
||||
toolTip::add( whiteNoiseWaveBtn,
|
||||
ToolTip::add( whiteNoiseWaveBtn,
|
||||
tr( "Click here for white-noise." ) );
|
||||
|
||||
pixmapButton * blSawWaveBtn =
|
||||
new pixmapButton( this, tr( "Bandlimited saw wave" ) );
|
||||
PixmapButton * blSawWaveBtn =
|
||||
new PixmapButton( this, tr( "Bandlimited saw wave" ) );
|
||||
blSawWaveBtn->move( waveBtnX+(16*9)-8, waveBtnY );
|
||||
blSawWaveBtn->setActiveGraphic(
|
||||
embed::getIconPixmap( "saw_wave_active" ) );
|
||||
blSawWaveBtn->setInactiveGraphic(
|
||||
embed::getIconPixmap( "saw_wave_inactive" ) );
|
||||
toolTip::add( blSawWaveBtn,
|
||||
ToolTip::add( blSawWaveBtn,
|
||||
tr( "Click here for bandlimited saw wave." ) );
|
||||
|
||||
pixmapButton * blSquareWaveBtn =
|
||||
new pixmapButton( this, tr( "Bandlimited square wave" ) );
|
||||
PixmapButton * blSquareWaveBtn =
|
||||
new PixmapButton( this, tr( "Bandlimited square wave" ) );
|
||||
blSquareWaveBtn->move( waveBtnX+(16*10)-8, waveBtnY );
|
||||
blSquareWaveBtn->setActiveGraphic(
|
||||
embed::getIconPixmap( "square_wave_active" ) );
|
||||
blSquareWaveBtn->setInactiveGraphic(
|
||||
embed::getIconPixmap( "square_wave_inactive" ) );
|
||||
toolTip::add( blSquareWaveBtn,
|
||||
ToolTip::add( blSquareWaveBtn,
|
||||
tr( "Click here for bandlimited square wave." ) );
|
||||
|
||||
pixmapButton * blTriangleWaveBtn =
|
||||
new pixmapButton( this, tr( "Bandlimited triangle wave" ) );
|
||||
PixmapButton * blTriangleWaveBtn =
|
||||
new PixmapButton( this, tr( "Bandlimited triangle wave" ) );
|
||||
blTriangleWaveBtn->move( waveBtnX+(16*11)-8, waveBtnY );
|
||||
blTriangleWaveBtn->setActiveGraphic(
|
||||
embed::getIconPixmap( "triangle_wave_active" ) );
|
||||
blTriangleWaveBtn->setInactiveGraphic(
|
||||
embed::getIconPixmap( "triangle_wave_inactive" ) );
|
||||
toolTip::add( blTriangleWaveBtn,
|
||||
ToolTip::add( blTriangleWaveBtn,
|
||||
tr( "Click here for bandlimited triangle wave." ) );
|
||||
|
||||
pixmapButton * blMoogWaveBtn =
|
||||
new pixmapButton( this, tr( "Bandlimited moog saw wave" ) );
|
||||
PixmapButton * blMoogWaveBtn =
|
||||
new PixmapButton( this, tr( "Bandlimited moog saw wave" ) );
|
||||
blMoogWaveBtn->move( waveBtnX+(16*12)-8, waveBtnY );
|
||||
blMoogWaveBtn->setActiveGraphic(
|
||||
embed::getIconPixmap( "moog_saw_wave_active" ) );
|
||||
blMoogWaveBtn->setInactiveGraphic(
|
||||
embed::getIconPixmap( "moog_saw_wave_inactive" ) );
|
||||
toolTip::add( blMoogWaveBtn,
|
||||
ToolTip::add( blMoogWaveBtn,
|
||||
tr( "Click here for bandlimited moog saw wave." ) );
|
||||
|
||||
|
||||
|
||||
@@ -35,8 +35,8 @@
|
||||
#include "DspEffectLibrary.h"
|
||||
#include "Instrument.h"
|
||||
#include "InstrumentView.h"
|
||||
#include "led_checkbox.h"
|
||||
#include "knob.h"
|
||||
#include "LedCheckbox.h"
|
||||
#include "Knob.h"
|
||||
#include "Mixer.h"
|
||||
#include "NotePlayHandle.h"
|
||||
#include <QMutex>
|
||||
@@ -260,19 +260,19 @@ public:
|
||||
private:
|
||||
virtual void modelChanged();
|
||||
|
||||
knob * m_vcfCutKnob;
|
||||
knob * m_vcfResKnob;
|
||||
knob * m_vcfDecKnob;
|
||||
knob * m_vcfModKnob;
|
||||
Knob * m_vcfCutKnob;
|
||||
Knob * m_vcfResKnob;
|
||||
Knob * m_vcfDecKnob;
|
||||
Knob * m_vcfModKnob;
|
||||
|
||||
knob * m_distKnob;
|
||||
knob * m_slideDecKnob;
|
||||
Knob * m_distKnob;
|
||||
Knob * m_slideDecKnob;
|
||||
automatableButtonGroup * m_waveBtnGrp;
|
||||
|
||||
ledCheckBox * m_slideToggle;
|
||||
/*ledCheckBox * m_accentToggle;*/ // removed pending accent implementation
|
||||
ledCheckBox * m_deadToggle;
|
||||
ledCheckBox * m_db24Toggle;
|
||||
LedCheckBox * m_slideToggle;
|
||||
/*LedCheckBox * m_accentToggle;*/ // removed pending accent implementation
|
||||
LedCheckBox * m_deadToggle;
|
||||
LedCheckBox * m_db24Toggle;
|
||||
|
||||
} ;
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
#include "engine.h"
|
||||
#include "InstrumentPlayHandle.h"
|
||||
#include "InstrumentTrack.h"
|
||||
#include "knob.h"
|
||||
#include "Knob.h"
|
||||
#include "NotePlayHandle.h"
|
||||
#include "templates.h"
|
||||
#include "audio_port.h"
|
||||
@@ -739,54 +739,54 @@ lb303SynthView::lb303SynthView( Instrument * _instrument, QWidget * _parent ) :
|
||||
InstrumentView( _instrument, _parent )
|
||||
{
|
||||
// GUI
|
||||
m_vcfCutKnob = new knob( knobBright_26, this );
|
||||
m_vcfCutKnob = new Knob( knobBright_26, this );
|
||||
m_vcfCutKnob->move( 75, 130 );
|
||||
m_vcfCutKnob->setHintText( tr( "Cutoff Freq:" ) + " ", "" );
|
||||
m_vcfCutKnob->setLabel( tr("CUT") );
|
||||
|
||||
m_vcfResKnob = new knob( knobBright_26, this );
|
||||
m_vcfResKnob = new Knob( knobBright_26, this );
|
||||
m_vcfResKnob->move( 120, 130 );
|
||||
m_vcfResKnob->setHintText( tr( "Resonance:" ) + " ", "" );
|
||||
m_vcfResKnob->setLabel( tr("RES") );
|
||||
|
||||
m_vcfModKnob = new knob( knobBright_26, this );
|
||||
m_vcfModKnob = new Knob( knobBright_26, this );
|
||||
m_vcfModKnob->move( 165, 130 );
|
||||
m_vcfModKnob->setHintText( tr( "Env Mod:" ) + " ", "" );
|
||||
m_vcfModKnob->setLabel( tr("ENV MOD") );
|
||||
|
||||
m_vcfDecKnob = new knob( knobBright_26, this );
|
||||
m_vcfDecKnob = new Knob( knobBright_26, this );
|
||||
m_vcfDecKnob->move( 210, 130 );
|
||||
m_vcfDecKnob->setHintText( tr( "Decay:" ) + " ", "" );
|
||||
m_vcfDecKnob->setLabel( tr("DEC") );
|
||||
|
||||
m_slideToggle = new ledCheckBox( "Slide", this );
|
||||
m_slideToggle = new LedCheckBox( "Slide", this );
|
||||
m_slideToggle->move( 10, 180 );
|
||||
|
||||
m_accentToggle = new ledCheckBox( "Accent", this );
|
||||
m_accentToggle = new LedCheckBox( "Accent", this );
|
||||
m_accentToggle->move( 10, 200 );
|
||||
m_accentToggle->setDisabled(true);
|
||||
|
||||
m_deadToggle = new ledCheckBox( "Dead", this );
|
||||
m_deadToggle = new LedCheckBox( "Dead", this );
|
||||
m_deadToggle->move( 10, 220 );
|
||||
|
||||
m_db24Toggle = new ledCheckBox( "24dB/oct", this );
|
||||
m_db24Toggle = new LedCheckBox( "24dB/oct", this );
|
||||
m_db24Toggle->setWhatsThis(
|
||||
tr( "303-es-que, 24dB/octave, 3 pole filter" ) );
|
||||
m_db24Toggle->move( 10, 150);
|
||||
|
||||
|
||||
m_slideDecKnob = new knob( knobBright_26, this );
|
||||
m_slideDecKnob = new Knob( knobBright_26, this );
|
||||
m_slideDecKnob->move( 210, 75 );
|
||||
m_slideDecKnob->setHintText( tr( "Slide Decay:" ) + " ", "" );
|
||||
m_slideDecKnob->setLabel( tr( "SLIDE"));
|
||||
|
||||
m_distKnob = new knob( knobBright_26, this );
|
||||
m_distKnob = new Knob( knobBright_26, this );
|
||||
m_distKnob->move( 210, 190 );
|
||||
m_distKnob->setHintText( tr( "DIST:" ) + " ", "" );
|
||||
m_distKnob->setLabel( tr( "DIST"));
|
||||
|
||||
|
||||
m_waveKnob = new knob( knobBright_26, this );
|
||||
m_waveKnob = new Knob( knobBright_26, this );
|
||||
m_waveKnob->move( 120, 75 );
|
||||
m_waveKnob->setHintText( tr( "WAVE:" ) + " ", "" );
|
||||
m_waveKnob->setLabel( tr( "WAVE"));
|
||||
|
||||
@@ -35,8 +35,8 @@
|
||||
#include "effect_lib.h"
|
||||
#include "Instrument.h"
|
||||
#include "InstrumentView.h"
|
||||
#include "led_checkbox.h"
|
||||
#include "knob.h"
|
||||
#include "LedCheckbox.h"
|
||||
#include "Knob.h"
|
||||
#include "Mixer.h"
|
||||
|
||||
class lb303SynthView;
|
||||
@@ -249,21 +249,21 @@ public:
|
||||
private:
|
||||
virtual void modelChanged();
|
||||
|
||||
knob * m_vcfCutKnob;
|
||||
knob * m_vcfResKnob;
|
||||
knob * m_vcfDecKnob;
|
||||
knob * m_vcfModKnob;
|
||||
Knob * m_vcfCutKnob;
|
||||
Knob * m_vcfResKnob;
|
||||
Knob * m_vcfDecKnob;
|
||||
Knob * m_vcfModKnob;
|
||||
|
||||
knob * m_vcoFineDetuneKnob;
|
||||
Knob * m_vcoFineDetuneKnob;
|
||||
|
||||
knob * m_distKnob;
|
||||
knob * m_waveKnob;
|
||||
knob * m_slideDecKnob;
|
||||
Knob * m_distKnob;
|
||||
Knob * m_waveKnob;
|
||||
Knob * m_slideDecKnob;
|
||||
|
||||
ledCheckBox * m_slideToggle;
|
||||
ledCheckBox * m_accentToggle;
|
||||
ledCheckBox * m_deadToggle;
|
||||
ledCheckBox * m_db24Toggle;
|
||||
LedCheckBox * m_slideToggle;
|
||||
LedCheckBox * m_accentToggle;
|
||||
LedCheckBox * m_deadToggle;
|
||||
LedCheckBox * m_db24Toggle;
|
||||
|
||||
} ;
|
||||
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
#include "InstrumentTrack.h"
|
||||
#include "templates.h"
|
||||
#include "gui_templates.h"
|
||||
#include "tooltip.h"
|
||||
#include "ToolTip.h"
|
||||
#include "Song.h"
|
||||
#include "lmms_math.h"
|
||||
#include "interpolation.h"
|
||||
@@ -1467,22 +1467,22 @@ MonstroView::MonstroView( Instrument * _instrument,
|
||||
|
||||
// "tab buttons"
|
||||
|
||||
pixmapButton * m_opViewButton = new pixmapButton( this, NULL );
|
||||
PixmapButton * m_opViewButton = new PixmapButton( this, NULL );
|
||||
m_opViewButton -> move( 0,0 );
|
||||
m_opViewButton -> setActiveGraphic( PLUGIN_NAME::getIconPixmap( "opview_active" ) );
|
||||
m_opViewButton -> setInactiveGraphic( PLUGIN_NAME::getIconPixmap( "opview_inactive" ) );
|
||||
toolTip::add( m_opViewButton, tr( "Operators view" ) );
|
||||
ToolTip::add( m_opViewButton, tr( "Operators view" ) );
|
||||
m_opViewButton -> setWhatsThis( tr( "The Operators view contains all the operators. These include both audible "
|
||||
"operators (oscillators) and inaudible operators, or modulators: "
|
||||
"Low-frequency oscillators and Envelopes. \n\n"
|
||||
"Knobs and other widgets in the Operators view have their own what's this -texts, "
|
||||
"so you can get more specific help for them that way. " ) );
|
||||
|
||||
pixmapButton * m_matViewButton = new pixmapButton( this, NULL );
|
||||
PixmapButton * m_matViewButton = new PixmapButton( this, NULL );
|
||||
m_matViewButton -> move( 125,0 );
|
||||
m_matViewButton -> setActiveGraphic( PLUGIN_NAME::getIconPixmap( "matview_active" ) );
|
||||
m_matViewButton -> setInactiveGraphic( PLUGIN_NAME::getIconPixmap( "matview_inactive" ) );
|
||||
toolTip::add( m_matViewButton, tr( "Matrix view" ) );
|
||||
ToolTip::add( m_matViewButton, tr( "Matrix view" ) );
|
||||
m_matViewButton -> setWhatsThis( tr( "The Matrix view contains the modulation matrix. Here you can define "
|
||||
"the modulation relationships between the various operators: Each "
|
||||
"audible operator (oscillators 1-3) has 3-4 properties that can be "
|
||||
@@ -1686,7 +1686,7 @@ QWidget * MonstroView::setupOperatorsView( QWidget * _parent )
|
||||
|
||||
m_osc2VolKnob -> setVolumeKnob( true );
|
||||
|
||||
m_osc2WaveBox = new comboBox( view );
|
||||
m_osc2WaveBox = new ComboBox( view );
|
||||
m_osc2WaveBox -> setGeometry( 204, O2ROW + 7, 42, 22 );
|
||||
m_osc2WaveBox->setFont( pointSize<8>( m_osc2WaveBox->font() ) );
|
||||
|
||||
@@ -1699,18 +1699,18 @@ QWidget * MonstroView::setupOperatorsView( QWidget * _parent )
|
||||
makeknob( m_osc3SpoKnob, KNOBCOL4, O3ROW, "Stereo phase offset", " deg", "osc3Knob" )
|
||||
makeknob( m_osc3SubKnob, KNOBCOL5, O3ROW, "Sub-osc mix", "", "osc3Knob" )
|
||||
|
||||
m_osc3Wave1Box = new comboBox( view );
|
||||
m_osc3Wave1Box = new ComboBox( view );
|
||||
m_osc3Wave1Box -> setGeometry( 160, O3ROW + 7, 42, 22 );
|
||||
m_osc3Wave1Box->setFont( pointSize<8>( m_osc3Wave1Box->font() ) );
|
||||
|
||||
m_osc3Wave2Box = new comboBox( view );
|
||||
m_osc3Wave2Box = new ComboBox( view );
|
||||
m_osc3Wave2Box -> setGeometry( 204, O3ROW + 7, 42, 22 );
|
||||
m_osc3Wave2Box->setFont( pointSize<8>( m_osc3Wave2Box->font() ) );
|
||||
|
||||
maketinyled( m_osc3SyncHButton, 212, O3ROW - 3, "Hard sync oscillator 3" )
|
||||
maketinyled( m_osc3SyncRButton, 191, O3ROW - 3, "Reverse sync oscillator 3" )
|
||||
|
||||
m_lfo1WaveBox = new comboBox( view );
|
||||
m_lfo1WaveBox = new ComboBox( view );
|
||||
m_lfo1WaveBox -> setGeometry( 2, LFOROW + 7, 42, 22 );
|
||||
m_lfo1WaveBox->setFont( pointSize<8>( m_lfo1WaveBox->font() ) );
|
||||
|
||||
@@ -1718,7 +1718,7 @@ QWidget * MonstroView::setupOperatorsView( QWidget * _parent )
|
||||
maketsknob( m_lfo1RateKnob, LFOCOL2, LFOROW, "Rate", " ms", "lfoKnob" )
|
||||
makeknob( m_lfo1PhsKnob, LFOCOL3, LFOROW, "Phase", " deg", "lfoKnob" )
|
||||
|
||||
m_lfo2WaveBox = new comboBox( view );
|
||||
m_lfo2WaveBox = new ComboBox( view );
|
||||
m_lfo2WaveBox -> setGeometry( 127, LFOROW + 7, 42, 22 );
|
||||
m_lfo2WaveBox->setFont( pointSize<8>( m_lfo2WaveBox->font() ) );
|
||||
|
||||
@@ -1743,29 +1743,29 @@ QWidget * MonstroView::setupOperatorsView( QWidget * _parent )
|
||||
makeknob( m_env2SlopeKnob, KNOBCOL7, E2ROW, "Slope", "", "envKnob" )
|
||||
|
||||
// mod selector
|
||||
pixmapButton * m_mixButton = new pixmapButton( view, NULL );
|
||||
PixmapButton * m_mixButton = new PixmapButton( view, NULL );
|
||||
m_mixButton -> move( 225, 185 );
|
||||
m_mixButton -> setActiveGraphic( PLUGIN_NAME::getIconPixmap( "mix_active" ) );
|
||||
m_mixButton -> setInactiveGraphic( PLUGIN_NAME::getIconPixmap( "mix_inactive" ) );
|
||||
toolTip::add( m_mixButton, tr( "Mix Osc2 with Osc3" ) );
|
||||
ToolTip::add( m_mixButton, tr( "Mix Osc2 with Osc3" ) );
|
||||
|
||||
pixmapButton * m_amButton = new pixmapButton( view, NULL );
|
||||
PixmapButton * m_amButton = new PixmapButton( view, NULL );
|
||||
m_amButton -> move( 225, 185 + 15 );
|
||||
m_amButton -> setActiveGraphic( PLUGIN_NAME::getIconPixmap( "am_active" ) );
|
||||
m_amButton -> setInactiveGraphic( PLUGIN_NAME::getIconPixmap( "am_inactive" ) );
|
||||
toolTip::add( m_amButton, tr( "Modulate amplitude of Osc3 with Osc2" ) );
|
||||
ToolTip::add( m_amButton, tr( "Modulate amplitude of Osc3 with Osc2" ) );
|
||||
|
||||
pixmapButton * m_fmButton = new pixmapButton( view, NULL );
|
||||
PixmapButton * m_fmButton = new PixmapButton( view, NULL );
|
||||
m_fmButton -> move( 225, 185 + 15*2 );
|
||||
m_fmButton -> setActiveGraphic( PLUGIN_NAME::getIconPixmap( "fm_active" ) );
|
||||
m_fmButton -> setInactiveGraphic( PLUGIN_NAME::getIconPixmap( "fm_inactive" ) );
|
||||
toolTip::add( m_fmButton, tr( "Modulate frequency of Osc3 with Osc2" ) );
|
||||
ToolTip::add( m_fmButton, tr( "Modulate frequency of Osc3 with Osc2" ) );
|
||||
|
||||
pixmapButton * m_pmButton = new pixmapButton( view, NULL );
|
||||
PixmapButton * m_pmButton = new PixmapButton( view, NULL );
|
||||
m_pmButton -> move( 225, 185 + 15*3 );
|
||||
m_pmButton -> setActiveGraphic( PLUGIN_NAME::getIconPixmap( "pm_active" ) );
|
||||
m_pmButton -> setInactiveGraphic( PLUGIN_NAME::getIconPixmap( "pm_inactive" ) );
|
||||
toolTip::add( m_pmButton, tr( "Modulate phase of Osc3 with Osc2" ) );
|
||||
ToolTip::add( m_pmButton, tr( "Modulate phase of Osc3 with Osc2" ) );
|
||||
|
||||
m_o23ModGroup = new automatableButtonGroup( view );
|
||||
m_o23ModGroup-> addButton( m_mixButton );
|
||||
|
||||
@@ -33,8 +33,8 @@
|
||||
#include "AutomatableButton.h"
|
||||
#include "TempoSyncKnob.h"
|
||||
#include "NotePlayHandle.h"
|
||||
#include "pixmap_button.h"
|
||||
#include "combobox.h"
|
||||
#include "PixmapButton.h"
|
||||
#include "ComboBox.h"
|
||||
#include "Oscillator.h"
|
||||
#include "lmms_math.h"
|
||||
#include "BandLimitedWave.h"
|
||||
@@ -44,7 +44,7 @@
|
||||
//
|
||||
|
||||
#define makeknob( name, x, y, hint, unit, oname ) \
|
||||
name = new knob( knobStyled, view ); \
|
||||
name = new Knob( knobStyled, view ); \
|
||||
name ->move( x, y ); \
|
||||
name ->setHintText( tr( hint ) + " ", unit ); \
|
||||
name ->setObjectName( oname ); \
|
||||
@@ -58,12 +58,12 @@
|
||||
name ->setFixedSize( 20, 20 );
|
||||
|
||||
#define maketinyled( name, x, y, ttip ) \
|
||||
name = new pixmapButton( view, NULL ); \
|
||||
name = new PixmapButton( view, NULL ); \
|
||||
name -> setCheckable( true ); \
|
||||
name -> move( x, y ); \
|
||||
name -> setActiveGraphic( PLUGIN_NAME::getIconPixmap( "tinyled_on" ) ); \
|
||||
name -> setInactiveGraphic( PLUGIN_NAME::getIconPixmap( "tinyled_off" ) ); \
|
||||
toolTip::add( name, tr( ttip ) );
|
||||
ToolTip::add( name, tr( ttip ) );
|
||||
|
||||
#define setwavemodel( name ) \
|
||||
name .addItem( tr( "Sine wave" ), static_cast<PixmapLoader*>( new PluginPixmapLoader( "sin" ) ) ); \
|
||||
@@ -591,61 +591,61 @@ private:
|
||||
// //
|
||||
//////////////////////////////////////
|
||||
|
||||
knob * m_osc1VolKnob;
|
||||
knob * m_osc1PanKnob;
|
||||
knob * m_osc1CrsKnob;
|
||||
knob * m_osc1FtlKnob;
|
||||
knob * m_osc1FtrKnob;
|
||||
knob * m_osc1SpoKnob;
|
||||
knob * m_osc1PwKnob;
|
||||
pixmapButton * m_osc1SSRButton;
|
||||
pixmapButton * m_osc1SSFButton;
|
||||
Knob * m_osc1VolKnob;
|
||||
Knob * m_osc1PanKnob;
|
||||
Knob * m_osc1CrsKnob;
|
||||
Knob * m_osc1FtlKnob;
|
||||
Knob * m_osc1FtrKnob;
|
||||
Knob * m_osc1SpoKnob;
|
||||
Knob * m_osc1PwKnob;
|
||||
PixmapButton * m_osc1SSRButton;
|
||||
PixmapButton * m_osc1SSFButton;
|
||||
|
||||
knob * m_osc2VolKnob;
|
||||
knob * m_osc2PanKnob;
|
||||
knob * m_osc2CrsKnob;
|
||||
knob * m_osc2FtlKnob;
|
||||
knob * m_osc2FtrKnob;
|
||||
knob * m_osc2SpoKnob;
|
||||
comboBox * m_osc2WaveBox;
|
||||
pixmapButton * m_osc2SyncHButton;
|
||||
pixmapButton * m_osc2SyncRButton;
|
||||
Knob * m_osc2VolKnob;
|
||||
Knob * m_osc2PanKnob;
|
||||
Knob * m_osc2CrsKnob;
|
||||
Knob * m_osc2FtlKnob;
|
||||
Knob * m_osc2FtrKnob;
|
||||
Knob * m_osc2SpoKnob;
|
||||
ComboBox * m_osc2WaveBox;
|
||||
PixmapButton * m_osc2SyncHButton;
|
||||
PixmapButton * m_osc2SyncRButton;
|
||||
|
||||
knob * m_osc3VolKnob;
|
||||
knob * m_osc3PanKnob;
|
||||
knob * m_osc3CrsKnob;
|
||||
knob * m_osc3SpoKnob;
|
||||
knob * m_osc3SubKnob;
|
||||
comboBox * m_osc3Wave1Box;
|
||||
comboBox * m_osc3Wave2Box;
|
||||
pixmapButton * m_osc3SyncHButton;
|
||||
pixmapButton * m_osc3SyncRButton;
|
||||
Knob * m_osc3VolKnob;
|
||||
Knob * m_osc3PanKnob;
|
||||
Knob * m_osc3CrsKnob;
|
||||
Knob * m_osc3SpoKnob;
|
||||
Knob * m_osc3SubKnob;
|
||||
ComboBox * m_osc3Wave1Box;
|
||||
ComboBox * m_osc3Wave2Box;
|
||||
PixmapButton * m_osc3SyncHButton;
|
||||
PixmapButton * m_osc3SyncRButton;
|
||||
|
||||
comboBox * m_lfo1WaveBox;
|
||||
ComboBox * m_lfo1WaveBox;
|
||||
TempoSyncKnob * m_lfo1AttKnob;
|
||||
TempoSyncKnob * m_lfo1RateKnob;
|
||||
knob * m_lfo1PhsKnob;
|
||||
Knob * m_lfo1PhsKnob;
|
||||
|
||||
comboBox * m_lfo2WaveBox;
|
||||
ComboBox * m_lfo2WaveBox;
|
||||
TempoSyncKnob * m_lfo2AttKnob;
|
||||
TempoSyncKnob * m_lfo2RateKnob;
|
||||
knob * m_lfo2PhsKnob;
|
||||
Knob * m_lfo2PhsKnob;
|
||||
|
||||
TempoSyncKnob * m_env1PreKnob;
|
||||
TempoSyncKnob * m_env1AttKnob;
|
||||
TempoSyncKnob * m_env1HoldKnob;
|
||||
TempoSyncKnob * m_env1DecKnob;
|
||||
knob * m_env1SusKnob;
|
||||
Knob * m_env1SusKnob;
|
||||
TempoSyncKnob * m_env1RelKnob;
|
||||
knob * m_env1SlopeKnob;
|
||||
Knob * m_env1SlopeKnob;
|
||||
|
||||
TempoSyncKnob * m_env2PreKnob;
|
||||
TempoSyncKnob * m_env2AttKnob;
|
||||
TempoSyncKnob * m_env2HoldKnob;
|
||||
TempoSyncKnob * m_env2DecKnob;
|
||||
knob * m_env2SusKnob;
|
||||
Knob * m_env2SusKnob;
|
||||
TempoSyncKnob * m_env2RelKnob;
|
||||
knob * m_env2SlopeKnob;
|
||||
Knob * m_env2SlopeKnob;
|
||||
|
||||
automatableButtonGroup * m_o23ModGroup;
|
||||
|
||||
@@ -660,60 +660,60 @@ private:
|
||||
// //
|
||||
/////////////////////////////////
|
||||
|
||||
knob * m_vol1env1Knob;
|
||||
knob * m_vol1env2Knob;
|
||||
knob * m_vol1lfo1Knob;
|
||||
knob * m_vol1lfo2Knob;
|
||||
Knob * m_vol1env1Knob;
|
||||
Knob * m_vol1env2Knob;
|
||||
Knob * m_vol1lfo1Knob;
|
||||
Knob * m_vol1lfo2Knob;
|
||||
|
||||
knob * m_vol2env1Knob;
|
||||
knob * m_vol2env2Knob;
|
||||
knob * m_vol2lfo1Knob;
|
||||
knob * m_vol2lfo2Knob;
|
||||
Knob * m_vol2env1Knob;
|
||||
Knob * m_vol2env2Knob;
|
||||
Knob * m_vol2lfo1Knob;
|
||||
Knob * m_vol2lfo2Knob;
|
||||
|
||||
knob * m_vol3env1Knob;
|
||||
knob * m_vol3env2Knob;
|
||||
knob * m_vol3lfo1Knob;
|
||||
knob * m_vol3lfo2Knob;
|
||||
Knob * m_vol3env1Knob;
|
||||
Knob * m_vol3env2Knob;
|
||||
Knob * m_vol3lfo1Knob;
|
||||
Knob * m_vol3lfo2Knob;
|
||||
|
||||
knob * m_phs1env1Knob;
|
||||
knob * m_phs1env2Knob;
|
||||
knob * m_phs1lfo1Knob;
|
||||
knob * m_phs1lfo2Knob;
|
||||
Knob * m_phs1env1Knob;
|
||||
Knob * m_phs1env2Knob;
|
||||
Knob * m_phs1lfo1Knob;
|
||||
Knob * m_phs1lfo2Knob;
|
||||
|
||||
knob * m_phs2env1Knob;
|
||||
knob * m_phs2env2Knob;
|
||||
knob * m_phs2lfo1Knob;
|
||||
knob * m_phs2lfo2Knob;
|
||||
Knob * m_phs2env1Knob;
|
||||
Knob * m_phs2env2Knob;
|
||||
Knob * m_phs2lfo1Knob;
|
||||
Knob * m_phs2lfo2Knob;
|
||||
|
||||
knob * m_phs3env1Knob;
|
||||
knob * m_phs3env2Knob;
|
||||
knob * m_phs3lfo1Knob;
|
||||
knob * m_phs3lfo2Knob;
|
||||
Knob * m_phs3env1Knob;
|
||||
Knob * m_phs3env2Knob;
|
||||
Knob * m_phs3lfo1Knob;
|
||||
Knob * m_phs3lfo2Knob;
|
||||
|
||||
knob * m_pit1env1Knob;
|
||||
knob * m_pit1env2Knob;
|
||||
knob * m_pit1lfo1Knob;
|
||||
knob * m_pit1lfo2Knob;
|
||||
Knob * m_pit1env1Knob;
|
||||
Knob * m_pit1env2Knob;
|
||||
Knob * m_pit1lfo1Knob;
|
||||
Knob * m_pit1lfo2Knob;
|
||||
|
||||
knob * m_pit2env1Knob;
|
||||
knob * m_pit2env2Knob;
|
||||
knob * m_pit2lfo1Knob;
|
||||
knob * m_pit2lfo2Knob;
|
||||
Knob * m_pit2env1Knob;
|
||||
Knob * m_pit2env2Knob;
|
||||
Knob * m_pit2lfo1Knob;
|
||||
Knob * m_pit2lfo2Knob;
|
||||
|
||||
knob * m_pit3env1Knob;
|
||||
knob * m_pit3env2Knob;
|
||||
knob * m_pit3lfo1Knob;
|
||||
knob * m_pit3lfo2Knob;
|
||||
Knob * m_pit3env1Knob;
|
||||
Knob * m_pit3env2Knob;
|
||||
Knob * m_pit3lfo1Knob;
|
||||
Knob * m_pit3lfo2Knob;
|
||||
|
||||
knob * m_pw1env1Knob;
|
||||
knob * m_pw1env2Knob;
|
||||
knob * m_pw1lfo1Knob;
|
||||
knob * m_pw1lfo2Knob;
|
||||
Knob * m_pw1env1Knob;
|
||||
Knob * m_pw1env2Knob;
|
||||
Knob * m_pw1lfo1Knob;
|
||||
Knob * m_pw1lfo2Knob;
|
||||
|
||||
knob * m_sub3env1Knob;
|
||||
knob * m_sub3env2Knob;
|
||||
knob * m_sub3lfo1Knob;
|
||||
knob * m_sub3lfo2Knob;
|
||||
Knob * m_sub3env1Knob;
|
||||
Knob * m_sub3env2Knob;
|
||||
Knob * m_sub3lfo1Knob;
|
||||
Knob * m_sub3lfo2Knob;
|
||||
|
||||
};
|
||||
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
#include "Engine.h"
|
||||
#include "InstrumentTrack.h"
|
||||
#include "templates.h"
|
||||
#include "tooltip.h"
|
||||
#include "ToolTip.h"
|
||||
#include "Song.h"
|
||||
#include "lmms_math.h"
|
||||
#include "interpolation.h"
|
||||
|
||||
@@ -31,31 +31,31 @@
|
||||
#include "AutomatableButton.h"
|
||||
#include "TempoSyncKnob.h"
|
||||
#include "NotePlayHandle.h"
|
||||
#include "pixmap_button.h"
|
||||
#include "PixmapButton.h"
|
||||
#include "MemoryManager.h"
|
||||
|
||||
|
||||
#define makeknob( name, x, y, hint, unit, oname ) \
|
||||
name = new knob( knobStyled, this ); \
|
||||
name = new Knob( knobStyled, this ); \
|
||||
name ->move( x, y ); \
|
||||
name ->setHintText( tr( hint ) + " ", unit ); \
|
||||
name ->setObjectName( oname ); \
|
||||
name ->setFixedSize( 29, 29 );
|
||||
|
||||
#define makenesled( name, x, y, ttip ) \
|
||||
name = new pixmapButton( this, NULL ); \
|
||||
name = new PixmapButton( this, NULL ); \
|
||||
name -> setCheckable( true ); \
|
||||
name -> move( x, y ); \
|
||||
name -> setActiveGraphic( PLUGIN_NAME::getIconPixmap( "nesled_on" ) ); \
|
||||
name -> setInactiveGraphic( PLUGIN_NAME::getIconPixmap( "nesled_off" ) ); \
|
||||
toolTip::add( name, tr( ttip ) );
|
||||
ToolTip::add( name, tr( ttip ) );
|
||||
|
||||
#define makedcled( name, x, y, ttip, active ) \
|
||||
pixmapButton * name = new pixmapButton( this, NULL ); \
|
||||
PixmapButton * name = new PixmapButton( this, NULL ); \
|
||||
name -> move( x, y ); \
|
||||
name -> setActiveGraphic( PLUGIN_NAME::getIconPixmap( active ) ); \
|
||||
name -> setInactiveGraphic( PLUGIN_NAME::getIconPixmap( "nesdc_off" ) ); \
|
||||
toolTip::add( name, tr( ttip ) );
|
||||
ToolTip::add( name, tr( ttip ) );
|
||||
|
||||
const float NES_SIMPLE_FILTER = 1.0 / 20.0; // simulate nes analog audio output
|
||||
const float NFB = 895000.0f;
|
||||
@@ -304,58 +304,58 @@ private:
|
||||
virtual void modelChanged();
|
||||
|
||||
// channel 1
|
||||
pixmapButton * m_ch1EnabledBtn;
|
||||
knob * m_ch1CrsKnob;
|
||||
knob * m_ch1VolumeKnob;
|
||||
PixmapButton * m_ch1EnabledBtn;
|
||||
Knob * m_ch1CrsKnob;
|
||||
Knob * m_ch1VolumeKnob;
|
||||
|
||||
pixmapButton * m_ch1EnvEnabledBtn;
|
||||
pixmapButton * m_ch1EnvLoopedBtn;
|
||||
knob * m_ch1EnvLenKnob;
|
||||
PixmapButton * m_ch1EnvEnabledBtn;
|
||||
PixmapButton * m_ch1EnvLoopedBtn;
|
||||
Knob * m_ch1EnvLenKnob;
|
||||
|
||||
automatableButtonGroup * m_ch1DutyCycleGrp;
|
||||
|
||||
pixmapButton * m_ch1SweepEnabledBtn;
|
||||
knob * m_ch1SweepAmtKnob;
|
||||
knob * m_ch1SweepRateKnob;
|
||||
PixmapButton * m_ch1SweepEnabledBtn;
|
||||
Knob * m_ch1SweepAmtKnob;
|
||||
Knob * m_ch1SweepRateKnob;
|
||||
|
||||
// channel 2
|
||||
pixmapButton * m_ch2EnabledBtn;
|
||||
knob * m_ch2CrsKnob;
|
||||
knob * m_ch2VolumeKnob;
|
||||
PixmapButton * m_ch2EnabledBtn;
|
||||
Knob * m_ch2CrsKnob;
|
||||
Knob * m_ch2VolumeKnob;
|
||||
|
||||
pixmapButton * m_ch2EnvEnabledBtn;
|
||||
pixmapButton * m_ch2EnvLoopedBtn;
|
||||
knob * m_ch2EnvLenKnob;
|
||||
PixmapButton * m_ch2EnvEnabledBtn;
|
||||
PixmapButton * m_ch2EnvLoopedBtn;
|
||||
Knob * m_ch2EnvLenKnob;
|
||||
|
||||
automatableButtonGroup * m_ch2DutyCycleGrp;
|
||||
|
||||
pixmapButton * m_ch2SweepEnabledBtn;
|
||||
knob * m_ch2SweepAmtKnob;
|
||||
knob * m_ch2SweepRateKnob;
|
||||
PixmapButton * m_ch2SweepEnabledBtn;
|
||||
Knob * m_ch2SweepAmtKnob;
|
||||
Knob * m_ch2SweepRateKnob;
|
||||
|
||||
//channel 3
|
||||
pixmapButton * m_ch3EnabledBtn;
|
||||
knob * m_ch3CrsKnob;
|
||||
knob * m_ch3VolumeKnob;
|
||||
PixmapButton * m_ch3EnabledBtn;
|
||||
Knob * m_ch3CrsKnob;
|
||||
Knob * m_ch3VolumeKnob;
|
||||
|
||||
//channel 4
|
||||
pixmapButton * m_ch4EnabledBtn;
|
||||
knob * m_ch4VolumeKnob;
|
||||
PixmapButton * m_ch4EnabledBtn;
|
||||
Knob * m_ch4VolumeKnob;
|
||||
|
||||
pixmapButton * m_ch4EnvEnabledBtn;
|
||||
pixmapButton * m_ch4EnvLoopedBtn;
|
||||
knob * m_ch4EnvLenKnob;
|
||||
PixmapButton * m_ch4EnvEnabledBtn;
|
||||
PixmapButton * m_ch4EnvLoopedBtn;
|
||||
Knob * m_ch4EnvLenKnob;
|
||||
|
||||
pixmapButton * m_ch4NoiseModeBtn;
|
||||
pixmapButton * m_ch4NoiseFreqModeBtn;
|
||||
knob * m_ch4NoiseFreqKnob;
|
||||
PixmapButton * m_ch4NoiseModeBtn;
|
||||
PixmapButton * m_ch4NoiseFreqModeBtn;
|
||||
Knob * m_ch4NoiseFreqKnob;
|
||||
|
||||
knob * m_ch4SweepKnob;
|
||||
pixmapButton * m_ch4NoiseQuantizeBtn;
|
||||
Knob * m_ch4SweepKnob;
|
||||
PixmapButton * m_ch4NoiseQuantizeBtn;
|
||||
|
||||
//master
|
||||
knob * m_masterVolKnob;
|
||||
knob * m_vibratoKnob;
|
||||
Knob * m_masterVolKnob;
|
||||
Knob * m_vibratoKnob;
|
||||
|
||||
static QPixmap * s_artwork;
|
||||
};
|
||||
|
||||
@@ -57,10 +57,10 @@
|
||||
#include "embed.cpp"
|
||||
#include "math.h"
|
||||
|
||||
#include "knob.h"
|
||||
#include "Knob.h"
|
||||
#include "LcdSpinBox.h"
|
||||
#include "pixmap_button.h"
|
||||
#include "tooltip.h"
|
||||
#include "PixmapButton.h"
|
||||
#include "ToolTip.h"
|
||||
|
||||
extern "C"
|
||||
{
|
||||
@@ -585,7 +585,7 @@ opl2instrumentView::opl2instrumentView( Instrument * _instrument,
|
||||
*/
|
||||
|
||||
#define KNOB_GEN(knobname, hinttext, hintunit,xpos,ypos) \
|
||||
knobname = new knob( knobStyled, this );\
|
||||
knobname = new Knob( knobStyled, this );\
|
||||
knobname->setHintText( tr(hinttext) + "", hintunit );\
|
||||
knobname->setFixedSize(22,22);\
|
||||
knobname->setCenterPointX(11.0);\
|
||||
@@ -594,18 +594,18 @@ opl2instrumentView::opl2instrumentView( Instrument * _instrument,
|
||||
knobname->move(xpos,ypos);
|
||||
|
||||
#define BUTTON_GEN(buttname, tooltip, xpos, ypos) \
|
||||
buttname = new pixmapButton( this, NULL );\
|
||||
buttname = new PixmapButton( this, NULL );\
|
||||
buttname->setActiveGraphic( PLUGIN_NAME::getIconPixmap( "opl2_led_on" ) );\
|
||||
buttname->setInactiveGraphic( PLUGIN_NAME::getIconPixmap( "opl2_led_off" ) );\
|
||||
buttname->setCheckable( true );\
|
||||
toolTip::add( buttname, tr( tooltip ) );\
|
||||
ToolTip::add( buttname, tr( tooltip ) );\
|
||||
buttname->move( xpos, ypos );
|
||||
|
||||
#define WAVEBUTTON_GEN(buttname, tooltip, xpos, ypos, icon_on, icon_off, buttgroup) \
|
||||
buttname = new pixmapButton( this, NULL );\
|
||||
buttname = new PixmapButton( this, NULL );\
|
||||
buttname->setActiveGraphic( PLUGIN_NAME::getIconPixmap( icon_on ) ); \
|
||||
buttname->setInactiveGraphic( PLUGIN_NAME::getIconPixmap( icon_off ) ); \
|
||||
toolTip::add( buttname, tr( tooltip ) );\
|
||||
ToolTip::add( buttname, tr( tooltip ) );\
|
||||
buttname->move( xpos, ypos );\
|
||||
buttgroup->addButton(buttname);
|
||||
|
||||
|
||||
@@ -30,8 +30,8 @@
|
||||
#include "opl.h"
|
||||
|
||||
#include "LcdSpinBox.h"
|
||||
#include "knob.h"
|
||||
#include "pixmap_button.h"
|
||||
#include "Knob.h"
|
||||
#include "PixmapButton.h"
|
||||
|
||||
#define OPL2_VOICE_FREE 255
|
||||
#define OPL2_NO_VOICE 255
|
||||
@@ -146,46 +146,46 @@ public:
|
||||
LcdSpinBox *m_patch;
|
||||
void modelChanged();
|
||||
|
||||
knob *op1_a_kn;
|
||||
knob *op1_d_kn;
|
||||
knob *op1_s_kn;
|
||||
knob *op1_r_kn;
|
||||
knob *op1_lvl_kn;
|
||||
knob *op1_scale_kn;
|
||||
knob *op1_mul_kn;
|
||||
knob *feedback_kn;
|
||||
pixmapButton *op1_ksr_btn;
|
||||
pixmapButton *op1_perc_btn;
|
||||
pixmapButton *op1_trem_btn;
|
||||
pixmapButton *op1_vib_btn;
|
||||
pixmapButton *op1_w0_btn;
|
||||
pixmapButton *op1_w1_btn;
|
||||
pixmapButton *op1_w2_btn;
|
||||
pixmapButton *op1_w3_btn;
|
||||
Knob *op1_a_kn;
|
||||
Knob *op1_d_kn;
|
||||
Knob *op1_s_kn;
|
||||
Knob *op1_r_kn;
|
||||
Knob *op1_lvl_kn;
|
||||
Knob *op1_scale_kn;
|
||||
Knob *op1_mul_kn;
|
||||
Knob *feedback_kn;
|
||||
PixmapButton *op1_ksr_btn;
|
||||
PixmapButton *op1_perc_btn;
|
||||
PixmapButton *op1_trem_btn;
|
||||
PixmapButton *op1_vib_btn;
|
||||
PixmapButton *op1_w0_btn;
|
||||
PixmapButton *op1_w1_btn;
|
||||
PixmapButton *op1_w2_btn;
|
||||
PixmapButton *op1_w3_btn;
|
||||
automatableButtonGroup *op1_waveform;
|
||||
|
||||
|
||||
knob *op2_a_kn;
|
||||
knob *op2_d_kn;
|
||||
knob *op2_s_kn;
|
||||
knob *op2_r_kn;
|
||||
knob *op2_lvl_kn;
|
||||
knob *op2_scale_kn;
|
||||
knob *op2_mul_kn;
|
||||
pixmapButton *op2_ksr_btn;
|
||||
pixmapButton *op2_perc_btn;
|
||||
pixmapButton *op2_trem_btn;
|
||||
pixmapButton *op2_vib_btn;
|
||||
pixmapButton *op2_w0_btn;
|
||||
pixmapButton *op2_w1_btn;
|
||||
pixmapButton *op2_w2_btn;
|
||||
pixmapButton *op2_w3_btn;
|
||||
Knob *op2_a_kn;
|
||||
Knob *op2_d_kn;
|
||||
Knob *op2_s_kn;
|
||||
Knob *op2_r_kn;
|
||||
Knob *op2_lvl_kn;
|
||||
Knob *op2_scale_kn;
|
||||
Knob *op2_mul_kn;
|
||||
PixmapButton *op2_ksr_btn;
|
||||
PixmapButton *op2_perc_btn;
|
||||
PixmapButton *op2_trem_btn;
|
||||
PixmapButton *op2_vib_btn;
|
||||
PixmapButton *op2_w0_btn;
|
||||
PixmapButton *op2_w1_btn;
|
||||
PixmapButton *op2_w2_btn;
|
||||
PixmapButton *op2_w3_btn;
|
||||
automatableButtonGroup *op2_waveform;
|
||||
|
||||
|
||||
pixmapButton *fm_btn;
|
||||
pixmapButton *vib_depth_btn;
|
||||
pixmapButton *trem_depth_btn;
|
||||
PixmapButton *fm_btn;
|
||||
PixmapButton *vib_depth_btn;
|
||||
PixmapButton *trem_depth_btn;
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -32,12 +32,12 @@
|
||||
|
||||
#include "Engine.h"
|
||||
#include "InstrumentTrack.h"
|
||||
#include "knob.h"
|
||||
#include "Knob.h"
|
||||
#include "NotePlayHandle.h"
|
||||
#include "Oscillator.h"
|
||||
#include "pixmap_button.h"
|
||||
#include "PixmapButton.h"
|
||||
#include "templates.h"
|
||||
#include "tooltip.h"
|
||||
#include "ToolTip.h"
|
||||
|
||||
#include "embed.cpp"
|
||||
|
||||
@@ -403,11 +403,11 @@ PluginView * organicInstrument::instantiateView( QWidget * _parent )
|
||||
|
||||
|
||||
|
||||
class organicKnob : public knob
|
||||
class organicKnob : public Knob
|
||||
{
|
||||
public:
|
||||
organicKnob( QWidget * _parent ) :
|
||||
knob( knobStyled, _parent )
|
||||
Knob( knobStyled, _parent )
|
||||
{
|
||||
setFixedSize( 21, 21 );
|
||||
}
|
||||
@@ -448,7 +448,7 @@ organicInstrumentView::organicInstrumentView( Instrument * _instrument,
|
||||
"It is cumulative with the instrument window's volume control. " ) );
|
||||
|
||||
// randomise
|
||||
m_randBtn = new pixmapButton( this, tr( "Randomise" ) );
|
||||
m_randBtn = new PixmapButton( this, tr( "Randomise" ) );
|
||||
m_randBtn->move( 148, 224 );
|
||||
m_randBtn->setActiveGraphic( PLUGIN_NAME::getIconPixmap(
|
||||
"randomise_pressed" ) );
|
||||
@@ -501,14 +501,14 @@ void organicInstrumentView::modelChanged()
|
||||
for( int i = 0; i < m_numOscillators; ++i )
|
||||
{
|
||||
// setup harmonic knob
|
||||
knob * harmKnob = new organicKnob( this );
|
||||
Knob * harmKnob = new organicKnob( this );
|
||||
harmKnob->move( x + i * colWidth, y - rowHeight );
|
||||
harmKnob->setObjectName( "harmKnob" );
|
||||
connect( &oi->m_osc[i]->m_harmModel, SIGNAL( dataChanged() ),
|
||||
this, SLOT( updateKnobHint() ) );
|
||||
|
||||
// setup waveform-knob
|
||||
knob * oscKnob = new organicKnob( this );
|
||||
Knob * oscKnob = new organicKnob( this );
|
||||
oscKnob->move( x + i * colWidth, y );
|
||||
connect( &oi->m_osc[i]->m_oscModel, SIGNAL( dataChanged() ),
|
||||
this, SLOT( updateKnobHint() ) );
|
||||
@@ -516,7 +516,7 @@ void organicInstrumentView::modelChanged()
|
||||
oscKnob->setHintText( tr( "Osc %1 waveform:" ).arg( i + 1 ) + " ", QString() );
|
||||
|
||||
// setup volume-knob
|
||||
knob * volKnob = new knob( knobStyled, this );
|
||||
Knob * volKnob = new Knob( knobStyled, this );
|
||||
volKnob->setVolumeKnob( true );
|
||||
volKnob->move( x + i * colWidth, y + rowHeight*1 );
|
||||
volKnob->setFixedSize( 21, 21 );
|
||||
@@ -524,13 +524,13 @@ void organicInstrumentView::modelChanged()
|
||||
i + 1 ) + " ", "%" );
|
||||
|
||||
// setup panning-knob
|
||||
knob * panKnob = new organicKnob( this );
|
||||
Knob * panKnob = new organicKnob( this );
|
||||
panKnob->move( x + i * colWidth, y + rowHeight*2 );
|
||||
panKnob->setHintText( tr("Osc %1 panning:").arg(
|
||||
i + 1 ) + " ", "" );
|
||||
|
||||
// setup knob for fine-detuning
|
||||
knob * detuneKnob = new organicKnob( this );
|
||||
Knob * detuneKnob = new organicKnob( this );
|
||||
detuneKnob->move( x + i * colWidth, y + rowHeight*3 );
|
||||
detuneKnob->setHintText( tr( "Osc %1 stereo detuning" ).arg( i + 1 )
|
||||
+ " ", " " +
|
||||
|
||||
@@ -35,9 +35,9 @@
|
||||
|
||||
class QPixmap;
|
||||
|
||||
class knob;
|
||||
class Knob;
|
||||
class NotePlayHandle;
|
||||
class pixmapButton;
|
||||
class PixmapButton;
|
||||
|
||||
const int NUM_HARMONICS = 18;
|
||||
const QString HARMONIC_NAMES[NUM_HARMONICS] = {
|
||||
@@ -184,11 +184,11 @@ private:
|
||||
{
|
||||
MM_OPERATORS
|
||||
OscillatorKnobs(
|
||||
knob * h,
|
||||
knob * v,
|
||||
knob * o,
|
||||
knob * p,
|
||||
knob * dt ) :
|
||||
Knob * h,
|
||||
Knob * v,
|
||||
Knob * o,
|
||||
Knob * p,
|
||||
Knob * dt ) :
|
||||
m_harmKnob( h ),
|
||||
m_volKnob( v ),
|
||||
m_oscKnob( o ),
|
||||
@@ -200,18 +200,18 @@ private:
|
||||
{
|
||||
}
|
||||
|
||||
knob * m_harmKnob;
|
||||
knob * m_volKnob;
|
||||
knob * m_oscKnob;
|
||||
knob * m_panKnob;
|
||||
knob * m_detuneKnob;
|
||||
Knob * m_harmKnob;
|
||||
Knob * m_volKnob;
|
||||
Knob * m_oscKnob;
|
||||
Knob * m_panKnob;
|
||||
Knob * m_detuneKnob;
|
||||
} ;
|
||||
|
||||
OscillatorKnobs * m_oscKnobs;
|
||||
|
||||
knob * m_fx1Knob;
|
||||
knob * m_volKnob;
|
||||
pixmapButton * m_randBtn;
|
||||
Knob * m_fx1Knob;
|
||||
Knob * m_volKnob;
|
||||
PixmapButton * m_randBtn;
|
||||
|
||||
int m_numOscillators;
|
||||
|
||||
|
||||
@@ -31,12 +31,12 @@
|
||||
#include "papu_instrument.h"
|
||||
#include "base64.h"
|
||||
#include "InstrumentTrack.h"
|
||||
#include "knob.h"
|
||||
#include "Knob.h"
|
||||
#include "NotePlayHandle.h"
|
||||
#include "pixmap_button.h"
|
||||
#include "tooltip.h"
|
||||
#include "PixmapButton.h"
|
||||
#include "ToolTip.h"
|
||||
#include "Engine.h"
|
||||
#include "graph.h"
|
||||
#include "Graph.h"
|
||||
|
||||
#include "embed.cpp"
|
||||
|
||||
@@ -426,11 +426,11 @@ PluginView * papuInstrument::instantiateView( QWidget * _parent )
|
||||
}
|
||||
|
||||
|
||||
class papuKnob : public knob
|
||||
class papuKnob : public Knob
|
||||
{
|
||||
public:
|
||||
papuKnob( QWidget * _parent ) :
|
||||
knob( knobStyled, _parent )
|
||||
Knob( knobStyled, _parent )
|
||||
{
|
||||
setFixedSize( 30, 30 );
|
||||
setCenterPointX( 15.0 );
|
||||
@@ -458,7 +458,7 @@ papuInstrumentView::papuInstrumentView( Instrument * _instrument,
|
||||
m_ch1SweepTimeKnob = new papuKnob( this );
|
||||
m_ch1SweepTimeKnob->setHintText( tr( "Sweep Time:" ) + " ", "" );
|
||||
m_ch1SweepTimeKnob->move( 5 + 4*32, 106 );
|
||||
toolTip::add( m_ch1SweepTimeKnob, tr( "Sweep Time" ) );
|
||||
ToolTip::add( m_ch1SweepTimeKnob, tr( "Sweep Time" ) );
|
||||
m_ch1SweepTimeKnob->setWhatsThis( tr( "The amount of increase or"
|
||||
" decrease in frequency" ) );
|
||||
|
||||
@@ -466,7 +466,7 @@ papuInstrumentView::papuInstrumentView( Instrument * _instrument,
|
||||
m_ch1SweepRtShiftKnob->setHintText( tr( "Sweep RtShift amount:" )
|
||||
+ " ", "" );
|
||||
m_ch1SweepRtShiftKnob->move( 5 + 3*32, 106 );
|
||||
toolTip::add( m_ch1SweepRtShiftKnob, tr( "Sweep RtShift amount" ) );
|
||||
ToolTip::add( m_ch1SweepRtShiftKnob, tr( "Sweep RtShift amount" ) );
|
||||
m_ch1SweepRtShiftKnob->setWhatsThis( tr( "The rate at which increase or"
|
||||
" decrease in frequency occurs" ) );
|
||||
|
||||
@@ -474,7 +474,7 @@ papuInstrumentView::papuInstrumentView( Instrument * _instrument,
|
||||
m_ch1WavePatternDutyKnob->setHintText( tr( "Wave pattern duty:" )
|
||||
+ " ", "" );
|
||||
m_ch1WavePatternDutyKnob->move( 5 + 2*32, 106 );
|
||||
toolTip::add( m_ch1WavePatternDutyKnob, tr( "Wave Pattern Duty" ) );
|
||||
ToolTip::add( m_ch1WavePatternDutyKnob, tr( "Wave Pattern Duty" ) );
|
||||
m_ch1WavePatternDutyKnob->setWhatsThis( tr( "The duty cycle is the ratio of"
|
||||
" the duration (time) that a signal is ON"
|
||||
" versus the total period of the signal." ) );
|
||||
@@ -483,14 +483,14 @@ papuInstrumentView::papuInstrumentView( Instrument * _instrument,
|
||||
m_ch1VolumeKnob->setHintText( tr( "Square Channel 1 Volume:" )
|
||||
+ " ", "" );
|
||||
m_ch1VolumeKnob->move( 5, 106 );
|
||||
toolTip::add( m_ch1VolumeKnob, tr( "Square Channel 1 Volume:" ) );
|
||||
ToolTip::add( m_ch1VolumeKnob, tr( "Square Channel 1 Volume:" ) );
|
||||
m_ch1VolumeKnob->setWhatsThis( tr( "Square Channel 1 Volume" ) );
|
||||
|
||||
m_ch1SweepStepLengthKnob = new papuKnob( this );
|
||||
m_ch1SweepStepLengthKnob->setHintText( tr( "Length of each step in sweep:" )
|
||||
+ " ", "" );
|
||||
m_ch1SweepStepLengthKnob->move( 5 + 32, 106 );
|
||||
toolTip::add( m_ch1SweepStepLengthKnob, tr( "Length of each step in sweep" ) );
|
||||
ToolTip::add( m_ch1SweepStepLengthKnob, tr( "Length of each step in sweep" ) );
|
||||
m_ch1SweepStepLengthKnob->setWhatsThis( tr( "The delay between step change" ) );
|
||||
|
||||
|
||||
@@ -499,7 +499,7 @@ papuInstrumentView::papuInstrumentView( Instrument * _instrument,
|
||||
m_ch2WavePatternDutyKnob->setHintText( tr( "Wave pattern duty:" )
|
||||
+ " ", "" );
|
||||
m_ch2WavePatternDutyKnob->move( 5 + 2*32, 155 );
|
||||
toolTip::add( m_ch2WavePatternDutyKnob, tr( "Wave pattern duty" ) );
|
||||
ToolTip::add( m_ch2WavePatternDutyKnob, tr( "Wave pattern duty" ) );
|
||||
m_ch2WavePatternDutyKnob->setWhatsThis( tr( "The duty cycle is the ratio of"
|
||||
" the duration (time) that a signal is ON"
|
||||
" versus the total period of the signal." ) );
|
||||
@@ -508,14 +508,14 @@ papuInstrumentView::papuInstrumentView( Instrument * _instrument,
|
||||
m_ch2VolumeKnob->setHintText( tr( "Square Channel 2 Volume:" )
|
||||
+ " ", "" );
|
||||
m_ch2VolumeKnob->move( 5, 155 );
|
||||
toolTip::add( m_ch2VolumeKnob, tr( "Square Channel 2 Volume" ) );
|
||||
ToolTip::add( m_ch2VolumeKnob, tr( "Square Channel 2 Volume" ) );
|
||||
m_ch2VolumeKnob->setWhatsThis( tr( "Square Channel 2 Volume" ) );
|
||||
|
||||
m_ch2SweepStepLengthKnob = new papuKnob( this );
|
||||
m_ch2SweepStepLengthKnob->setHintText( tr( "Length of each step in sweep:" )
|
||||
+ " ", "" );
|
||||
m_ch2SweepStepLengthKnob->move( 5 + 32, 155 );
|
||||
toolTip::add( m_ch2SweepStepLengthKnob, tr( "Length of each step in sweep" ) );
|
||||
ToolTip::add( m_ch2SweepStepLengthKnob, tr( "Length of each step in sweep" ) );
|
||||
m_ch2SweepStepLengthKnob->setWhatsThis( tr( "The delay between step change" ) );
|
||||
|
||||
|
||||
@@ -523,7 +523,7 @@ papuInstrumentView::papuInstrumentView( Instrument * _instrument,
|
||||
m_ch3VolumeKnob = new papuKnob( this );
|
||||
m_ch3VolumeKnob->setHintText( tr( "Wave Channel Volume:" ) + " ", "" );
|
||||
m_ch3VolumeKnob->move( 5, 204 );
|
||||
toolTip::add( m_ch3VolumeKnob, tr( "Wave Channel Volume" ) );
|
||||
ToolTip::add( m_ch3VolumeKnob, tr( "Wave Channel Volume" ) );
|
||||
m_ch3VolumeKnob->setWhatsThis( tr( "Wave Channel Volume" ) );
|
||||
|
||||
|
||||
@@ -531,14 +531,14 @@ papuInstrumentView::papuInstrumentView( Instrument * _instrument,
|
||||
m_ch4VolumeKnob = new papuKnob( this );
|
||||
m_ch4VolumeKnob->setHintText( tr( "Noise Channel Volume:" ) + " ", "" );
|
||||
m_ch4VolumeKnob->move( 144, 155 );
|
||||
toolTip::add( m_ch4VolumeKnob, tr( "Noise Channel Volume" ) );
|
||||
ToolTip::add( m_ch4VolumeKnob, tr( "Noise Channel Volume" ) );
|
||||
m_ch4VolumeKnob->setWhatsThis( tr( "Noise Channel Volume" ) );
|
||||
|
||||
m_ch4SweepStepLengthKnob = new papuKnob( this );
|
||||
m_ch4SweepStepLengthKnob->setHintText( tr( "Length of each step in sweep:" )
|
||||
+ " ", "" );
|
||||
m_ch4SweepStepLengthKnob->move( 144 + 32, 155 );
|
||||
toolTip::add( m_ch4SweepStepLengthKnob, tr( "Length of each step in sweep" ) );
|
||||
ToolTip::add( m_ch4SweepStepLengthKnob, tr( "Length of each step in sweep" ) );
|
||||
m_ch4SweepStepLengthKnob->setWhatsThis( tr( "The delay between step change" ) );
|
||||
|
||||
|
||||
@@ -546,44 +546,44 @@ papuInstrumentView::papuInstrumentView( Instrument * _instrument,
|
||||
m_so1VolumeKnob = new papuKnob( this );
|
||||
m_so1VolumeKnob->setHintText( tr( "SO1 Volume (Right):" ) + " ", "" );
|
||||
m_so1VolumeKnob->move( 5, 58 );
|
||||
toolTip::add( m_so1VolumeKnob, tr( "SO1 Volume (Right)" ) );
|
||||
ToolTip::add( m_so1VolumeKnob, tr( "SO1 Volume (Right)" ) );
|
||||
|
||||
m_so2VolumeKnob = new papuKnob( this );
|
||||
m_so2VolumeKnob->setHintText( tr( "SO2 Volume (Left):" ) + " ", "" );
|
||||
m_so2VolumeKnob->move( 5 + 32, 58 );
|
||||
toolTip::add( m_so2VolumeKnob, tr( "SO2 Volume (Left)" ) );
|
||||
ToolTip::add( m_so2VolumeKnob, tr( "SO2 Volume (Left)" ) );
|
||||
|
||||
m_trebleKnob = new papuKnob( this );
|
||||
m_trebleKnob->setHintText( tr( "Treble:" ) + " ", "" );
|
||||
m_trebleKnob->move( 5 + 2*32, 58 );
|
||||
toolTip::add( m_trebleKnob, tr( "Treble" ) );
|
||||
ToolTip::add( m_trebleKnob, tr( "Treble" ) );
|
||||
|
||||
m_bassKnob = new papuKnob( this );
|
||||
m_bassKnob->setHintText( tr( "Bass:" ) + " ", "" );
|
||||
m_bassKnob->move( 5 + 3*32, 58 );
|
||||
toolTip::add( m_bassKnob, tr( "Bass" ) );
|
||||
ToolTip::add( m_bassKnob, tr( "Bass" ) );
|
||||
|
||||
m_ch1SweepDirButton = new pixmapButton( this, NULL );
|
||||
m_ch1SweepDirButton = new PixmapButton( this, NULL );
|
||||
m_ch1SweepDirButton->setCheckable( true );
|
||||
m_ch1SweepDirButton->move( 167, 108 );
|
||||
m_ch1SweepDirButton->setActiveGraphic(
|
||||
PLUGIN_NAME::getIconPixmap( "btn_down" ) );
|
||||
m_ch1SweepDirButton->setInactiveGraphic(
|
||||
PLUGIN_NAME::getIconPixmap( "btn_up" ) );
|
||||
toolTip::add( m_ch1SweepDirButton, tr( "Sweep Direction" ) );
|
||||
ToolTip::add( m_ch1SweepDirButton, tr( "Sweep Direction" ) );
|
||||
|
||||
m_ch1VolSweepDirButton = new pixmapButton( this, NULL );
|
||||
m_ch1VolSweepDirButton = new PixmapButton( this, NULL );
|
||||
m_ch1VolSweepDirButton->setCheckable( true );
|
||||
m_ch1VolSweepDirButton->move( 207, 108 );
|
||||
m_ch1VolSweepDirButton->setActiveGraphic(
|
||||
PLUGIN_NAME::getIconPixmap( "btn_up" ) );
|
||||
m_ch1VolSweepDirButton->setInactiveGraphic(
|
||||
PLUGIN_NAME::getIconPixmap( "btn_down" ) );
|
||||
toolTip::add( m_ch1VolSweepDirButton, tr( "Volume Sweep Direction" ) );
|
||||
ToolTip::add( m_ch1VolSweepDirButton, tr( "Volume Sweep Direction" ) );
|
||||
|
||||
|
||||
|
||||
m_ch2VolSweepDirButton = new pixmapButton( this,
|
||||
m_ch2VolSweepDirButton = new PixmapButton( this,
|
||||
tr( "Volume Sweep Direction" ) );
|
||||
m_ch2VolSweepDirButton->setCheckable( true );
|
||||
m_ch2VolSweepDirButton->move( 102, 156 );
|
||||
@@ -591,12 +591,12 @@ papuInstrumentView::papuInstrumentView( Instrument * _instrument,
|
||||
PLUGIN_NAME::getIconPixmap( "btn_up" ) );
|
||||
m_ch2VolSweepDirButton->setInactiveGraphic(
|
||||
PLUGIN_NAME::getIconPixmap( "btn_down" ) );
|
||||
toolTip::add( m_ch2VolSweepDirButton, tr( "Volume Sweep Direction" ) );
|
||||
ToolTip::add( m_ch2VolSweepDirButton, tr( "Volume Sweep Direction" ) );
|
||||
|
||||
//m_ch3OnButton = new pixmapButton( this, NULL );
|
||||
//m_ch3OnButton = new PixmapButton( this, NULL );
|
||||
//m_ch3OnButton->move( 176, 53 );
|
||||
|
||||
m_ch4VolSweepDirButton = new pixmapButton( this,
|
||||
m_ch4VolSweepDirButton = new PixmapButton( this,
|
||||
tr( "Volume Sweep Direction" ) );
|
||||
m_ch4VolSweepDirButton->setCheckable( true );
|
||||
m_ch4VolSweepDirButton->move( 207, 157 );
|
||||
@@ -604,85 +604,85 @@ papuInstrumentView::papuInstrumentView( Instrument * _instrument,
|
||||
PLUGIN_NAME::getIconPixmap( "btn_up" ) );
|
||||
m_ch4VolSweepDirButton->setInactiveGraphic(
|
||||
PLUGIN_NAME::getIconPixmap( "btn_down" ) );
|
||||
toolTip::add( m_ch4VolSweepDirButton, tr( "Volume Sweep Direction" ) );
|
||||
ToolTip::add( m_ch4VolSweepDirButton, tr( "Volume Sweep Direction" ) );
|
||||
|
||||
m_ch4ShiftRegWidthButton = new pixmapButton( this, NULL );
|
||||
m_ch4ShiftRegWidthButton = new PixmapButton( this, NULL );
|
||||
m_ch4ShiftRegWidthButton->setCheckable( true );
|
||||
m_ch4ShiftRegWidthButton->move( 207, 171 );
|
||||
m_ch4ShiftRegWidthButton->setActiveGraphic(
|
||||
PLUGIN_NAME::getIconPixmap( "btn_7" ) );
|
||||
m_ch4ShiftRegWidthButton->setInactiveGraphic(
|
||||
PLUGIN_NAME::getIconPixmap( "btn_15" ) );
|
||||
toolTip::add( m_ch4ShiftRegWidthButton, tr( "Shift Register Width" ) );
|
||||
ToolTip::add( m_ch4ShiftRegWidthButton, tr( "Shift Register Width" ) );
|
||||
|
||||
|
||||
|
||||
|
||||
m_ch1So1Button = new pixmapButton( this, NULL );
|
||||
m_ch1So1Button = new PixmapButton( this, NULL );
|
||||
m_ch1So1Button->setCheckable( true );
|
||||
m_ch1So1Button->move( 208, 51 );
|
||||
m_ch1So1Button->setActiveGraphic( PLUGIN_NAME::getIconPixmap( "btn_on" ) );
|
||||
m_ch1So1Button->setInactiveGraphic( PLUGIN_NAME::getIconPixmap("btn_off") );
|
||||
toolTip::add( m_ch1So1Button, tr( "Channel1 to SO1 (Right)" ) );
|
||||
ToolTip::add( m_ch1So1Button, tr( "Channel1 to SO1 (Right)" ) );
|
||||
|
||||
m_ch2So1Button = new pixmapButton( this, NULL );
|
||||
m_ch2So1Button = new PixmapButton( this, NULL );
|
||||
m_ch2So1Button->setCheckable( true );
|
||||
m_ch2So1Button->move( 208, 51 + 12 );
|
||||
m_ch2So1Button->setActiveGraphic( PLUGIN_NAME::getIconPixmap( "btn_on" ) );
|
||||
m_ch2So1Button->setInactiveGraphic( PLUGIN_NAME::getIconPixmap("btn_off") );
|
||||
toolTip::add( m_ch2So1Button, tr( "Channel2 to SO1 (Right)" ) );
|
||||
ToolTip::add( m_ch2So1Button, tr( "Channel2 to SO1 (Right)" ) );
|
||||
|
||||
m_ch3So1Button = new pixmapButton( this, NULL );
|
||||
m_ch3So1Button = new PixmapButton( this, NULL );
|
||||
m_ch3So1Button->setCheckable( true );
|
||||
m_ch3So1Button->move( 208, 51 + 2*12 );
|
||||
m_ch3So1Button->setActiveGraphic( PLUGIN_NAME::getIconPixmap( "btn_on" ) );
|
||||
m_ch3So1Button->setInactiveGraphic( PLUGIN_NAME::getIconPixmap("btn_off") );
|
||||
toolTip::add( m_ch3So1Button, tr( "Channel3 to SO1 (Right)" ) );
|
||||
ToolTip::add( m_ch3So1Button, tr( "Channel3 to SO1 (Right)" ) );
|
||||
|
||||
m_ch4So1Button = new pixmapButton( this, NULL );
|
||||
m_ch4So1Button = new PixmapButton( this, NULL );
|
||||
m_ch4So1Button->setCheckable( true );
|
||||
m_ch4So1Button->setChecked( false );
|
||||
m_ch4So1Button->move( 208, 51 + 3*12 );
|
||||
m_ch4So1Button->setActiveGraphic( PLUGIN_NAME::getIconPixmap( "btn_on" ) );
|
||||
m_ch4So1Button->setInactiveGraphic( PLUGIN_NAME::getIconPixmap("btn_off") );
|
||||
toolTip::add( m_ch4So1Button, tr( "Channel4 to SO1 (Right)" ) );
|
||||
ToolTip::add( m_ch4So1Button, tr( "Channel4 to SO1 (Right)" ) );
|
||||
|
||||
m_ch1So2Button = new pixmapButton( this, NULL );
|
||||
m_ch1So2Button = new PixmapButton( this, NULL );
|
||||
m_ch1So2Button->setCheckable( true );
|
||||
m_ch1So2Button->move( 148, 51 );
|
||||
m_ch1So2Button->setActiveGraphic( PLUGIN_NAME::getIconPixmap( "btn_on" ) );
|
||||
m_ch1So2Button->setInactiveGraphic( PLUGIN_NAME::getIconPixmap("btn_off") );
|
||||
toolTip::add( m_ch1So2Button, tr( "Channel1 to SO2 (Left)" ) );
|
||||
ToolTip::add( m_ch1So2Button, tr( "Channel1 to SO2 (Left)" ) );
|
||||
|
||||
m_ch2So2Button = new pixmapButton( this, NULL );
|
||||
m_ch2So2Button = new PixmapButton( this, NULL );
|
||||
m_ch2So2Button->setCheckable( true );
|
||||
m_ch2So2Button->move( 148, 51 + 12 );
|
||||
m_ch2So2Button->setActiveGraphic( PLUGIN_NAME::getIconPixmap( "btn_on" ) );
|
||||
m_ch2So2Button->setInactiveGraphic( PLUGIN_NAME::getIconPixmap("btn_off") );
|
||||
toolTip::add( m_ch2So2Button, tr( "Channel2 to SO2 (Left)" ) );
|
||||
ToolTip::add( m_ch2So2Button, tr( "Channel2 to SO2 (Left)" ) );
|
||||
|
||||
m_ch3So2Button = new pixmapButton( this, NULL );
|
||||
m_ch3So2Button = new PixmapButton( this, NULL );
|
||||
m_ch3So2Button->setCheckable( true );
|
||||
m_ch3So2Button->move( 148, 51 + 2*12 );
|
||||
m_ch3So2Button->setActiveGraphic( PLUGIN_NAME::getIconPixmap( "btn_on" ) );
|
||||
m_ch3So2Button->setInactiveGraphic( PLUGIN_NAME::getIconPixmap("btn_off") );
|
||||
toolTip::add( m_ch3So2Button, tr( "Channel3 to SO2 (Left)" ) );
|
||||
ToolTip::add( m_ch3So2Button, tr( "Channel3 to SO2 (Left)" ) );
|
||||
|
||||
m_ch4So2Button = new pixmapButton( this, NULL );
|
||||
m_ch4So2Button = new PixmapButton( this, NULL );
|
||||
m_ch4So2Button->setCheckable( true );
|
||||
m_ch4So2Button->setChecked( false );
|
||||
m_ch4So2Button->move( 148, 51 + 3*12 );
|
||||
m_ch4So2Button->setActiveGraphic( PLUGIN_NAME::getIconPixmap( "btn_on" ) );
|
||||
m_ch4So2Button->setInactiveGraphic( PLUGIN_NAME::getIconPixmap("btn_off") );
|
||||
toolTip::add( m_ch4So2Button, tr( "Channel4 to SO2 (Left)" ) );
|
||||
ToolTip::add( m_ch4So2Button, tr( "Channel4 to SO2 (Left)" ) );
|
||||
|
||||
|
||||
m_graph = new graph( this );
|
||||
m_graph->setGraphStyle( graph::NearestStyle );
|
||||
m_graph = new Graph( this );
|
||||
m_graph->setGraphStyle( Graph::NearestStyle );
|
||||
m_graph->setGraphColor( QColor(0x4E, 0x83, 0x2B) );
|
||||
m_graph->move( 37, 199 );
|
||||
m_graph->resize(208, 47);
|
||||
toolTip::add( m_graph, tr( "Wave Pattern" ) );
|
||||
ToolTip::add( m_graph, tr( "Wave Pattern" ) );
|
||||
m_graph->setWhatsThis( tr( "Draw the wave here" ) );
|
||||
}
|
||||
|
||||
|
||||
@@ -29,12 +29,12 @@
|
||||
#include <QObject>
|
||||
#include "Instrument.h"
|
||||
#include "InstrumentView.h"
|
||||
#include "knob.h"
|
||||
#include "graph.h"
|
||||
#include "Knob.h"
|
||||
#include "Graph.h"
|
||||
|
||||
class papuInstrumentView;
|
||||
class NotePlayHandle;
|
||||
class pixmapButton;
|
||||
class PixmapButton;
|
||||
|
||||
class papuInstrument : public Instrument
|
||||
{
|
||||
@@ -116,40 +116,40 @@ public:
|
||||
private:
|
||||
virtual void modelChanged();
|
||||
|
||||
knob * m_ch1SweepTimeKnob;
|
||||
pixmapButton * m_ch1SweepDirButton;
|
||||
knob * m_ch1SweepRtShiftKnob;
|
||||
knob * m_ch1WavePatternDutyKnob;
|
||||
knob * m_ch1VolumeKnob;
|
||||
pixmapButton * m_ch1VolSweepDirButton;
|
||||
knob * m_ch1SweepStepLengthKnob;
|
||||
Knob * m_ch1SweepTimeKnob;
|
||||
PixmapButton * m_ch1SweepDirButton;
|
||||
Knob * m_ch1SweepRtShiftKnob;
|
||||
Knob * m_ch1WavePatternDutyKnob;
|
||||
Knob * m_ch1VolumeKnob;
|
||||
PixmapButton * m_ch1VolSweepDirButton;
|
||||
Knob * m_ch1SweepStepLengthKnob;
|
||||
|
||||
knob * m_ch2WavePatternDutyKnob;
|
||||
knob * m_ch2VolumeKnob;
|
||||
pixmapButton * m_ch2VolSweepDirButton;
|
||||
knob * m_ch2SweepStepLengthKnob;
|
||||
Knob * m_ch2WavePatternDutyKnob;
|
||||
Knob * m_ch2VolumeKnob;
|
||||
PixmapButton * m_ch2VolSweepDirButton;
|
||||
Knob * m_ch2SweepStepLengthKnob;
|
||||
|
||||
knob * m_ch3VolumeKnob;
|
||||
Knob * m_ch3VolumeKnob;
|
||||
|
||||
knob * m_ch4VolumeKnob;
|
||||
pixmapButton * m_ch4VolSweepDirButton;
|
||||
knob * m_ch4SweepStepLengthKnob;
|
||||
pixmapButton * m_ch4ShiftRegWidthButton;
|
||||
Knob * m_ch4VolumeKnob;
|
||||
PixmapButton * m_ch4VolSweepDirButton;
|
||||
Knob * m_ch4SweepStepLengthKnob;
|
||||
PixmapButton * m_ch4ShiftRegWidthButton;
|
||||
|
||||
knob * m_so1VolumeKnob;
|
||||
knob * m_so2VolumeKnob;
|
||||
pixmapButton * m_ch1So1Button;
|
||||
pixmapButton * m_ch2So1Button;
|
||||
pixmapButton * m_ch3So1Button;
|
||||
pixmapButton * m_ch4So1Button;
|
||||
pixmapButton * m_ch1So2Button;
|
||||
pixmapButton * m_ch2So2Button;
|
||||
pixmapButton * m_ch3So2Button;
|
||||
pixmapButton * m_ch4So2Button;
|
||||
knob * m_trebleKnob;
|
||||
knob * m_bassKnob;
|
||||
Knob * m_so1VolumeKnob;
|
||||
Knob * m_so2VolumeKnob;
|
||||
PixmapButton * m_ch1So1Button;
|
||||
PixmapButton * m_ch2So1Button;
|
||||
PixmapButton * m_ch3So1Button;
|
||||
PixmapButton * m_ch4So1Button;
|
||||
PixmapButton * m_ch1So2Button;
|
||||
PixmapButton * m_ch2So2Button;
|
||||
PixmapButton * m_ch3So2Button;
|
||||
PixmapButton * m_ch4So2Button;
|
||||
Knob * m_trebleKnob;
|
||||
Knob * m_bassKnob;
|
||||
|
||||
graph * m_graph;
|
||||
Graph * m_graph;
|
||||
|
||||
/*protected slots:
|
||||
void updateKnobHint();
|
||||
|
||||
@@ -34,10 +34,10 @@
|
||||
#include "gui_templates.h"
|
||||
#include "InstrumentTrack.h"
|
||||
#include "NotePlayHandle.h"
|
||||
#include "pixmap_button.h"
|
||||
#include "PixmapButton.h"
|
||||
#include "Song.h"
|
||||
#include "string_pair_drag.h"
|
||||
#include "tooltip.h"
|
||||
#include "ToolTip.h"
|
||||
#include "FileDialog.h"
|
||||
|
||||
#include "embed.cpp"
|
||||
@@ -448,7 +448,7 @@ PatmanView::PatmanView( Instrument * _instrument, QWidget * _parent ) :
|
||||
setPalette( pal );
|
||||
|
||||
|
||||
m_openFileButton = new pixmapButton( this, NULL );
|
||||
m_openFileButton = new PixmapButton( this, NULL );
|
||||
m_openFileButton->setObjectName( "openFileButton" );
|
||||
m_openFileButton->setCursor( QCursor( Qt::PointingHandCursor ) );
|
||||
m_openFileButton->move( 227, 86 );
|
||||
@@ -458,13 +458,13 @@ PatmanView::PatmanView( Instrument * _instrument, QWidget * _parent ) :
|
||||
"select_file" ) );
|
||||
connect( m_openFileButton, SIGNAL( clicked() ),
|
||||
this, SLOT( openFile() ) );
|
||||
toolTip::add( m_openFileButton, tr( "Open other patch" ) );
|
||||
ToolTip::add( m_openFileButton, tr( "Open other patch" ) );
|
||||
|
||||
m_openFileButton->setWhatsThis(
|
||||
tr( "Click here to open another patch-file. Loop and Tune "
|
||||
"settings are not reset." ) );
|
||||
|
||||
m_loopButton = new pixmapButton( this, tr( "Loop" ) );
|
||||
m_loopButton = new PixmapButton( this, tr( "Loop" ) );
|
||||
m_loopButton->setObjectName("loopButton");
|
||||
m_loopButton->setCheckable( true );
|
||||
m_loopButton->move( 195, 138 );
|
||||
@@ -472,13 +472,13 @@ PatmanView::PatmanView( Instrument * _instrument, QWidget * _parent ) :
|
||||
"loop_on" ) );
|
||||
m_loopButton->setInactiveGraphic( PLUGIN_NAME::getIconPixmap(
|
||||
"loop_off" ) );
|
||||
toolTip::add( m_loopButton, tr( "Loop mode" ) );
|
||||
ToolTip::add( m_loopButton, tr( "Loop mode" ) );
|
||||
m_loopButton->setWhatsThis(
|
||||
tr( "Here you can toggle the Loop mode. If enabled, PatMan "
|
||||
"will use the loop information available in the "
|
||||
"file." ) );
|
||||
|
||||
m_tuneButton = new pixmapButton( this, tr( "Tune" ) );
|
||||
m_tuneButton = new PixmapButton( this, tr( "Tune" ) );
|
||||
m_tuneButton->setObjectName("tuneButton");
|
||||
m_tuneButton->setCheckable( true );
|
||||
m_tuneButton->move( 223, 138 );
|
||||
@@ -486,7 +486,7 @@ PatmanView::PatmanView( Instrument * _instrument, QWidget * _parent ) :
|
||||
"tune_on" ) );
|
||||
m_tuneButton->setInactiveGraphic( PLUGIN_NAME::getIconPixmap(
|
||||
"tune_off" ) );
|
||||
toolTip::add( m_tuneButton, tr( "Tune mode" ) );
|
||||
ToolTip::add( m_tuneButton, tr( "Tune mode" ) );
|
||||
m_tuneButton->setWhatsThis(
|
||||
tr( "Here you can toggle the Tune mode. If enabled, PatMan "
|
||||
"will tune the sample to match the note's "
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
#include "AutomatableModel.h"
|
||||
#include "MemoryManager.h"
|
||||
|
||||
class pixmapButton;
|
||||
class PixmapButton;
|
||||
|
||||
|
||||
#define MODES_16BIT ( 1 << 0 )
|
||||
@@ -141,9 +141,9 @@ private:
|
||||
patmanInstrument * m_pi;
|
||||
QString m_displayFilename;
|
||||
|
||||
pixmapButton * m_openFileButton;
|
||||
pixmapButton * m_loopButton;
|
||||
pixmapButton * m_tuneButton;
|
||||
PixmapButton * m_openFileButton;
|
||||
PixmapButton * m_loopButton;
|
||||
PixmapButton * m_tuneButton;
|
||||
|
||||
} ;
|
||||
|
||||
|
||||
@@ -30,8 +30,8 @@
|
||||
|
||||
#include "peak_controller_effect_control_dialog.h"
|
||||
#include "peak_controller_effect_controls.h"
|
||||
#include "knob.h"
|
||||
#include "led_checkbox.h"
|
||||
#include "Knob.h"
|
||||
#include "LedCheckbox.h"
|
||||
#include "embed.h"
|
||||
|
||||
|
||||
@@ -50,32 +50,32 @@ PeakControllerEffectControlDialog::PeakControllerEffectControlDialog(
|
||||
|
||||
QHBoxLayout * l = new QHBoxLayout;
|
||||
l->setSpacing( 4 );
|
||||
m_baseKnob = new knob( knobBright_26, this );
|
||||
m_baseKnob = new Knob( knobBright_26, this );
|
||||
m_baseKnob->setLabel( tr( "BASE" ) );
|
||||
m_baseKnob->setModel( &_controls->m_baseModel );
|
||||
m_baseKnob->setHintText( tr( "Base amount:" ) + " ", "" );
|
||||
|
||||
m_amountKnob = new knob( knobBright_26, this );
|
||||
m_amountKnob = new Knob( knobBright_26, this );
|
||||
m_amountKnob->setLabel( tr( "AMNT" ) );
|
||||
m_amountKnob->setModel( &_controls->m_amountModel );
|
||||
m_amountKnob->setHintText( tr( "Modulation amount:" ) + " ", "" );
|
||||
|
||||
m_amountMultKnob = new knob( knobBright_26, this );
|
||||
m_amountMultKnob = new Knob( knobBright_26, this );
|
||||
m_amountMultKnob->setLabel( tr( "MULT" ) );
|
||||
m_amountMultKnob->setModel( &_controls->m_amountMultModel );
|
||||
m_amountMultKnob->setHintText( tr( "Amount Multiplicator:" ) + " ", "" );
|
||||
|
||||
m_attackKnob = new knob( knobBright_26, this );
|
||||
m_attackKnob = new Knob( knobBright_26, this );
|
||||
m_attackKnob->setLabel( tr( "ATCK" ) );
|
||||
m_attackKnob->setModel( &_controls->m_attackModel );
|
||||
m_attackKnob->setHintText( tr( "Attack:" ) + " ", "" );
|
||||
|
||||
m_decayKnob = new knob( knobBright_26, this );
|
||||
m_decayKnob = new Knob( knobBright_26, this );
|
||||
m_decayKnob->setLabel( tr( "DCAY" ) );
|
||||
m_decayKnob->setModel( &_controls->m_decayModel );
|
||||
m_decayKnob->setHintText( tr( "Release:" ) + " ", "" );
|
||||
|
||||
m_tresholdKnob = new knob( knobBright_26, this );
|
||||
m_tresholdKnob = new Knob( knobBright_26, this );
|
||||
m_tresholdKnob->setLabel( tr( "TRES" ) );
|
||||
m_tresholdKnob->setModel( &_controls->m_tresholdModel );
|
||||
m_tresholdKnob->setHintText( tr( "Treshold:" ) + " ", "" );
|
||||
@@ -91,10 +91,10 @@ PeakControllerEffectControlDialog::PeakControllerEffectControlDialog(
|
||||
|
||||
QVBoxLayout * l2 = new QVBoxLayout; // = 2nd vbox
|
||||
|
||||
m_muteLed = new ledCheckBox( "Mute Effect", this );
|
||||
m_muteLed = new LedCheckBox( "Mute Effect", this );
|
||||
m_muteLed->setModel( &_controls->m_muteModel );
|
||||
|
||||
m_absLed = new ledCheckBox( "Absolute Value", this );
|
||||
m_absLed = new LedCheckBox( "Absolute Value", this );
|
||||
m_absLed->setModel( &_controls->m_absModel );
|
||||
|
||||
l2->addWidget( m_muteLed );
|
||||
|
||||
@@ -29,8 +29,8 @@
|
||||
#include "EffectControlDialog.h"
|
||||
|
||||
class PeakControllerEffectControls;
|
||||
class knob;
|
||||
class ledCheckBox;
|
||||
class Knob;
|
||||
class LedCheckBox;
|
||||
|
||||
|
||||
class PeakControllerEffectControlDialog : public EffectControlDialog
|
||||
@@ -44,15 +44,15 @@ public:
|
||||
|
||||
|
||||
protected:
|
||||
knob * m_baseKnob;
|
||||
knob * m_amountKnob;
|
||||
knob * m_attackKnob;
|
||||
knob * m_decayKnob;
|
||||
knob * m_tresholdKnob;
|
||||
ledCheckBox * m_muteLed;
|
||||
Knob * m_baseKnob;
|
||||
Knob * m_amountKnob;
|
||||
Knob * m_attackKnob;
|
||||
Knob * m_decayKnob;
|
||||
Knob * m_tresholdKnob;
|
||||
LedCheckBox * m_muteLed;
|
||||
|
||||
ledCheckBox * m_absLed;
|
||||
knob * m_amountMultKnob;
|
||||
LedCheckBox * m_absLed;
|
||||
Knob * m_amountMultKnob;
|
||||
|
||||
} ;
|
||||
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
|
||||
#include "EffectControls.h"
|
||||
#include "peak_controller_effect_control_dialog.h"
|
||||
#include "knob.h"
|
||||
#include "Knob.h"
|
||||
|
||||
class PeakControllerEffect;
|
||||
|
||||
|
||||
@@ -34,11 +34,11 @@
|
||||
#include "InstrumentTrack.h"
|
||||
#include "InstrumentPlayHandle.h"
|
||||
#include "NotePlayHandle.h"
|
||||
#include "knob.h"
|
||||
#include "Knob.h"
|
||||
#include "Song.h"
|
||||
|
||||
#include "patches_dialog.h"
|
||||
#include "tooltip.h"
|
||||
#include "ToolTip.h"
|
||||
#include "LcdSpinBox.h"
|
||||
|
||||
#include "embed.cpp"
|
||||
@@ -788,11 +788,11 @@ PluginView * sf2Instrument::instantiateView( QWidget * _parent )
|
||||
|
||||
|
||||
|
||||
class sf2Knob : public knob
|
||||
class sf2Knob : public Knob
|
||||
{
|
||||
public:
|
||||
sf2Knob( QWidget * _parent ) :
|
||||
knob( knobStyled, _parent )
|
||||
Knob( knobStyled, _parent )
|
||||
{
|
||||
setFixedSize( 31, 38 );
|
||||
}
|
||||
@@ -812,7 +812,7 @@ sf2InstrumentView::sf2InstrumentView( Instrument * _instrument, QWidget * _paren
|
||||
connect( &k->m_patchNum, SIGNAL( dataChanged() ), this, SLOT( updatePatchName() ) );
|
||||
|
||||
// File Button
|
||||
m_fileDialogButton = new pixmapButton( this );
|
||||
m_fileDialogButton = new PixmapButton( this );
|
||||
m_fileDialogButton->setCursor( QCursor( Qt::PointingHandCursor ) );
|
||||
m_fileDialogButton->setActiveGraphic( PLUGIN_NAME::getIconPixmap( "fileselect_on" ) );
|
||||
m_fileDialogButton->setInactiveGraphic( PLUGIN_NAME::getIconPixmap( "fileselect_off" ) );
|
||||
@@ -820,12 +820,12 @@ sf2InstrumentView::sf2InstrumentView( Instrument * _instrument, QWidget * _paren
|
||||
|
||||
connect( m_fileDialogButton, SIGNAL( clicked() ), this, SLOT( showFileDialog() ) );
|
||||
|
||||
toolTip::add( m_fileDialogButton, tr( "Open other SoundFont file" ) );
|
||||
ToolTip::add( m_fileDialogButton, tr( "Open other SoundFont file" ) );
|
||||
|
||||
m_fileDialogButton->setWhatsThis( tr( "Click here to open another SF2 file" ) );
|
||||
|
||||
// Patch Button
|
||||
m_patchDialogButton = new pixmapButton( this );
|
||||
m_patchDialogButton = new PixmapButton( this );
|
||||
m_patchDialogButton->setCursor( QCursor( Qt::PointingHandCursor ) );
|
||||
m_patchDialogButton->setActiveGraphic( PLUGIN_NAME::getIconPixmap( "patches_on" ) );
|
||||
m_patchDialogButton->setInactiveGraphic( PLUGIN_NAME::getIconPixmap( "patches_off" ) );
|
||||
@@ -834,7 +834,7 @@ sf2InstrumentView::sf2InstrumentView( Instrument * _instrument, QWidget * _paren
|
||||
|
||||
connect( m_patchDialogButton, SIGNAL( clicked() ), this, SLOT( showPatchDialog() ) );
|
||||
|
||||
toolTip::add( m_patchDialogButton, tr( "Choose the patch" ) );
|
||||
ToolTip::add( m_patchDialogButton, tr( "Choose the patch" ) );
|
||||
|
||||
|
||||
// LCDs
|
||||
@@ -877,12 +877,12 @@ sf2InstrumentView::sf2InstrumentView( Instrument * _instrument, QWidget * _paren
|
||||
// hl = new QHBoxLayout();
|
||||
|
||||
|
||||
m_reverbButton = new pixmapButton( this );
|
||||
m_reverbButton = new PixmapButton( this );
|
||||
m_reverbButton->setCheckable( true );
|
||||
m_reverbButton->move( 14, 180 );
|
||||
m_reverbButton->setActiveGraphic( PLUGIN_NAME::getIconPixmap( "reverb_on" ) );
|
||||
m_reverbButton->setInactiveGraphic( PLUGIN_NAME::getIconPixmap( "reverb_off" ) );
|
||||
toolTip::add( m_reverbButton, tr( "Apply reverb (if supported)" ) );
|
||||
ToolTip::add( m_reverbButton, tr( "Apply reverb (if supported)" ) );
|
||||
m_reverbButton->setWhatsThis(
|
||||
tr( "This button enables the reverb effect. "
|
||||
"This is useful for cool effects, but only works on "
|
||||
@@ -917,12 +917,12 @@ sf2InstrumentView::sf2InstrumentView( Instrument * _instrument, QWidget * _paren
|
||||
// Chorus
|
||||
// hl = new QHBoxLayout();
|
||||
|
||||
m_chorusButton = new pixmapButton( this );
|
||||
m_chorusButton = new PixmapButton( this );
|
||||
m_chorusButton->setCheckable( true );
|
||||
m_chorusButton->move( 14, 226 );
|
||||
m_chorusButton->setActiveGraphic( PLUGIN_NAME::getIconPixmap( "chorus_on" ) );
|
||||
m_chorusButton->setInactiveGraphic( PLUGIN_NAME::getIconPixmap( "chorus_off" ) );
|
||||
toolTip::add( m_reverbButton, tr( "Apply chorus (if supported)" ) );
|
||||
ToolTip::add( m_reverbButton, tr( "Apply chorus (if supported)" ) );
|
||||
m_chorusButton->setWhatsThis(
|
||||
tr( "This button enables the chorus effect. "
|
||||
"This is useful for cool echo effects, but only works on "
|
||||
|
||||
@@ -30,11 +30,11 @@
|
||||
#include <QMutex>
|
||||
|
||||
#include "Instrument.h"
|
||||
#include "pixmap_button.h"
|
||||
#include "PixmapButton.h"
|
||||
#include "InstrumentView.h"
|
||||
#include "knob.h"
|
||||
#include "Knob.h"
|
||||
#include "LcdSpinBox.h"
|
||||
#include "led_checkbox.h"
|
||||
#include "LedCheckbox.h"
|
||||
#include "fluidsynth.h"
|
||||
#include "SampleBuffer.h"
|
||||
#include "MemoryManager.h"
|
||||
@@ -198,8 +198,8 @@ public:
|
||||
private:
|
||||
virtual void modelChanged();
|
||||
|
||||
pixmapButton * m_fileDialogButton;
|
||||
pixmapButton * m_patchDialogButton;
|
||||
PixmapButton * m_fileDialogButton;
|
||||
PixmapButton * m_patchDialogButton;
|
||||
|
||||
LcdSpinBox * m_bankNumLcd;
|
||||
LcdSpinBox * m_patchNumLcd;
|
||||
@@ -207,19 +207,19 @@ private:
|
||||
QLabel * m_filenameLabel;
|
||||
QLabel * m_patchLabel;
|
||||
|
||||
knob * m_gainKnob;
|
||||
Knob * m_gainKnob;
|
||||
|
||||
pixmapButton * m_reverbButton;
|
||||
knob * m_reverbRoomSizeKnob;
|
||||
knob * m_reverbDampingKnob;
|
||||
knob * m_reverbWidthKnob;
|
||||
knob * m_reverbLevelKnob;
|
||||
PixmapButton * m_reverbButton;
|
||||
Knob * m_reverbRoomSizeKnob;
|
||||
Knob * m_reverbDampingKnob;
|
||||
Knob * m_reverbWidthKnob;
|
||||
Knob * m_reverbLevelKnob;
|
||||
|
||||
pixmapButton * m_chorusButton;
|
||||
knob * m_chorusNumKnob;
|
||||
knob * m_chorusLevelKnob;
|
||||
knob * m_chorusSpeedKnob;
|
||||
knob * m_chorusDepthKnob;
|
||||
PixmapButton * m_chorusButton;
|
||||
Knob * m_chorusNumKnob;
|
||||
Knob * m_chorusLevelKnob;
|
||||
Knob * m_chorusSpeedKnob;
|
||||
Knob * m_chorusDepthKnob;
|
||||
|
||||
static patchesDialog * s_patchDialog;
|
||||
|
||||
|
||||
@@ -41,11 +41,11 @@ float frnd(float range)
|
||||
#include "sfxr.h"
|
||||
#include "Engine.h"
|
||||
#include "InstrumentTrack.h"
|
||||
#include "knob.h"
|
||||
#include "Knob.h"
|
||||
#include "NotePlayHandle.h"
|
||||
#include "pixmap_button.h"
|
||||
#include "PixmapButton.h"
|
||||
#include "templates.h"
|
||||
#include "tooltip.h"
|
||||
#include "ToolTip.h"
|
||||
#include "Song.h"
|
||||
#include "MidiEvent.h"
|
||||
#include "MidiTime.h"
|
||||
@@ -547,11 +547,11 @@ void sfxrInstrument::resetModels()
|
||||
|
||||
|
||||
|
||||
class sfxrKnob : public knob
|
||||
class sfxrKnob : public Knob
|
||||
{
|
||||
public:
|
||||
sfxrKnob( QWidget * _parent ) :
|
||||
knob( knobStyled, _parent )
|
||||
Knob( knobStyled, _parent )
|
||||
{
|
||||
setFixedSize( 20, 20 );
|
||||
setCenterPointX( 10.0 );
|
||||
@@ -568,27 +568,27 @@ public:
|
||||
_knob = new sfxrKnob( this ); \
|
||||
_knob->setHintText( tr( _name ":" ), "" ); \
|
||||
_knob->move( _x, _y ); \
|
||||
toolTip::add( _knob, tr( _name ) );
|
||||
ToolTip::add( _knob, tr( _name ) );
|
||||
|
||||
|
||||
|
||||
|
||||
#define createButton( _button, _x, _y, _name, _resName )\
|
||||
_button = new pixmapButton( this, tr( _name ) );\
|
||||
_button = new PixmapButton( this, tr( _name ) );\
|
||||
_button->move( _x, _y );\
|
||||
_button->setActiveGraphic( embed::getIconPixmap( _resName "_active" ) );\
|
||||
_button->setInactiveGraphic( embed::getIconPixmap( _resName "_inactive" ) );\
|
||||
toolTip::add( _button, tr( _name ) );
|
||||
ToolTip::add( _button, tr( _name ) );
|
||||
|
||||
|
||||
|
||||
|
||||
#define createButtonLocalGraphic( _button, _x, _y, _name, _resName )\
|
||||
_button = new pixmapButton( this, tr( _name ) );\
|
||||
_button = new PixmapButton( this, tr( _name ) );\
|
||||
_button->move( _x, _y );\
|
||||
_button->setActiveGraphic( PLUGIN_NAME::getIconPixmap( _resName "_active" ) );\
|
||||
_button->setInactiveGraphic( PLUGIN_NAME::getIconPixmap( _resName "_inactive" ) );\
|
||||
toolTip::add( _button, tr( _name ) );
|
||||
ToolTip::add( _button, tr( _name ) );
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -30,10 +30,10 @@
|
||||
|
||||
#include "Instrument.h"
|
||||
#include "InstrumentView.h"
|
||||
#include "knob.h"
|
||||
#include "graph.h"
|
||||
#include "pixmap_button.h"
|
||||
#include "led_checkbox.h"
|
||||
#include "Knob.h"
|
||||
#include "Graph.h"
|
||||
#include "PixmapButton.h"
|
||||
#include "LedCheckbox.h"
|
||||
#include "MemoryManager.h"
|
||||
|
||||
|
||||
@@ -248,53 +248,53 @@ protected slots:
|
||||
private:
|
||||
virtual void modelChanged();
|
||||
|
||||
knob * m_attKnob; //Attack Time
|
||||
knob * m_holdKnob; //Sustain Time
|
||||
knob * m_susKnob; //Sustain Punch
|
||||
knob * m_decKnob; //Decay Time
|
||||
Knob * m_attKnob; //Attack Time
|
||||
Knob * m_holdKnob; //Sustain Time
|
||||
Knob * m_susKnob; //Sustain Punch
|
||||
Knob * m_decKnob; //Decay Time
|
||||
|
||||
knob * m_startFreqKnob; //Start Frequency
|
||||
knob * m_minFreqKnob; //Min Frequency
|
||||
knob * m_slideKnob; //Slide
|
||||
knob * m_dSlideKnob; //Delta Slide
|
||||
knob * m_vibDepthKnob; //Vibrato Depth
|
||||
knob * m_vibSpeedKnob; //Vibrato Speed
|
||||
Knob * m_startFreqKnob; //Start Frequency
|
||||
Knob * m_minFreqKnob; //Min Frequency
|
||||
Knob * m_slideKnob; //Slide
|
||||
Knob * m_dSlideKnob; //Delta Slide
|
||||
Knob * m_vibDepthKnob; //Vibrato Depth
|
||||
Knob * m_vibSpeedKnob; //Vibrato Speed
|
||||
|
||||
knob * m_changeAmtKnob; //Change Amount
|
||||
knob * m_changeSpeedKnob; //Change Speed
|
||||
Knob * m_changeAmtKnob; //Change Amount
|
||||
Knob * m_changeSpeedKnob; //Change Speed
|
||||
|
||||
knob * m_sqrDutyKnob; //Squre Duty
|
||||
knob * m_sqrSweepKnob; //Squre Sweep
|
||||
Knob * m_sqrDutyKnob; //Squre Duty
|
||||
Knob * m_sqrSweepKnob; //Squre Sweep
|
||||
|
||||
knob * m_repeatSpeedKnob; //Repeat Speed
|
||||
Knob * m_repeatSpeedKnob; //Repeat Speed
|
||||
|
||||
knob * m_phaserOffsetKnob; //Phaser Offset
|
||||
knob * m_phaserSweepKnob; //Phaser Sweep
|
||||
Knob * m_phaserOffsetKnob; //Phaser Offset
|
||||
Knob * m_phaserSweepKnob; //Phaser Sweep
|
||||
|
||||
knob * m_lpFilCutKnob; //LP Filter Cutoff
|
||||
knob * m_lpFilCutSweepKnob; //LP Filter Cutoff Sweep
|
||||
knob * m_lpFilResoKnob; //LP Filter Resonance
|
||||
knob * m_hpFilCutKnob; //HP Filter Cutoff
|
||||
knob * m_hpFilCutSweepKnob; //HP Filter Cutoff Sweep
|
||||
Knob * m_lpFilCutKnob; //LP Filter Cutoff
|
||||
Knob * m_lpFilCutSweepKnob; //LP Filter Cutoff Sweep
|
||||
Knob * m_lpFilResoKnob; //LP Filter Resonance
|
||||
Knob * m_hpFilCutKnob; //HP Filter Cutoff
|
||||
Knob * m_hpFilCutSweepKnob; //HP Filter Cutoff Sweep
|
||||
|
||||
automatableButtonGroup * m_waveBtnGroup;
|
||||
pixmapButton * m_sqrWaveBtn; //NOTE: This button has Squre Duty
|
||||
PixmapButton * m_sqrWaveBtn; //NOTE: This button has Squre Duty
|
||||
//and Squre Speed configurable
|
||||
pixmapButton * m_sawWaveBtn;
|
||||
pixmapButton * m_sinWaveBtn;
|
||||
pixmapButton * m_noiseWaveBtn;
|
||||
PixmapButton * m_sawWaveBtn;
|
||||
PixmapButton * m_sinWaveBtn;
|
||||
PixmapButton * m_noiseWaveBtn;
|
||||
|
||||
|
||||
pixmapButton * m_pickupBtn;
|
||||
pixmapButton * m_laserBtn;
|
||||
pixmapButton * m_explosionBtn;
|
||||
pixmapButton * m_powerupBtn;
|
||||
pixmapButton * m_hitBtn;
|
||||
pixmapButton * m_jumpBtn;
|
||||
pixmapButton * m_blipBtn;
|
||||
PixmapButton * m_pickupBtn;
|
||||
PixmapButton * m_laserBtn;
|
||||
PixmapButton * m_explosionBtn;
|
||||
PixmapButton * m_powerupBtn;
|
||||
PixmapButton * m_hitBtn;
|
||||
PixmapButton * m_jumpBtn;
|
||||
PixmapButton * m_blipBtn;
|
||||
|
||||
pixmapButton * m_randomizeBtn;
|
||||
pixmapButton * m_mutateBtn;
|
||||
PixmapButton * m_randomizeBtn;
|
||||
PixmapButton * m_mutateBtn;
|
||||
|
||||
static QPixmap * s_artwork;
|
||||
};
|
||||
|
||||
@@ -34,10 +34,10 @@
|
||||
#include "sid_instrument.h"
|
||||
#include "Engine.h"
|
||||
#include "InstrumentTrack.h"
|
||||
#include "knob.h"
|
||||
#include "Knob.h"
|
||||
#include "NotePlayHandle.h"
|
||||
#include "pixmap_button.h"
|
||||
#include "tooltip.h"
|
||||
#include "PixmapButton.h"
|
||||
#include "ToolTip.h"
|
||||
|
||||
#include "embed.cpp"
|
||||
|
||||
@@ -457,11 +457,11 @@ PluginView * sidInstrument::instantiateView( QWidget * _parent )
|
||||
|
||||
|
||||
|
||||
class sidKnob : public knob
|
||||
class sidKnob : public Knob
|
||||
{
|
||||
public:
|
||||
sidKnob( QWidget * _parent ) :
|
||||
knob( knobStyled, _parent )
|
||||
Knob( knobStyled, _parent )
|
||||
{
|
||||
setFixedSize( 16, 16 );
|
||||
setCenterPointX( 7.5 );
|
||||
@@ -498,47 +498,47 @@ sidInstrumentView::sidInstrumentView( Instrument * _instrument,
|
||||
m_cutKnob->setHintText( tr( "Cutoff frequency:" ) + " ", "Hz" );
|
||||
m_cutKnob->move( 7 + 2*28, 64 );
|
||||
|
||||
pixmapButton * hp_btn = new pixmapButton( this, NULL );
|
||||
PixmapButton * hp_btn = new PixmapButton( this, NULL );
|
||||
hp_btn->move( 140, 77 );
|
||||
hp_btn->setActiveGraphic( PLUGIN_NAME::getIconPixmap( "hpred" ) );
|
||||
hp_btn->setInactiveGraphic( PLUGIN_NAME::getIconPixmap( "hp" ) );
|
||||
toolTip::add( hp_btn, tr( "High-Pass filter ") );
|
||||
ToolTip::add( hp_btn, tr( "High-Pass filter ") );
|
||||
|
||||
pixmapButton * bp_btn = new pixmapButton( this, NULL );
|
||||
PixmapButton * bp_btn = new PixmapButton( this, NULL );
|
||||
bp_btn->move( 164, 77 );
|
||||
bp_btn->setActiveGraphic( PLUGIN_NAME::getIconPixmap( "bpred" ) );
|
||||
bp_btn->setInactiveGraphic( PLUGIN_NAME::getIconPixmap( "bp" ) );
|
||||
toolTip::add( bp_btn, tr( "Band-Pass filter ") );
|
||||
ToolTip::add( bp_btn, tr( "Band-Pass filter ") );
|
||||
|
||||
pixmapButton * lp_btn = new pixmapButton( this, NULL );
|
||||
PixmapButton * lp_btn = new PixmapButton( this, NULL );
|
||||
lp_btn->move( 185, 77 );
|
||||
lp_btn->setActiveGraphic( PLUGIN_NAME::getIconPixmap( "lpred" ) );
|
||||
lp_btn->setInactiveGraphic( PLUGIN_NAME::getIconPixmap( "lp" ) );
|
||||
toolTip::add( lp_btn, tr( "Low-Pass filter ") );
|
||||
ToolTip::add( lp_btn, tr( "Low-Pass filter ") );
|
||||
|
||||
m_passBtnGrp = new automatableButtonGroup( this );
|
||||
m_passBtnGrp->addButton( hp_btn );
|
||||
m_passBtnGrp->addButton( bp_btn );
|
||||
m_passBtnGrp->addButton( lp_btn );
|
||||
|
||||
m_offButton = new pixmapButton( this, NULL );
|
||||
m_offButton = new PixmapButton( this, NULL );
|
||||
m_offButton->setCheckable( true );
|
||||
m_offButton->move( 207, 77 );
|
||||
m_offButton->setActiveGraphic( PLUGIN_NAME::getIconPixmap( "3offred" ) );
|
||||
m_offButton->setInactiveGraphic( PLUGIN_NAME::getIconPixmap( "3off" ) );
|
||||
toolTip::add( m_offButton, tr( "Voice3 Off ") );
|
||||
ToolTip::add( m_offButton, tr( "Voice3 Off ") );
|
||||
|
||||
pixmapButton * mos6581_btn = new pixmapButton( this, NULL );
|
||||
PixmapButton * mos6581_btn = new PixmapButton( this, NULL );
|
||||
mos6581_btn->move( 170, 59 );
|
||||
mos6581_btn->setActiveGraphic( PLUGIN_NAME::getIconPixmap( "6581red" ) );
|
||||
mos6581_btn->setInactiveGraphic( PLUGIN_NAME::getIconPixmap( "6581" ) );
|
||||
toolTip::add( mos6581_btn, tr( "MOS6581 SID ") );
|
||||
ToolTip::add( mos6581_btn, tr( "MOS6581 SID ") );
|
||||
|
||||
pixmapButton * mos8580_btn = new pixmapButton( this, NULL );
|
||||
PixmapButton * mos8580_btn = new PixmapButton( this, NULL );
|
||||
mos8580_btn->move( 207, 59 );
|
||||
mos8580_btn->setActiveGraphic( PLUGIN_NAME::getIconPixmap( "8580red" ) );
|
||||
mos8580_btn->setInactiveGraphic( PLUGIN_NAME::getIconPixmap( "8580" ) );
|
||||
toolTip::add( mos8580_btn, tr( "MOS8580 SID ") );
|
||||
ToolTip::add( mos8580_btn, tr( "MOS8580 SID ") );
|
||||
|
||||
m_sidTypeBtnGrp = new automatableButtonGroup( this );
|
||||
m_sidTypeBtnGrp->addButton( mos6581_btn );
|
||||
@@ -546,32 +546,32 @@ sidInstrumentView::sidInstrumentView( Instrument * _instrument,
|
||||
|
||||
for( int i = 0; i < 3; i++ )
|
||||
{
|
||||
knob *ak = new sidKnob( this );
|
||||
Knob *ak = new sidKnob( this );
|
||||
ak->setHintText( tr("Attack:") + " ", "" );
|
||||
ak->move( 7, 114 + i*50 );
|
||||
ak->setWhatsThis( tr ( "Attack rate determines how rapidly the output "
|
||||
"of Voice %1 rises from zero to peak amplitude." ).arg( i+1 ) );
|
||||
|
||||
knob *dk = new sidKnob( this );
|
||||
Knob *dk = new sidKnob( this );
|
||||
dk->setHintText( tr("Decay:") + " ", "" );
|
||||
dk->move( 7 + 28, 114 + i*50 );
|
||||
dk->setWhatsThis( tr ( "Decay rate determines how rapidly the output "
|
||||
"falls from the peak amplitude to the selected Sustain level." ) );
|
||||
|
||||
knob *sk = new sidKnob( this );
|
||||
Knob *sk = new sidKnob( this );
|
||||
sk->setHintText( tr("Sustain:") + " ", "" );
|
||||
sk->move( 7 + 2*28, 114 + i*50 );
|
||||
sk->setWhatsThis( tr ( "Output of Voice %1 will remain at the selected "
|
||||
"Sustain amplitude as long as the note is held." ).arg( i+1 ) );
|
||||
|
||||
knob *rk = new sidKnob( this );
|
||||
Knob *rk = new sidKnob( this );
|
||||
rk->setHintText( tr("Release:") + " ", "" );
|
||||
rk->move( 7 + 3*28, 114 + i*50 );
|
||||
rk->setWhatsThis( tr ( "The output of of Voice %1 will fall from "
|
||||
"Sustain amplitude to zero amplitude at the selected Release "
|
||||
"rate." ).arg( i+1 ) );
|
||||
|
||||
knob *pwk = new sidKnob( this );
|
||||
Knob *pwk = new sidKnob( this );
|
||||
pwk->setHintText( tr("Pulse Width:") + " ", "" );
|
||||
pwk->move( 7 + 4*28, 114 + i*50 );
|
||||
pwk->setWhatsThis( tr ( "The Pulse Width resolution allows the width "
|
||||
@@ -579,43 +579,43 @@ sidInstrumentView::sidInstrumentView( Instrument * _instrument,
|
||||
"waveform on Oscillator %1 must be selected to have any audible"
|
||||
" effect." ).arg( i+1 ) );
|
||||
|
||||
knob *crsk = new sidKnob( this );
|
||||
Knob *crsk = new sidKnob( this );
|
||||
crsk->setHintText( tr("Coarse:") + " ", " semitones" );
|
||||
crsk->move( 147, 114 + i*50 );
|
||||
crsk->setWhatsThis( tr ( "The Coarse detuning allows to detune Voice "
|
||||
"%1 one octave up or down." ).arg( i+1 ) );
|
||||
|
||||
pixmapButton * pulse_btn = new pixmapButton( this, NULL );
|
||||
PixmapButton * pulse_btn = new PixmapButton( this, NULL );
|
||||
pulse_btn->move( 187, 101 + i*50 );
|
||||
pulse_btn->setActiveGraphic(
|
||||
PLUGIN_NAME::getIconPixmap( "pulsered" ) );
|
||||
pulse_btn->setInactiveGraphic(
|
||||
PLUGIN_NAME::getIconPixmap( "pulse" ) );
|
||||
toolTip::add( pulse_btn, tr( "Pulse Wave" ) );
|
||||
ToolTip::add( pulse_btn, tr( "Pulse Wave" ) );
|
||||
|
||||
pixmapButton * triangle_btn = new pixmapButton( this, NULL );
|
||||
PixmapButton * triangle_btn = new PixmapButton( this, NULL );
|
||||
triangle_btn->move( 168, 101 + i*50 );
|
||||
triangle_btn->setActiveGraphic(
|
||||
PLUGIN_NAME::getIconPixmap( "trianglered" ) );
|
||||
triangle_btn->setInactiveGraphic(
|
||||
PLUGIN_NAME::getIconPixmap( "triangle" ) );
|
||||
toolTip::add( triangle_btn, tr( "Triangle Wave" ) );
|
||||
ToolTip::add( triangle_btn, tr( "Triangle Wave" ) );
|
||||
|
||||
pixmapButton * saw_btn = new pixmapButton( this, NULL );
|
||||
PixmapButton * saw_btn = new PixmapButton( this, NULL );
|
||||
saw_btn->move( 207, 101 + i*50 );
|
||||
saw_btn->setActiveGraphic(
|
||||
PLUGIN_NAME::getIconPixmap( "sawred" ) );
|
||||
saw_btn->setInactiveGraphic(
|
||||
PLUGIN_NAME::getIconPixmap( "saw" ) );
|
||||
toolTip::add( saw_btn, tr( "SawTooth" ) );
|
||||
ToolTip::add( saw_btn, tr( "SawTooth" ) );
|
||||
|
||||
pixmapButton * noise_btn = new pixmapButton( this, NULL );
|
||||
PixmapButton * noise_btn = new PixmapButton( this, NULL );
|
||||
noise_btn->move( 226, 101 + i*50 );
|
||||
noise_btn->setActiveGraphic(
|
||||
PLUGIN_NAME::getIconPixmap( "noisered" ) );
|
||||
noise_btn->setInactiveGraphic(
|
||||
PLUGIN_NAME::getIconPixmap( "noise" ) );
|
||||
toolTip::add( noise_btn, tr( "Noise" ) );
|
||||
ToolTip::add( noise_btn, tr( "Noise" ) );
|
||||
|
||||
automatableButtonGroup * wfbg =
|
||||
new automatableButtonGroup( this );
|
||||
@@ -627,53 +627,53 @@ sidInstrumentView::sidInstrumentView( Instrument * _instrument,
|
||||
|
||||
int syncRingWidth[] = { 3, 1, 2 };
|
||||
|
||||
pixmapButton * sync_btn = new pixmapButton( this, NULL );
|
||||
PixmapButton * sync_btn = new PixmapButton( this, NULL );
|
||||
sync_btn->setCheckable( true );
|
||||
sync_btn->move( 207, 134 + i*50 );
|
||||
sync_btn->setActiveGraphic(
|
||||
PLUGIN_NAME::getIconPixmap( "syncred" ) );
|
||||
sync_btn->setInactiveGraphic(
|
||||
PLUGIN_NAME::getIconPixmap( "sync" ) );
|
||||
toolTip::add( sync_btn, tr( "Sync" ) );
|
||||
ToolTip::add( sync_btn, tr( "Sync" ) );
|
||||
sync_btn->setWhatsThis( tr ( "Sync synchronizes the fundamental "
|
||||
"frequency of Oscillator %1 with the fundamental frequency of "
|
||||
"Oscillator %2 producing \"Hard Sync\" effects." ).arg( i+1 )
|
||||
.arg( syncRingWidth[i] ) );
|
||||
|
||||
pixmapButton * ringMod_btn = new pixmapButton( this, NULL );
|
||||
PixmapButton * ringMod_btn = new PixmapButton( this, NULL );
|
||||
ringMod_btn->setCheckable( true );
|
||||
ringMod_btn->move( 170, 116 + i*50 );
|
||||
ringMod_btn->setActiveGraphic(
|
||||
PLUGIN_NAME::getIconPixmap( "ringred" ) );
|
||||
ringMod_btn->setInactiveGraphic(
|
||||
PLUGIN_NAME::getIconPixmap( "ring" ) );
|
||||
toolTip::add( ringMod_btn, tr( "Ring-Mod" ) );
|
||||
ToolTip::add( ringMod_btn, tr( "Ring-Mod" ) );
|
||||
ringMod_btn->setWhatsThis( tr ( "Ring-mod replaces the Triangle "
|
||||
"Waveform output of Oscillator %1 with a \"Ring Modulated\" "
|
||||
"combination of Oscillators %1 and %2." ).arg( i+1 )
|
||||
.arg( syncRingWidth[i] ) );
|
||||
|
||||
pixmapButton * filter_btn = new pixmapButton( this, NULL );
|
||||
PixmapButton * filter_btn = new PixmapButton( this, NULL );
|
||||
filter_btn->setCheckable( true );
|
||||
filter_btn->move( 207, 116 + i*50 );
|
||||
filter_btn->setActiveGraphic(
|
||||
PLUGIN_NAME::getIconPixmap( "filterred" ) );
|
||||
filter_btn->setInactiveGraphic(
|
||||
PLUGIN_NAME::getIconPixmap( "filter" ) );
|
||||
toolTip::add( filter_btn, tr( "Filtered" ) );
|
||||
ToolTip::add( filter_btn, tr( "Filtered" ) );
|
||||
filter_btn->setWhatsThis( tr ( "When Filtered is on, Voice %1 will be "
|
||||
"processed through the Filter. When Filtered is off, Voice %1 "
|
||||
"appears directly at the output, and the Filter has no effect on "
|
||||
"it." ).arg( i+1 ) );
|
||||
|
||||
pixmapButton * test_btn = new pixmapButton( this, NULL );
|
||||
PixmapButton * test_btn = new PixmapButton( this, NULL );
|
||||
test_btn->setCheckable( true );
|
||||
test_btn->move( 170, 134 + i*50 );
|
||||
test_btn->setActiveGraphic(
|
||||
PLUGIN_NAME::getIconPixmap( "testred" ) );
|
||||
test_btn->setInactiveGraphic(
|
||||
PLUGIN_NAME::getIconPixmap( "test" ) );
|
||||
toolTip::add( test_btn, tr( "Test" ) );
|
||||
ToolTip::add( test_btn, tr( "Test" ) );
|
||||
test_btn->setWhatsThis( tr ( "Test, when set, resets and locks "
|
||||
"Oscillator %1 at zero until Test is turned off." ).arg( i+1 ) );
|
||||
|
||||
@@ -696,32 +696,32 @@ void sidInstrumentView::updateKnobHint()
|
||||
m_voiceKnobs[i].m_attKnob->setHintText( tr( "Attack:" ) + " ", " (" +
|
||||
QString::fromLatin1( attackTime[(int)k->m_voice[i]->
|
||||
m_attackModel.value()] ) + ")" );
|
||||
toolTip::add( m_voiceKnobs[i].m_attKnob,
|
||||
ToolTip::add( m_voiceKnobs[i].m_attKnob,
|
||||
attackTime[(int)k->m_voice[i]->m_attackModel.value()] );
|
||||
|
||||
m_voiceKnobs[i].m_decKnob->setHintText( tr( "Decay:" ) + " ", " (" +
|
||||
QString::fromLatin1( decRelTime[(int)k->m_voice[i]->
|
||||
m_decayModel.value()] ) + ")" );
|
||||
toolTip::add( m_voiceKnobs[i].m_decKnob,
|
||||
ToolTip::add( m_voiceKnobs[i].m_decKnob,
|
||||
decRelTime[(int)k->m_voice[i]->m_decayModel.value()] );
|
||||
|
||||
m_voiceKnobs[i].m_relKnob->setHintText( tr( "Release:" ) + " ", " (" +
|
||||
QString::fromLatin1( decRelTime[(int)k->m_voice[i]->
|
||||
m_releaseModel.value()] ) + ")" );
|
||||
toolTip::add( m_voiceKnobs[i].m_relKnob,
|
||||
ToolTip::add( m_voiceKnobs[i].m_relKnob,
|
||||
decRelTime[(int)k->m_voice[i]->m_releaseModel.value()]);
|
||||
|
||||
m_voiceKnobs[i].m_pwKnob->setHintText( tr( "Pulse Width:" )+ " ", " (" +
|
||||
QString::number( (double)k->m_voice[i]->
|
||||
m_pulseWidthModel.value() / 40.95 ) + "%)" );
|
||||
toolTip::add( m_voiceKnobs[i].m_pwKnob,
|
||||
ToolTip::add( m_voiceKnobs[i].m_pwKnob,
|
||||
QString::number( (double)k->m_voice[i]->
|
||||
m_pulseWidthModel.value() / 40.95 ) + "%" );
|
||||
}
|
||||
m_cutKnob->setHintText( tr( "Cutoff frequency:" ) + " ", " (" +
|
||||
QString::number ( (int) ( 9970.0 / 2047.0 *
|
||||
(double)k->m_filterFCModel.value() + 30.0 ) ) + "Hz)" );
|
||||
toolTip::add( m_cutKnob, QString::number( (int) ( 9970.0 / 2047.0 *
|
||||
ToolTip::add( m_cutKnob, QString::number( (int) ( 9970.0 / 2047.0 *
|
||||
(double)k->m_filterFCModel.value() + 30.0 ) ) + "Hz" );
|
||||
}
|
||||
|
||||
@@ -733,15 +733,15 @@ void sidInstrumentView::updateKnobToolTip()
|
||||
sidInstrument * k = castModel<sidInstrument>();
|
||||
for( int i = 0; i < 3; ++i )
|
||||
{
|
||||
toolTip::add( m_voiceKnobs[i].m_sustKnob,
|
||||
ToolTip::add( m_voiceKnobs[i].m_sustKnob,
|
||||
QString::number( (int)k->m_voice[i]->m_sustainModel.value() ) );
|
||||
toolTip::add( m_voiceKnobs[i].m_crsKnob,
|
||||
ToolTip::add( m_voiceKnobs[i].m_crsKnob,
|
||||
QString::number( (int)k->m_voice[i]->m_coarseModel.value() ) +
|
||||
" semitones" );
|
||||
}
|
||||
toolTip::add( m_volKnob,
|
||||
ToolTip::add( m_volKnob,
|
||||
QString::number( (int)k->m_volumeModel.value() ) );
|
||||
toolTip::add( m_resKnob,
|
||||
ToolTip::add( m_resKnob,
|
||||
QString::number( (int)k->m_filterResonanceModel.value() ) );
|
||||
}
|
||||
|
||||
|
||||
@@ -30,13 +30,13 @@
|
||||
#include <QObject>
|
||||
#include "Instrument.h"
|
||||
#include "InstrumentView.h"
|
||||
#include "knob.h"
|
||||
#include "Knob.h"
|
||||
|
||||
|
||||
class sidInstrumentView;
|
||||
class NotePlayHandle;
|
||||
class automatableButtonGroup;
|
||||
class pixmapButton;
|
||||
class PixmapButton;
|
||||
|
||||
class voiceObject : public Model
|
||||
{
|
||||
@@ -147,17 +147,17 @@ private:
|
||||
|
||||
struct voiceKnobs
|
||||
{
|
||||
voiceKnobs( knob * a,
|
||||
knob * d,
|
||||
knob * s,
|
||||
knob * r,
|
||||
knob * pw,
|
||||
knob * crs,
|
||||
voiceKnobs( Knob * a,
|
||||
Knob * d,
|
||||
Knob * s,
|
||||
Knob * r,
|
||||
Knob * pw,
|
||||
Knob * crs,
|
||||
automatableButtonGroup * wfbg,
|
||||
pixmapButton * syncb,
|
||||
pixmapButton * ringb,
|
||||
pixmapButton * filterb,
|
||||
pixmapButton * testb ) :
|
||||
PixmapButton * syncb,
|
||||
PixmapButton * ringb,
|
||||
PixmapButton * filterb,
|
||||
PixmapButton * testb ) :
|
||||
m_attKnob( a ),
|
||||
m_decKnob( d ),
|
||||
m_sustKnob( s ),
|
||||
@@ -174,25 +174,25 @@ private:
|
||||
voiceKnobs()
|
||||
{
|
||||
}
|
||||
knob * m_attKnob;
|
||||
knob * m_decKnob;
|
||||
knob * m_sustKnob;
|
||||
knob * m_relKnob;
|
||||
knob * m_pwKnob;
|
||||
knob * m_crsKnob;
|
||||
Knob * m_attKnob;
|
||||
Knob * m_decKnob;
|
||||
Knob * m_sustKnob;
|
||||
Knob * m_relKnob;
|
||||
Knob * m_pwKnob;
|
||||
Knob * m_crsKnob;
|
||||
automatableButtonGroup * m_waveFormBtnGrp;
|
||||
pixmapButton * m_syncButton;
|
||||
pixmapButton * m_ringModButton;
|
||||
pixmapButton * m_filterButton;
|
||||
pixmapButton * m_testButton;
|
||||
PixmapButton * m_syncButton;
|
||||
PixmapButton * m_ringModButton;
|
||||
PixmapButton * m_filterButton;
|
||||
PixmapButton * m_testButton;
|
||||
} ;
|
||||
|
||||
voiceKnobs m_voiceKnobs[3];
|
||||
|
||||
knob * m_volKnob;
|
||||
knob * m_resKnob;
|
||||
knob * m_cutKnob;
|
||||
pixmapButton * m_offButton;
|
||||
Knob * m_volKnob;
|
||||
Knob * m_resKnob;
|
||||
Knob * m_cutKnob;
|
||||
PixmapButton * m_offButton;
|
||||
|
||||
protected slots:
|
||||
void updateKnobHint();
|
||||
|
||||
@@ -37,7 +37,7 @@ stereoEnhancerControlDialog::stereoEnhancerControlDialog(
|
||||
{
|
||||
QHBoxLayout * l = new QHBoxLayout( this );
|
||||
|
||||
knob * widthKnob = new knob( knobBright_26, this );
|
||||
Knob * widthKnob = new Knob( knobBright_26, this );
|
||||
widthKnob->setModel( &_controls->m_widthModel );
|
||||
widthKnob->setLabel( tr( "WIDE" ) );
|
||||
widthKnob->setHintText( tr( "Width:" ) + " ", "samples" );
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
|
||||
#include "EffectControls.h"
|
||||
#include "stereoenhancer_control_dialog.h"
|
||||
#include "knob.h"
|
||||
#include "Knob.h"
|
||||
|
||||
class stereoEnhancerEffect;
|
||||
|
||||
|
||||
@@ -47,22 +47,22 @@ stereoMatrixControlDialog::stereoMatrixControlDialog(
|
||||
setPalette( pal );
|
||||
|
||||
|
||||
knob * llKnob = new knob( knobSmall_17, this );
|
||||
Knob * llKnob = new Knob( knobSmall_17, this );
|
||||
llKnob->setModel( &_controls->m_llModel );
|
||||
llKnob->setHintText( tr( "Left to Left Vol:" ) + " ", "" );
|
||||
llKnob->move( 40, 60 );
|
||||
|
||||
knob * lrKnob = new knob( knobSmall_17, this );
|
||||
Knob * lrKnob = new Knob( knobSmall_17, this );
|
||||
lrKnob->setModel( &_controls->m_lrModel );
|
||||
lrKnob->setHintText( tr( "Left to Right Vol:" ) + " ", "" );
|
||||
lrKnob->move( 40+28, 60);
|
||||
|
||||
knob * rlKnob = new knob( knobSmall_17, this );
|
||||
Knob * rlKnob = new Knob( knobSmall_17, this );
|
||||
rlKnob->setModel( &_controls->m_rlModel );
|
||||
rlKnob->setHintText( tr( "Right to Left Vol:" ) + " ", "" );
|
||||
rlKnob->move( 40, 60+28 );
|
||||
|
||||
knob * rrKnob = new knob( knobSmall_17, this );
|
||||
Knob * rrKnob = new Knob( knobSmall_17, this );
|
||||
rrKnob->setModel( &_controls->m_rrModel );
|
||||
rrKnob->setHintText( tr( "Right to Right Vol:" ) + " ", "" );
|
||||
rrKnob->move( 40+28, 60+28 );
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
|
||||
#include "EffectControls.h"
|
||||
#include "stereomatrix_control_dialog.h"
|
||||
#include "knob.h"
|
||||
#include "Knob.h"
|
||||
|
||||
class stereoMatrixEffect;
|
||||
|
||||
|
||||
@@ -324,14 +324,14 @@ malletsInstrumentView::malletsInstrumentView( malletsInstrument * _instrument,
|
||||
m_bandedWGWidget->hide();
|
||||
m_bandedWGWidget->move( 0,0 );
|
||||
|
||||
m_presetsCombo = new comboBox( this, tr( "Instrument" ) );
|
||||
m_presetsCombo = new ComboBox( this, tr( "Instrument" ) );
|
||||
m_presetsCombo->setGeometry( 140, 50, 99, 22 );
|
||||
m_presetsCombo->setFont( pointSize<8>( m_presetsCombo->font() ) );
|
||||
|
||||
connect( &_instrument->m_presetsModel, SIGNAL( dataChanged() ),
|
||||
this, SLOT( changePreset() ) );
|
||||
|
||||
m_spreadKnob = new knob( knobVintage_32, this );
|
||||
m_spreadKnob = new Knob( knobVintage_32, this );
|
||||
m_spreadKnob->setLabel( tr( "Spread" ) );
|
||||
m_spreadKnob->move( 190, 140 );
|
||||
m_spreadKnob->setHintText( tr( "Spread:" ) + " ", "" );
|
||||
@@ -363,27 +363,27 @@ QWidget * malletsInstrumentView::setupModalBarControls( QWidget * _parent )
|
||||
QWidget * widget = new QWidget( _parent );
|
||||
widget->setFixedSize( 250, 250 );
|
||||
|
||||
m_hardnessKnob = new knob( knobVintage_32, widget );
|
||||
m_hardnessKnob = new Knob( knobVintage_32, widget );
|
||||
m_hardnessKnob->setLabel( tr( "Hardness" ) );
|
||||
m_hardnessKnob->move( 30, 90 );
|
||||
m_hardnessKnob->setHintText( tr( "Hardness:" ) + " ", "" );
|
||||
|
||||
m_positionKnob = new knob( knobVintage_32, widget );
|
||||
m_positionKnob = new Knob( knobVintage_32, widget );
|
||||
m_positionKnob->setLabel( tr( "Position" ) );
|
||||
m_positionKnob->move( 110, 90 );
|
||||
m_positionKnob->setHintText( tr( "Position:" ) + " ", "" );
|
||||
|
||||
m_vibratoGainKnob = new knob( knobVintage_32, widget );
|
||||
m_vibratoGainKnob = new Knob( knobVintage_32, widget );
|
||||
m_vibratoGainKnob->setLabel( tr( "Vib Gain" ) );
|
||||
m_vibratoGainKnob->move( 30, 140 );
|
||||
m_vibratoGainKnob->setHintText( tr( "Vib Gain:" ) + " ", "" );
|
||||
|
||||
m_vibratoFreqKnob = new knob( knobVintage_32, widget );
|
||||
m_vibratoFreqKnob = new Knob( knobVintage_32, widget );
|
||||
m_vibratoFreqKnob->setLabel( tr( "Vib Freq" ) );
|
||||
m_vibratoFreqKnob->move( 110, 140 );
|
||||
m_vibratoFreqKnob->setHintText( tr( "Vib Freq:" ) + " ", "" );
|
||||
|
||||
m_stickKnob = new knob( knobVintage_32, widget );
|
||||
m_stickKnob = new Knob( knobVintage_32, widget );
|
||||
m_stickKnob->setLabel( tr( "Stick Mix" ) );
|
||||
m_stickKnob->move( 190, 90 );
|
||||
m_stickKnob->setHintText( tr( "Stick Mix:" ) + " ", "" );
|
||||
@@ -399,27 +399,27 @@ QWidget * malletsInstrumentView::setupTubeBellControls( QWidget * _parent )
|
||||
QWidget * widget = new QWidget( _parent );
|
||||
widget->setFixedSize( 250, 250 );
|
||||
|
||||
m_modulatorKnob = new knob( knobVintage_32, widget );
|
||||
m_modulatorKnob = new Knob( knobVintage_32, widget );
|
||||
m_modulatorKnob->setLabel( tr( "Modulator" ) );
|
||||
m_modulatorKnob->move( 30, 90 );
|
||||
m_modulatorKnob->setHintText( tr( "Modulator:" ) + " ", "" );
|
||||
|
||||
m_crossfadeKnob = new knob( knobVintage_32, widget );
|
||||
m_crossfadeKnob = new Knob( knobVintage_32, widget );
|
||||
m_crossfadeKnob->setLabel( tr( "Crossfade" ) );
|
||||
m_crossfadeKnob->move( 110, 90 );
|
||||
m_crossfadeKnob->setHintText( tr( "Crossfade:" ) + " ", "" );
|
||||
|
||||
m_lfoSpeedKnob = new knob( knobVintage_32, widget );
|
||||
m_lfoSpeedKnob = new Knob( knobVintage_32, widget );
|
||||
m_lfoSpeedKnob->setLabel( tr( "LFO Speed" ) );
|
||||
m_lfoSpeedKnob->move( 30, 140 );
|
||||
m_lfoSpeedKnob->setHintText( tr( "LFO Speed:" ) + " ", "" );
|
||||
|
||||
m_lfoDepthKnob = new knob( knobVintage_32, widget );
|
||||
m_lfoDepthKnob = new Knob( knobVintage_32, widget );
|
||||
m_lfoDepthKnob->setLabel( tr( "LFO Depth" ) );
|
||||
m_lfoDepthKnob->move( 110, 140 );
|
||||
m_lfoDepthKnob->setHintText( tr( "LFO Depth:" ) + " ", "" );
|
||||
|
||||
m_adsrKnob = new knob( knobVintage_32, widget );
|
||||
m_adsrKnob = new Knob( knobVintage_32, widget );
|
||||
m_adsrKnob->setLabel( tr( "ADSR" ) );
|
||||
m_adsrKnob->move( 190, 90 );
|
||||
m_adsrKnob->setHintText( tr( "ADSR:" ) + " ", "" );
|
||||
@@ -436,25 +436,25 @@ QWidget * malletsInstrumentView::setupBandedWGControls( QWidget * _parent )
|
||||
QWidget * widget = new QWidget( _parent );
|
||||
widget->setFixedSize( 250, 250 );
|
||||
|
||||
m_strikeLED = new ledCheckBox( tr( "Bowed" ), widget );
|
||||
m_strikeLED = new LedCheckBox( tr( "Bowed" ), widget );
|
||||
m_strikeLED->move( 138, 25 );
|
||||
|
||||
m_pressureKnob = new knob( knobVintage_32, widget );
|
||||
m_pressureKnob = new Knob( knobVintage_32, widget );
|
||||
m_pressureKnob->setLabel( tr( "Pressure" ) );
|
||||
m_pressureKnob->move( 30, 90 );
|
||||
m_pressureKnob->setHintText( tr( "Pressure:" ) + " ", "" );
|
||||
|
||||
m_motionKnob = new knob( knobVintage_32, widget );
|
||||
m_motionKnob = new Knob( knobVintage_32, widget );
|
||||
m_motionKnob->setLabel( tr( "Motion" ) );
|
||||
m_motionKnob->move( 110, 90 );
|
||||
m_motionKnob->setHintText( tr( "Motion:" ) + " ", "" );
|
||||
|
||||
m_velocityKnob = new knob( knobVintage_32, widget );
|
||||
m_velocityKnob = new Knob( knobVintage_32, widget );
|
||||
m_velocityKnob->setLabel( tr( "Speed" ) );
|
||||
m_velocityKnob->move( 30, 140 );
|
||||
m_velocityKnob->setHintText( tr( "Speed:" ) + " ", "" );
|
||||
|
||||
m_vibratoKnob = new knob( knobVintage_32, widget, tr( "Vibrato" ) );
|
||||
m_vibratoKnob = new Knob( knobVintage_32, widget, tr( "Vibrato" ) );
|
||||
m_vibratoKnob->setLabel( tr( "Vibrato" ) );
|
||||
m_vibratoKnob->move( 110, 140 );
|
||||
m_vibratoKnob->setHintText( tr( "Vibrato:" ) + " ", "" );
|
||||
|
||||
@@ -29,12 +29,12 @@
|
||||
|
||||
#include "Instrmnt.h"
|
||||
|
||||
#include "combobox.h"
|
||||
#include "ComboBox.h"
|
||||
#include "Instrument.h"
|
||||
#include "InstrumentView.h"
|
||||
#include "knob.h"
|
||||
#include "Knob.h"
|
||||
#include "NotePlayHandle.h"
|
||||
#include "led_checkbox.h"
|
||||
#include "LedCheckbox.h"
|
||||
|
||||
// As of Stk 4.4 all classes and types have been moved to the namespace "stk".
|
||||
// However in older versions this namespace does not exist, therefore declare it
|
||||
@@ -203,28 +203,28 @@ private:
|
||||
QWidget * setupBandedWGControls( QWidget * _parent );
|
||||
|
||||
QWidget * m_modalBarWidget;
|
||||
knob * m_hardnessKnob;
|
||||
knob * m_positionKnob;
|
||||
knob * m_vibratoGainKnob;
|
||||
knob * m_vibratoFreqKnob;
|
||||
knob * m_stickKnob;
|
||||
Knob * m_hardnessKnob;
|
||||
Knob * m_positionKnob;
|
||||
Knob * m_vibratoGainKnob;
|
||||
Knob * m_vibratoFreqKnob;
|
||||
Knob * m_stickKnob;
|
||||
|
||||
QWidget * m_tubeBellWidget;
|
||||
knob * m_modulatorKnob;
|
||||
knob * m_crossfadeKnob;
|
||||
knob * m_lfoSpeedKnob;
|
||||
knob * m_lfoDepthKnob;
|
||||
knob * m_adsrKnob;
|
||||
Knob * m_modulatorKnob;
|
||||
Knob * m_crossfadeKnob;
|
||||
Knob * m_lfoSpeedKnob;
|
||||
Knob * m_lfoDepthKnob;
|
||||
Knob * m_adsrKnob;
|
||||
|
||||
QWidget * m_bandedWGWidget;
|
||||
knob * m_pressureKnob;
|
||||
knob * m_motionKnob;
|
||||
knob * m_vibratoKnob;
|
||||
knob * m_velocityKnob;
|
||||
ledCheckBox * m_strikeLED;
|
||||
Knob * m_pressureKnob;
|
||||
Knob * m_motionKnob;
|
||||
Knob * m_vibratoKnob;
|
||||
Knob * m_velocityKnob;
|
||||
LedCheckBox * m_strikeLED;
|
||||
|
||||
comboBox * m_presetsCombo;
|
||||
knob * m_spreadKnob;
|
||||
ComboBox * m_presetsCombo;
|
||||
Knob * m_spreadKnob;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -32,11 +32,11 @@
|
||||
#include "debug.h"
|
||||
#include "Engine.h"
|
||||
#include "InstrumentTrack.h"
|
||||
#include "knob.h"
|
||||
#include "Knob.h"
|
||||
#include "NotePlayHandle.h"
|
||||
#include "pixmap_button.h"
|
||||
#include "PixmapButton.h"
|
||||
#include "SampleBuffer.h"
|
||||
#include "tooltip.h"
|
||||
#include "ToolTip.h"
|
||||
|
||||
#include "embed.cpp"
|
||||
|
||||
@@ -141,7 +141,7 @@ void OscillatorObject::oscUserDefWaveDblClick()
|
||||
if( af != "" )
|
||||
{
|
||||
// TODO:
|
||||
//toolTip::add( m_usrWaveBtn, m_sampleBuffer->audioFile() );
|
||||
//ToolTip::add( m_usrWaveBtn, m_sampleBuffer->audioFile() );
|
||||
}
|
||||
}
|
||||
|
||||
@@ -403,11 +403,11 @@ void TripleOscillator::updateAllDetuning()
|
||||
|
||||
|
||||
|
||||
class TripleOscKnob : public knob
|
||||
class TripleOscKnob : public Knob
|
||||
{
|
||||
public:
|
||||
TripleOscKnob( QWidget * _parent ) :
|
||||
knob( knobStyled, _parent )
|
||||
Knob( knobStyled, _parent )
|
||||
{
|
||||
setFixedSize( 28, 35 );
|
||||
}
|
||||
@@ -433,50 +433,50 @@ TripleOscillatorView::TripleOscillatorView( Instrument * _instrument,
|
||||
const int osc_h = 52;
|
||||
|
||||
// TODO: clean rewrite using layouts and all that...
|
||||
pixmapButton * pm_osc1_btn = new pixmapButton( this, NULL );
|
||||
PixmapButton * pm_osc1_btn = new PixmapButton( this, NULL );
|
||||
pm_osc1_btn->move( mod_x, mod1_y );
|
||||
pm_osc1_btn->setActiveGraphic( PLUGIN_NAME::getIconPixmap(
|
||||
"pm_active" ) );
|
||||
pm_osc1_btn->setInactiveGraphic( PLUGIN_NAME::getIconPixmap(
|
||||
"pm_inactive" ) );
|
||||
toolTip::add( pm_osc1_btn, tr( "Use phase modulation for "
|
||||
ToolTip::add( pm_osc1_btn, tr( "Use phase modulation for "
|
||||
"modulating oscillator 2 with "
|
||||
"oscillator 1" ) );
|
||||
|
||||
pixmapButton * am_osc1_btn = new pixmapButton( this, NULL );
|
||||
PixmapButton * am_osc1_btn = new PixmapButton( this, NULL );
|
||||
am_osc1_btn->move( mod_x + 35, mod1_y );
|
||||
am_osc1_btn->setActiveGraphic( PLUGIN_NAME::getIconPixmap(
|
||||
"am_active" ) );
|
||||
am_osc1_btn->setInactiveGraphic( PLUGIN_NAME::getIconPixmap(
|
||||
"am_inactive" ) );
|
||||
toolTip::add( am_osc1_btn, tr( "Use amplitude modulation for "
|
||||
ToolTip::add( am_osc1_btn, tr( "Use amplitude modulation for "
|
||||
"modulating oscillator 2 with "
|
||||
"oscillator 1" ) );
|
||||
|
||||
pixmapButton * mix_osc1_btn = new pixmapButton( this, NULL );
|
||||
PixmapButton * mix_osc1_btn = new PixmapButton( this, NULL );
|
||||
mix_osc1_btn->move( mod_x + 70, mod1_y );
|
||||
mix_osc1_btn->setActiveGraphic( PLUGIN_NAME::getIconPixmap(
|
||||
"mix_active" ) );
|
||||
mix_osc1_btn->setInactiveGraphic( PLUGIN_NAME::getIconPixmap(
|
||||
"mix_inactive" ) );
|
||||
toolTip::add( mix_osc1_btn, tr( "Mix output of oscillator 1 & 2" ) );
|
||||
ToolTip::add( mix_osc1_btn, tr( "Mix output of oscillator 1 & 2" ) );
|
||||
|
||||
pixmapButton * sync_osc1_btn = new pixmapButton( this, NULL );
|
||||
PixmapButton * sync_osc1_btn = new PixmapButton( this, NULL );
|
||||
sync_osc1_btn->move( mod_x + 105, mod1_y );
|
||||
sync_osc1_btn->setActiveGraphic( PLUGIN_NAME::getIconPixmap(
|
||||
"sync_active" ) );
|
||||
sync_osc1_btn->setInactiveGraphic( PLUGIN_NAME::getIconPixmap(
|
||||
"sync_inactive" ) );
|
||||
toolTip::add( sync_osc1_btn, tr( "Synchronize oscillator 1 with "
|
||||
ToolTip::add( sync_osc1_btn, tr( "Synchronize oscillator 1 with "
|
||||
"oscillator 2" ) );
|
||||
|
||||
pixmapButton * fm_osc1_btn = new pixmapButton( this, NULL );
|
||||
PixmapButton * fm_osc1_btn = new PixmapButton( this, NULL );
|
||||
fm_osc1_btn->move( mod_x + 140, mod1_y );
|
||||
fm_osc1_btn->setActiveGraphic( PLUGIN_NAME::getIconPixmap(
|
||||
"fm_active" ) );
|
||||
fm_osc1_btn->setInactiveGraphic( PLUGIN_NAME::getIconPixmap(
|
||||
"fm_inactive" ) );
|
||||
toolTip::add( fm_osc1_btn, tr( "Use frequency modulation for "
|
||||
ToolTip::add( fm_osc1_btn, tr( "Use frequency modulation for "
|
||||
"modulating oscillator 2 with "
|
||||
"oscillator 1" ) );
|
||||
|
||||
@@ -489,50 +489,50 @@ TripleOscillatorView::TripleOscillatorView( Instrument * _instrument,
|
||||
|
||||
|
||||
|
||||
pixmapButton * pm_osc2_btn = new pixmapButton( this, NULL );
|
||||
PixmapButton * pm_osc2_btn = new PixmapButton( this, NULL );
|
||||
pm_osc2_btn->move( mod_x, mod2_y );
|
||||
pm_osc2_btn->setActiveGraphic( PLUGIN_NAME::getIconPixmap(
|
||||
"pm_active" ) );
|
||||
pm_osc2_btn->setInactiveGraphic( PLUGIN_NAME::getIconPixmap(
|
||||
"pm_inactive" ) );
|
||||
toolTip::add( pm_osc2_btn, tr( "Use phase modulation for "
|
||||
ToolTip::add( pm_osc2_btn, tr( "Use phase modulation for "
|
||||
"modulating oscillator 3 with "
|
||||
"oscillator 2" ) );
|
||||
|
||||
pixmapButton * am_osc2_btn = new pixmapButton( this, NULL );
|
||||
PixmapButton * am_osc2_btn = new PixmapButton( this, NULL );
|
||||
am_osc2_btn->move( mod_x + 35, mod2_y );
|
||||
am_osc2_btn->setActiveGraphic( PLUGIN_NAME::getIconPixmap(
|
||||
"am_active" ) );
|
||||
am_osc2_btn->setInactiveGraphic( PLUGIN_NAME::getIconPixmap(
|
||||
"am_inactive" ) );
|
||||
toolTip::add( am_osc2_btn, tr( "Use amplitude modulation for "
|
||||
ToolTip::add( am_osc2_btn, tr( "Use amplitude modulation for "
|
||||
"modulating oscillator 3 with "
|
||||
"oscillator 2" ) );
|
||||
|
||||
pixmapButton * mix_osc2_btn = new pixmapButton( this, NULL );
|
||||
PixmapButton * mix_osc2_btn = new PixmapButton( this, NULL );
|
||||
mix_osc2_btn->move( mod_x + 70, mod2_y );
|
||||
mix_osc2_btn->setActiveGraphic( PLUGIN_NAME::getIconPixmap(
|
||||
"mix_active" ) );
|
||||
mix_osc2_btn->setInactiveGraphic( PLUGIN_NAME::getIconPixmap(
|
||||
"mix_inactive" ) );
|
||||
toolTip::add( mix_osc2_btn, tr("Mix output of oscillator 2 & 3" ) );
|
||||
ToolTip::add( mix_osc2_btn, tr("Mix output of oscillator 2 & 3" ) );
|
||||
|
||||
pixmapButton * sync_osc2_btn = new pixmapButton( this, NULL );
|
||||
PixmapButton * sync_osc2_btn = new PixmapButton( this, NULL );
|
||||
sync_osc2_btn->move( mod_x + 105, mod2_y );
|
||||
sync_osc2_btn->setActiveGraphic( PLUGIN_NAME::getIconPixmap(
|
||||
"sync_active" ) );
|
||||
sync_osc2_btn->setInactiveGraphic( PLUGIN_NAME::getIconPixmap(
|
||||
"sync_inactive" ) );
|
||||
toolTip::add( sync_osc2_btn, tr( "Synchronize oscillator 2 with "
|
||||
ToolTip::add( sync_osc2_btn, tr( "Synchronize oscillator 2 with "
|
||||
"oscillator 3" ) );
|
||||
|
||||
pixmapButton * fm_osc2_btn = new pixmapButton( this, NULL );
|
||||
PixmapButton * fm_osc2_btn = new PixmapButton( this, NULL );
|
||||
fm_osc2_btn->move( mod_x + 140, mod2_y );
|
||||
fm_osc2_btn->setActiveGraphic( PLUGIN_NAME::getIconPixmap(
|
||||
"fm_active" ) );
|
||||
fm_osc2_btn->setInactiveGraphic( PLUGIN_NAME::getIconPixmap(
|
||||
"fm_inactive" ) );
|
||||
toolTip::add( fm_osc2_btn, tr( "Use frequency modulation for "
|
||||
ToolTip::add( fm_osc2_btn, tr( "Use frequency modulation for "
|
||||
"modulating oscillator 3 with "
|
||||
"oscillator 2" ) );
|
||||
|
||||
@@ -550,7 +550,7 @@ TripleOscillatorView::TripleOscillatorView( Instrument * _instrument,
|
||||
int knob_y = osc_y + i * osc_h;
|
||||
|
||||
// setup volume-knob
|
||||
knob * vk = new knob( knobStyled, this );
|
||||
Knob * vk = new Knob( knobStyled, this );
|
||||
vk->setVolumeKnob( true );
|
||||
vk->setFixedSize( 28, 35 );
|
||||
vk->move( 6, knob_y );
|
||||
@@ -564,7 +564,7 @@ TripleOscillatorView::TripleOscillatorView( Instrument * _instrument,
|
||||
"here.").arg( i+1 ) );
|
||||
|
||||
// setup panning-knob
|
||||
knob * pk = new TripleOscKnob( this );
|
||||
Knob * pk = new TripleOscKnob( this );
|
||||
pk->move( 35, knob_y );
|
||||
pk->setHintText( tr("Osc %1 panning:").arg( i + 1 ) + " ", "" );
|
||||
pk->setWhatsThis(
|
||||
@@ -574,7 +574,7 @@ TripleOscillatorView::TripleOscillatorView( Instrument * _instrument,
|
||||
"output right.").arg( i+1 ) );
|
||||
|
||||
// setup coarse-knob
|
||||
knob * ck = new TripleOscKnob( this );
|
||||
Knob * ck = new TripleOscKnob( this );
|
||||
ck->move( 82, knob_y );
|
||||
ck->setHintText( tr( "Osc %1 coarse detuning:" ).arg( i + 1 ) +
|
||||
" ", " " + tr( "semitones" ) );
|
||||
@@ -587,7 +587,7 @@ TripleOscillatorView::TripleOscillatorView( Instrument * _instrument,
|
||||
|
||||
|
||||
// setup knob for left fine-detuning
|
||||
knob * flk = new TripleOscKnob( this );
|
||||
Knob * flk = new TripleOscKnob( this );
|
||||
flk->move( 111, knob_y );
|
||||
flk->setHintText( tr( "Osc %1 fine detuning left:" ).
|
||||
arg( i + 1 ) + " ",
|
||||
@@ -600,7 +600,7 @@ TripleOscillatorView::TripleOscillatorView( Instrument * _instrument,
|
||||
"\"fat\" sounds." ).arg( i + 1 ) );
|
||||
|
||||
// setup knob for right fine-detuning
|
||||
knob * frk = new TripleOscKnob( this );
|
||||
Knob * frk = new TripleOscKnob( this );
|
||||
frk->move( 140, knob_y );
|
||||
frk->setHintText( tr( "Osc %1 fine detuning right:" ).
|
||||
arg( i + 1 ) + " ",
|
||||
@@ -614,7 +614,7 @@ TripleOscillatorView::TripleOscillatorView( Instrument * _instrument,
|
||||
|
||||
|
||||
// setup phase-offset-knob
|
||||
knob * pok = new TripleOscKnob( this );
|
||||
Knob * pok = new TripleOscKnob( this );
|
||||
pok->move( 188, knob_y );
|
||||
pok->setHintText( tr( "Osc %1 phase-offset:" ).
|
||||
arg( i + 1 ) + " ",
|
||||
@@ -630,7 +630,7 @@ TripleOscillatorView::TripleOscillatorView( Instrument * _instrument,
|
||||
).arg( i+1 ) );
|
||||
|
||||
// setup stereo-phase-detuning-knob
|
||||
knob * spdk = new TripleOscKnob( this );
|
||||
Knob * spdk = new TripleOscKnob( this );
|
||||
spdk->move( 217, knob_y );
|
||||
spdk->setHintText( tr("Osc %1 stereo phase-detuning:" ).
|
||||
arg( i + 1 ) + " ",
|
||||
@@ -645,85 +645,85 @@ TripleOscillatorView::TripleOscillatorView( Instrument * _instrument,
|
||||
|
||||
int btn_y = 96 + i * osc_h;
|
||||
|
||||
pixmapButton * sin_wave_btn = new pixmapButton( this, NULL );
|
||||
PixmapButton * sin_wave_btn = new PixmapButton( this, NULL );
|
||||
sin_wave_btn->move( 128, btn_y );
|
||||
sin_wave_btn->setActiveGraphic( PLUGIN_NAME::getIconPixmap(
|
||||
"sin_shape_active" ) );
|
||||
sin_wave_btn->setInactiveGraphic( PLUGIN_NAME::getIconPixmap(
|
||||
"sin_shape_inactive" ) );
|
||||
toolTip::add( sin_wave_btn,
|
||||
ToolTip::add( sin_wave_btn,
|
||||
tr( "Use a sine-wave for "
|
||||
"current oscillator." ) );
|
||||
|
||||
pixmapButton * triangle_wave_btn =
|
||||
new pixmapButton( this, NULL );
|
||||
PixmapButton * triangle_wave_btn =
|
||||
new PixmapButton( this, NULL );
|
||||
triangle_wave_btn->move( 143, btn_y );
|
||||
triangle_wave_btn->setActiveGraphic(
|
||||
PLUGIN_NAME::getIconPixmap( "triangle_shape_active" ) );
|
||||
triangle_wave_btn->setInactiveGraphic(
|
||||
PLUGIN_NAME::getIconPixmap( "triangle_shape_inactive" ) );
|
||||
toolTip::add( triangle_wave_btn,
|
||||
ToolTip::add( triangle_wave_btn,
|
||||
tr( "Use a triangle-wave "
|
||||
"for current oscillator." ) );
|
||||
|
||||
pixmapButton * saw_wave_btn = new pixmapButton( this, NULL );
|
||||
PixmapButton * saw_wave_btn = new PixmapButton( this, NULL );
|
||||
saw_wave_btn->move( 158, btn_y );
|
||||
saw_wave_btn->setActiveGraphic( PLUGIN_NAME::getIconPixmap(
|
||||
"saw_shape_active" ) );
|
||||
saw_wave_btn->setInactiveGraphic( PLUGIN_NAME::getIconPixmap(
|
||||
"saw_shape_inactive" ) );
|
||||
toolTip::add( saw_wave_btn,
|
||||
ToolTip::add( saw_wave_btn,
|
||||
tr( "Use a saw-wave for "
|
||||
"current oscillator." ) );
|
||||
|
||||
pixmapButton * sqr_wave_btn = new pixmapButton( this, NULL );
|
||||
PixmapButton * sqr_wave_btn = new PixmapButton( this, NULL );
|
||||
sqr_wave_btn->move( 173, btn_y );
|
||||
sqr_wave_btn->setActiveGraphic( PLUGIN_NAME::getIconPixmap(
|
||||
"square_shape_active" ) );
|
||||
sqr_wave_btn->setInactiveGraphic( PLUGIN_NAME::getIconPixmap(
|
||||
"square_shape_inactive" ) );
|
||||
toolTip::add( sqr_wave_btn,
|
||||
ToolTip::add( sqr_wave_btn,
|
||||
tr( "Use a square-wave for "
|
||||
"current oscillator." ) );
|
||||
|
||||
pixmapButton * moog_saw_wave_btn =
|
||||
new pixmapButton( this, NULL );
|
||||
PixmapButton * moog_saw_wave_btn =
|
||||
new PixmapButton( this, NULL );
|
||||
moog_saw_wave_btn->move( 188, btn_y );
|
||||
moog_saw_wave_btn->setActiveGraphic(
|
||||
PLUGIN_NAME::getIconPixmap( "moog_saw_shape_active" ) );
|
||||
moog_saw_wave_btn->setInactiveGraphic(
|
||||
PLUGIN_NAME::getIconPixmap( "moog_saw_shape_inactive" ) );
|
||||
toolTip::add( moog_saw_wave_btn,
|
||||
ToolTip::add( moog_saw_wave_btn,
|
||||
tr( "Use a moog-like saw-wave "
|
||||
"for current oscillator." ) );
|
||||
|
||||
pixmapButton * exp_wave_btn = new pixmapButton( this, NULL );
|
||||
PixmapButton * exp_wave_btn = new PixmapButton( this, NULL );
|
||||
exp_wave_btn->move( 203, btn_y );
|
||||
exp_wave_btn->setActiveGraphic( PLUGIN_NAME::getIconPixmap(
|
||||
"exp_shape_active" ) );
|
||||
exp_wave_btn->setInactiveGraphic( PLUGIN_NAME::getIconPixmap(
|
||||
"exp_shape_inactive" ) );
|
||||
toolTip::add( exp_wave_btn,
|
||||
ToolTip::add( exp_wave_btn,
|
||||
tr( "Use an exponential "
|
||||
"wave for current oscillator." ) );
|
||||
|
||||
pixmapButton * white_noise_btn = new pixmapButton( this, NULL );
|
||||
PixmapButton * white_noise_btn = new PixmapButton( this, NULL );
|
||||
white_noise_btn->move( 218, btn_y );
|
||||
white_noise_btn->setActiveGraphic(
|
||||
PLUGIN_NAME::getIconPixmap( "white_noise_shape_active" ) );
|
||||
white_noise_btn->setInactiveGraphic(
|
||||
PLUGIN_NAME::getIconPixmap( "white_noise_shape_inactive" ) );
|
||||
toolTip::add( white_noise_btn,
|
||||
ToolTip::add( white_noise_btn,
|
||||
tr( "Use white-noise for "
|
||||
"current oscillator." ) );
|
||||
|
||||
pixmapButton * uwb = new pixmapButton( this, NULL );
|
||||
PixmapButton * uwb = new PixmapButton( this, NULL );
|
||||
uwb->move( 233, btn_y );
|
||||
uwb->setActiveGraphic( PLUGIN_NAME::getIconPixmap(
|
||||
"usr_shape_active" ) );
|
||||
uwb->setInactiveGraphic( PLUGIN_NAME::getIconPixmap(
|
||||
"usr_shape_inactive" ) );
|
||||
toolTip::add( uwb, tr( "Use a user-defined "
|
||||
ToolTip::add( uwb, tr( "Use a user-defined "
|
||||
"waveform for current oscillator." ) );
|
||||
|
||||
automatableButtonGroup * wsbg =
|
||||
|
||||
@@ -33,9 +33,9 @@
|
||||
|
||||
|
||||
class automatableButtonGroup;
|
||||
class knob;
|
||||
class Knob;
|
||||
class NotePlayHandle;
|
||||
class pixmapButton;
|
||||
class PixmapButton;
|
||||
class SampleBuffer;
|
||||
|
||||
const int NUM_OF_OSCILLATORS = 3;
|
||||
@@ -153,14 +153,14 @@ private:
|
||||
struct OscillatorKnobs
|
||||
{
|
||||
MM_OPERATORS
|
||||
OscillatorKnobs( knob * v,
|
||||
knob * p,
|
||||
knob * c,
|
||||
knob * fl,
|
||||
knob * fr,
|
||||
knob * po,
|
||||
knob * spd,
|
||||
pixmapButton * uwb,
|
||||
OscillatorKnobs( Knob * v,
|
||||
Knob * p,
|
||||
Knob * c,
|
||||
Knob * fl,
|
||||
Knob * fr,
|
||||
Knob * po,
|
||||
Knob * spd,
|
||||
PixmapButton * uwb,
|
||||
automatableButtonGroup * wsbg ) :
|
||||
m_volKnob( v ),
|
||||
m_panKnob( p ),
|
||||
@@ -176,14 +176,14 @@ private:
|
||||
OscillatorKnobs()
|
||||
{
|
||||
}
|
||||
knob * m_volKnob;
|
||||
knob * m_panKnob;
|
||||
knob * m_coarseKnob;
|
||||
knob * m_fineLeftKnob;
|
||||
knob * m_fineRightKnob;
|
||||
knob * m_phaseOffsetKnob;
|
||||
knob * m_stereoPhaseDetuningKnob;
|
||||
pixmapButton * m_userWaveButton;
|
||||
Knob * m_volKnob;
|
||||
Knob * m_panKnob;
|
||||
Knob * m_coarseKnob;
|
||||
Knob * m_fineLeftKnob;
|
||||
Knob * m_fineRightKnob;
|
||||
Knob * m_phaseOffsetKnob;
|
||||
Knob * m_stereoPhaseDetuningKnob;
|
||||
PixmapButton * m_userWaveButton;
|
||||
automatableButtonGroup * m_waveShapeBtnGrp;
|
||||
|
||||
} ;
|
||||
|
||||
@@ -38,10 +38,10 @@
|
||||
#include "InstrumentTrack.h"
|
||||
#include "VstPlugin.h"
|
||||
#include "MainWindow.h"
|
||||
#include "pixmap_button.h"
|
||||
#include "PixmapButton.h"
|
||||
#include "string_pair_drag.h"
|
||||
#include "text_float.h"
|
||||
#include "tooltip.h"
|
||||
#include "TextFloat.h"
|
||||
#include "ToolTip.h"
|
||||
#include "FileDialog.h"
|
||||
|
||||
#include "embed.cpp"
|
||||
@@ -119,7 +119,7 @@ void vestigeInstrument::loadSettings( const QDomElement & _this )
|
||||
const QMap<QString, QString> & dump = m_plugin->parameterDump();
|
||||
paramCount = dump.size();
|
||||
char paramStr[35];
|
||||
vstKnobs = new knob *[ paramCount ];
|
||||
vstKnobs = new Knob *[ paramCount ];
|
||||
knobFModel = new FloatModel *[ paramCount ];
|
||||
QStringList s_dumpValues;
|
||||
QWidget * widget = new QWidget();
|
||||
@@ -128,7 +128,7 @@ void vestigeInstrument::loadSettings( const QDomElement & _this )
|
||||
sprintf( paramStr, "param%d", i );
|
||||
s_dumpValues = dump[ paramStr ].split( ":" );
|
||||
|
||||
vstKnobs[i] = new knob( knobBright_26, widget, s_dumpValues.at( 1 ) );
|
||||
vstKnobs[i] = new Knob( knobBright_26, widget, s_dumpValues.at( 1 ) );
|
||||
vstKnobs[i]->setHintText( s_dumpValues.at( 1 ) + ":", "" );
|
||||
vstKnobs[i]->setLabel( s_dumpValues.at( 1 ).left( 15 ) );
|
||||
|
||||
@@ -250,7 +250,7 @@ void vestigeInstrument::loadFile( const QString & _file )
|
||||
}
|
||||
|
||||
m_pluginDLL = _file;
|
||||
textFloat * tf = textFloat::displayMessage(
|
||||
TextFloat * tf = TextFloat::displayMessage(
|
||||
tr( "Loading plugin" ),
|
||||
tr( "Please wait while loading VST-plugin..." ),
|
||||
PLUGIN_NAME::getIconPixmap( "logo", 24, 24 ), 0 );
|
||||
@@ -406,7 +406,7 @@ VestigeInstrumentView::VestigeInstrumentView( Instrument * _instrument,
|
||||
"artwork" ) );
|
||||
}
|
||||
|
||||
m_openPluginButton = new pixmapButton( this, "" );
|
||||
m_openPluginButton = new PixmapButton( this, "" );
|
||||
m_openPluginButton->setCheckable( false );
|
||||
m_openPluginButton->setCursor( Qt::PointingHandCursor );
|
||||
m_openPluginButton->move( 216, 81 );
|
||||
@@ -416,14 +416,14 @@ VestigeInstrumentView::VestigeInstrumentView( Instrument * _instrument,
|
||||
"select_file" ) );
|
||||
connect( m_openPluginButton, SIGNAL( clicked() ), this,
|
||||
SLOT( openPlugin() ) );
|
||||
toolTip::add( m_openPluginButton, tr( "Open other VST-plugin" ) );
|
||||
ToolTip::add( m_openPluginButton, tr( "Open other VST-plugin" ) );
|
||||
|
||||
m_openPluginButton->setWhatsThis(
|
||||
tr( "Click here, if you want to open another VST-plugin. After "
|
||||
"clicking on this button, a file-open-dialog appears "
|
||||
"and you can select your file." ) );
|
||||
|
||||
m_managePluginButton = new pixmapButton( this, "" );
|
||||
m_managePluginButton = new PixmapButton( this, "" );
|
||||
m_managePluginButton->setCheckable( false );
|
||||
m_managePluginButton->setCursor( Qt::PointingHandCursor );
|
||||
m_managePluginButton->move( 216, 101 );
|
||||
@@ -433,13 +433,13 @@ VestigeInstrumentView::VestigeInstrumentView( Instrument * _instrument,
|
||||
"track_op_menu" ) );
|
||||
connect( m_managePluginButton, SIGNAL( clicked() ), this,
|
||||
SLOT( managePlugin() ) );
|
||||
toolTip::add( m_managePluginButton, tr( "Control VST-plugin from LMMS host" ) );
|
||||
ToolTip::add( m_managePluginButton, tr( "Control VST-plugin from LMMS host" ) );
|
||||
|
||||
m_managePluginButton->setWhatsThis(
|
||||
tr( "Click here, if you want to control VST-plugin from host." ) );
|
||||
|
||||
|
||||
m_openPresetButton = new pixmapButton( this, "" );
|
||||
m_openPresetButton = new PixmapButton( this, "" );
|
||||
m_openPresetButton->setCheckable( false );
|
||||
m_openPresetButton->setCursor( Qt::PointingHandCursor );
|
||||
m_openPresetButton->move( 200, 224 );
|
||||
@@ -449,13 +449,13 @@ VestigeInstrumentView::VestigeInstrumentView( Instrument * _instrument,
|
||||
"project_open", 20, 20 ) );
|
||||
connect( m_openPresetButton, SIGNAL( clicked() ), this,
|
||||
SLOT( openPreset() ) );
|
||||
toolTip::add( m_openPresetButton, tr( "Open VST-plugin preset" ) );
|
||||
ToolTip::add( m_openPresetButton, tr( "Open VST-plugin preset" ) );
|
||||
|
||||
m_openPresetButton->setWhatsThis(
|
||||
tr( "Click here, if you want to open another *.fxp, *.fxb VST-plugin preset." ) );
|
||||
|
||||
|
||||
m_rolLPresetButton = new pixmapButton( this, "" );
|
||||
m_rolLPresetButton = new PixmapButton( this, "" );
|
||||
m_rolLPresetButton->setCheckable( false );
|
||||
m_rolLPresetButton->setCursor( Qt::PointingHandCursor );
|
||||
m_rolLPresetButton->move( 190, 201 );
|
||||
@@ -465,7 +465,7 @@ VestigeInstrumentView::VestigeInstrumentView( Instrument * _instrument,
|
||||
"stepper-left" ) );
|
||||
connect( m_rolLPresetButton, SIGNAL( clicked() ), this,
|
||||
SLOT( previousProgram() ) );
|
||||
toolTip::add( m_rolLPresetButton, tr( "Previous (-)" ) );
|
||||
ToolTip::add( m_rolLPresetButton, tr( "Previous (-)" ) );
|
||||
|
||||
m_rolLPresetButton->setShortcut( Qt::Key_Minus );
|
||||
|
||||
@@ -473,7 +473,7 @@ VestigeInstrumentView::VestigeInstrumentView( Instrument * _instrument,
|
||||
tr( "Click here, if you want to switch to another VST-plugin preset program." ) );
|
||||
|
||||
|
||||
m_savePresetButton = new pixmapButton( this, "" );
|
||||
m_savePresetButton = new PixmapButton( this, "" );
|
||||
m_savePresetButton->setCheckable( false );
|
||||
m_savePresetButton->setCursor( Qt::PointingHandCursor );
|
||||
m_savePresetButton->move( 224, 224 );
|
||||
@@ -483,13 +483,13 @@ VestigeInstrumentView::VestigeInstrumentView( Instrument * _instrument,
|
||||
"project_save", 20, 20 ) );
|
||||
connect( m_savePresetButton, SIGNAL( clicked() ), this,
|
||||
SLOT( savePreset() ) );
|
||||
toolTip::add( m_savePresetButton, tr( "Save preset" ) );
|
||||
ToolTip::add( m_savePresetButton, tr( "Save preset" ) );
|
||||
|
||||
m_savePresetButton->setWhatsThis(
|
||||
tr( "Click here, if you want to save current VST-plugin preset program." ) );
|
||||
|
||||
|
||||
m_rolRPresetButton = new pixmapButton( this, "" );
|
||||
m_rolRPresetButton = new PixmapButton( this, "" );
|
||||
m_rolRPresetButton->setCheckable( false );
|
||||
m_rolRPresetButton->setCursor( Qt::PointingHandCursor );
|
||||
m_rolRPresetButton->move( 209, 201 );
|
||||
@@ -499,7 +499,7 @@ VestigeInstrumentView::VestigeInstrumentView( Instrument * _instrument,
|
||||
"stepper-right" ) );
|
||||
connect( m_rolRPresetButton, SIGNAL( clicked() ), this,
|
||||
SLOT( nextProgram() ) );
|
||||
toolTip::add( m_rolRPresetButton, tr( "Next (+)" ) );
|
||||
ToolTip::add( m_rolRPresetButton, tr( "Next (+)" ) );
|
||||
|
||||
m_rolRPresetButton->setShortcut( Qt::Key_Plus );
|
||||
|
||||
@@ -934,7 +934,7 @@ manageVestigeInstrumentView::manageVestigeInstrumentView( Instrument * _instrume
|
||||
bool isVstKnobs = true;
|
||||
|
||||
if (m_vi->vstKnobs == NULL) {
|
||||
m_vi->vstKnobs = new knob *[ m_vi->paramCount ];
|
||||
m_vi->vstKnobs = new Knob *[ m_vi->paramCount ];
|
||||
isVstKnobs = false;
|
||||
}
|
||||
if (m_vi->knobFModel == NULL) {
|
||||
@@ -950,7 +950,7 @@ manageVestigeInstrumentView::manageVestigeInstrumentView( Instrument * _instrume
|
||||
sprintf( paramStr, "param%d", i);
|
||||
s_dumpValues = dump[ paramStr ].split( ":" );
|
||||
|
||||
m_vi->vstKnobs[ i ] = new knob( knobBright_26, this, s_dumpValues.at( 1 ) );
|
||||
m_vi->vstKnobs[ i ] = new Knob( knobBright_26, this, s_dumpValues.at( 1 ) );
|
||||
m_vi->vstKnobs[ i ]->setHintText( s_dumpValues.at( 1 ) + ":", "" );
|
||||
m_vi->vstKnobs[ i ]->setLabel( s_dumpValues.at( 1 ).left( 15 ) );
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
#include "Instrument.h"
|
||||
#include "InstrumentView.h"
|
||||
#include "Note.h"
|
||||
#include "knob.h"
|
||||
#include "Knob.h"
|
||||
|
||||
#include "AutomatableModel.h"
|
||||
|
||||
@@ -43,7 +43,7 @@
|
||||
class QPixmap;
|
||||
class QPushButton;
|
||||
|
||||
class pixmapButton;
|
||||
class PixmapButton;
|
||||
class VstPlugin;
|
||||
|
||||
|
||||
@@ -85,7 +85,7 @@ private:
|
||||
QString m_pluginDLL;
|
||||
QMdiSubWindow * m_subWindow;
|
||||
QScrollArea * m_scrollArea;
|
||||
knob ** vstKnobs;
|
||||
Knob ** vstKnobs;
|
||||
FloatModel ** knobFModel;
|
||||
QObject * p_subWindow;
|
||||
int paramCount;
|
||||
@@ -168,14 +168,14 @@ private:
|
||||
|
||||
int lastPosInMenu;
|
||||
|
||||
pixmapButton * m_openPluginButton;
|
||||
pixmapButton * m_openPresetButton;
|
||||
pixmapButton * m_rolLPresetButton;
|
||||
pixmapButton * m_rolRPresetButton;
|
||||
PixmapButton * m_openPluginButton;
|
||||
PixmapButton * m_openPresetButton;
|
||||
PixmapButton * m_rolLPresetButton;
|
||||
PixmapButton * m_rolRPresetButton;
|
||||
QPushButton * m_selPresetButton;
|
||||
QPushButton * m_toggleGUIButton;
|
||||
pixmapButton * m_managePluginButton;
|
||||
pixmapButton * m_savePresetButton;
|
||||
PixmapButton * m_managePluginButton;
|
||||
PixmapButton * m_savePresetButton;
|
||||
|
||||
Instrument * _instrument2;
|
||||
QWidget * _parent2;
|
||||
|
||||
@@ -60,7 +60,7 @@ nineButtonSelector::nineButtonSelector( QPixmap _button0_on,
|
||||
setFixedSize( 50, 50 );
|
||||
move( _x, _y );
|
||||
|
||||
m_button = new pixmapButton( this, NULL );
|
||||
m_button = new PixmapButton( this, NULL );
|
||||
m_button->move( 1, 1 );
|
||||
m_button->setActiveGraphic( _button0_on );
|
||||
m_button->setInactiveGraphic( _button0_off );
|
||||
@@ -69,7 +69,7 @@ nineButtonSelector::nineButtonSelector( QPixmap _button0_on,
|
||||
this, SLOT ( button0Clicked() ) );
|
||||
m_buttons.append( m_button );
|
||||
|
||||
m_button = new pixmapButton( this, NULL );
|
||||
m_button = new PixmapButton( this, NULL );
|
||||
m_button->move( 18, 1 );
|
||||
m_button->setActiveGraphic( _button1_on );
|
||||
m_button->setInactiveGraphic( _button1_off );
|
||||
@@ -78,7 +78,7 @@ nineButtonSelector::nineButtonSelector( QPixmap _button0_on,
|
||||
this, SLOT ( button1Clicked() ) );
|
||||
m_buttons.append( m_button );
|
||||
|
||||
m_button = new pixmapButton( this, NULL );
|
||||
m_button = new PixmapButton( this, NULL );
|
||||
m_button->move( 35, 1 );
|
||||
m_button->setActiveGraphic( _button2_on );
|
||||
m_button->setInactiveGraphic( _button2_off );
|
||||
@@ -87,7 +87,7 @@ nineButtonSelector::nineButtonSelector( QPixmap _button0_on,
|
||||
this, SLOT ( button2Clicked() ) );
|
||||
m_buttons.append( m_button );
|
||||
|
||||
m_button = new pixmapButton( this, NULL );
|
||||
m_button = new PixmapButton( this, NULL );
|
||||
m_button->move( 1, 18 );
|
||||
m_button->setActiveGraphic( _button3_on );
|
||||
m_button->setInactiveGraphic( _button3_off );
|
||||
@@ -96,7 +96,7 @@ nineButtonSelector::nineButtonSelector( QPixmap _button0_on,
|
||||
this, SLOT ( button3Clicked() ) );
|
||||
m_buttons.append( m_button );
|
||||
|
||||
m_button = new pixmapButton( this, NULL );
|
||||
m_button = new PixmapButton( this, NULL );
|
||||
m_button->move( 18, 18 );
|
||||
m_button->setActiveGraphic( _button4_on );
|
||||
m_button->setInactiveGraphic( _button4_off );
|
||||
@@ -105,7 +105,7 @@ nineButtonSelector::nineButtonSelector( QPixmap _button0_on,
|
||||
this, SLOT ( button4Clicked() ) );
|
||||
m_buttons.append( m_button );
|
||||
|
||||
m_button = new pixmapButton( this, NULL );
|
||||
m_button = new PixmapButton( this, NULL );
|
||||
m_button->move( 35, 18 );
|
||||
m_button->setActiveGraphic( _button5_on );
|
||||
m_button->setInactiveGraphic( _button5_off );
|
||||
@@ -114,7 +114,7 @@ nineButtonSelector::nineButtonSelector( QPixmap _button0_on,
|
||||
this, SLOT ( button5Clicked() ) );
|
||||
m_buttons.append( m_button );
|
||||
|
||||
m_button = new pixmapButton( this, NULL );
|
||||
m_button = new PixmapButton( this, NULL );
|
||||
m_button->move( 1, 35 );
|
||||
m_button->setActiveGraphic( _button6_on );
|
||||
m_button->setInactiveGraphic( _button6_off );
|
||||
@@ -123,7 +123,7 @@ nineButtonSelector::nineButtonSelector( QPixmap _button0_on,
|
||||
this, SLOT ( button6Clicked() ) );
|
||||
m_buttons.append( m_button );
|
||||
|
||||
m_button = new pixmapButton( this, NULL );
|
||||
m_button = new PixmapButton( this, NULL );
|
||||
m_button->move( 18, 35 );
|
||||
m_button->setActiveGraphic( _button7_on );
|
||||
m_button->setInactiveGraphic( _button7_off );
|
||||
@@ -132,7 +132,7 @@ nineButtonSelector::nineButtonSelector( QPixmap _button0_on,
|
||||
this, SLOT ( button7Clicked() ) );
|
||||
m_buttons.append( m_button );
|
||||
|
||||
m_button = new pixmapButton( this, NULL );
|
||||
m_button = new PixmapButton( this, NULL );
|
||||
m_button->move( 35, 35 );
|
||||
m_button->setActiveGraphic( _button8_on );
|
||||
m_button->setInactiveGraphic( _button8_off );
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
#ifndef _NINE_BUTTON_SELECTOR_H
|
||||
#define _NINE_BUTTON_SELECTOR_H
|
||||
|
||||
#include "pixmap_button.h"
|
||||
#include "PixmapButton.h"
|
||||
|
||||
|
||||
class nineButtonSelector: public QWidget , public IntModelView
|
||||
@@ -83,9 +83,9 @@ private:
|
||||
virtual void modelChanged();
|
||||
void updateButton( int );
|
||||
|
||||
QList<pixmapButton *> m_buttons;
|
||||
pixmapButton * m_button;
|
||||
pixmapButton * m_lastBtn;
|
||||
QList<PixmapButton *> m_buttons;
|
||||
PixmapButton * m_button;
|
||||
PixmapButton * m_lastBtn;
|
||||
|
||||
} ;
|
||||
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
#include "Engine.h"
|
||||
#include "InstrumentTrack.h"
|
||||
#include "NotePlayHandle.h"
|
||||
#include "tooltip.h"
|
||||
#include "ToolTip.h"
|
||||
#include "base64.h"
|
||||
#include "CaptionMenu.h"
|
||||
#include "Oscillator.h"
|
||||
@@ -358,14 +358,14 @@ vibedView::vibedView( Instrument * _instrument,
|
||||
"artwork" ) );
|
||||
setPalette( pal );
|
||||
|
||||
m_volumeKnob = new knob( knobBright_26, this );
|
||||
m_volumeKnob = new Knob( knobBright_26, this );
|
||||
m_volumeKnob->setVolumeKnob( true );
|
||||
m_volumeKnob->move( 103, 142 );
|
||||
m_volumeKnob->setHintText( tr( "Volume:" ) + " ", "" );
|
||||
m_volumeKnob->setWhatsThis( tr( "The 'V' knob sets the volume "
|
||||
"of the selected string." ) );
|
||||
|
||||
m_stiffnessKnob = new knob( knobBright_26, this );
|
||||
m_stiffnessKnob = new Knob( knobBright_26, this );
|
||||
m_stiffnessKnob->move( 129, 142 );
|
||||
m_stiffnessKnob->setHintText( tr( "String stiffness:" ) +
|
||||
" ", "" );
|
||||
@@ -375,14 +375,14 @@ vibedView::vibedView( Instrument * _instrument,
|
||||
"the setting, the longer the string will ring." ) );
|
||||
|
||||
|
||||
m_pickKnob = new knob( knobBright_26, this );
|
||||
m_pickKnob = new Knob( knobBright_26, this );
|
||||
m_pickKnob->move( 153, 142 );
|
||||
m_pickKnob->setHintText( tr( "Pick position:" ) + " ", "" );
|
||||
m_pickKnob->setWhatsThis( tr(
|
||||
"The 'P' knob sets the position where the selected string will be 'picked'. "
|
||||
"The lower the setting the closer the pick is to the bridge." ) );
|
||||
|
||||
m_pickupKnob = new knob( knobBright_26, this );
|
||||
m_pickupKnob = new Knob( knobBright_26, this );
|
||||
m_pickupKnob->move( 177, 142 );
|
||||
m_pickupKnob->setHintText( tr( "Pickup position:" ) +
|
||||
" ", "" );
|
||||
@@ -391,14 +391,14 @@ vibedView::vibedView( Instrument * _instrument,
|
||||
"for the selected string. The lower the setting, the closer the "
|
||||
"pickup is to the bridge." ) );
|
||||
|
||||
m_panKnob = new knob( knobBright_26, this );
|
||||
m_panKnob = new Knob( knobBright_26, this );
|
||||
m_panKnob->move( 105, 187 );
|
||||
m_panKnob->setHintText( tr( "Pan:" ) + " ", "" );
|
||||
m_panKnob->setWhatsThis( tr(
|
||||
"The Pan knob determines the location of the selected string in the stereo "
|
||||
"field." ) );
|
||||
|
||||
m_detuneKnob = new knob( knobBright_26, this );
|
||||
m_detuneKnob = new Knob( knobBright_26, this );
|
||||
m_detuneKnob->move( 150, 187 );
|
||||
m_detuneKnob->setHintText( tr( "Detune:" ) + " ", "" );
|
||||
m_detuneKnob->setWhatsThis( tr(
|
||||
@@ -406,7 +406,7 @@ vibedView::vibedView( Instrument * _instrument,
|
||||
"than zero will cause the string to sound flat. Settings greater than zero "
|
||||
"will cause the string to sound sharp." ) );
|
||||
|
||||
m_randomKnob = new knob( knobBright_26, this );
|
||||
m_randomKnob = new Knob( knobBright_26, this );
|
||||
m_randomKnob->move( 194, 187 );
|
||||
m_randomKnob->setHintText( tr( "Fuzziness:" ) +
|
||||
" ", "" );
|
||||
@@ -415,7 +415,7 @@ vibedView::vibedView( Instrument * _instrument,
|
||||
"apparent during the attack, though it can also be used to make the string "
|
||||
"sound more 'metallic'.") );
|
||||
|
||||
m_lengthKnob = new knob( knobBright_26, this );
|
||||
m_lengthKnob = new Knob( knobBright_26, this );
|
||||
m_lengthKnob->move( 23, 193 );
|
||||
m_lengthKnob->setHintText( tr( "Length:" ) +
|
||||
" ", "" );
|
||||
@@ -424,9 +424,9 @@ vibedView::vibedView( Instrument * _instrument,
|
||||
"will both ring longer and sound brighter, however, they will also eat up "
|
||||
"more CPU cycles." ) );
|
||||
|
||||
m_impulse = new ledCheckBox( "", this );
|
||||
m_impulse = new LedCheckBox( "", this );
|
||||
m_impulse->move( 23, 94 );
|
||||
toolTip::add( m_impulse,
|
||||
ToolTip::add( m_impulse,
|
||||
tr( "Impulse or initial state" ) );
|
||||
m_impulse->setWhatsThis( tr(
|
||||
"The 'Imp' selector determines whether the waveform in the graph is to be "
|
||||
@@ -488,7 +488,7 @@ vibedView::vibedView( Instrument * _instrument,
|
||||
21, 39,
|
||||
this);
|
||||
|
||||
m_graph = new graph( this );
|
||||
m_graph = new Graph( this );
|
||||
m_graph->setWindowTitle( tr( "Impulse Editor" ) );
|
||||
m_graph->setForeground( PLUGIN_NAME::getIconPixmap( "wavegraph4" ) );
|
||||
m_graph->move( 76, 21 );
|
||||
@@ -530,9 +530,9 @@ vibedView::vibedView( Instrument * _instrument,
|
||||
"whether the string is active in the current instrument." ) );
|
||||
|
||||
|
||||
m_power = new ledCheckBox( "", this, tr( "Enable waveform" ) );
|
||||
m_power = new LedCheckBox( "", this, tr( "Enable waveform" ) );
|
||||
m_power->move( 212, 130 );
|
||||
toolTip::add( m_power,
|
||||
ToolTip::add( m_power,
|
||||
tr( "Click here to enable/disable waveform." ) );
|
||||
|
||||
|
||||
@@ -549,104 +549,104 @@ vibedView::vibedView( Instrument * _instrument,
|
||||
|
||||
showString( 0 );
|
||||
|
||||
m_sinWaveBtn = new pixmapButton( this, tr( "Sine wave" ) );
|
||||
m_sinWaveBtn = new PixmapButton( this, tr( "Sine wave" ) );
|
||||
m_sinWaveBtn->move( 212, 24 );
|
||||
m_sinWaveBtn->setActiveGraphic( embed::getIconPixmap(
|
||||
"sin_wave_active" ) );
|
||||
m_sinWaveBtn->setInactiveGraphic( embed::getIconPixmap(
|
||||
"sin_wave_inactive" ) );
|
||||
toolTip::add( m_sinWaveBtn,
|
||||
ToolTip::add( m_sinWaveBtn,
|
||||
tr( "Use a sine-wave for "
|
||||
"current oscillator." ) );
|
||||
connect( m_sinWaveBtn, SIGNAL (clicked () ),
|
||||
this, SLOT ( sinWaveClicked() ) );
|
||||
|
||||
|
||||
m_triangleWaveBtn = new pixmapButton( this, tr( "Triangle wave" ) );
|
||||
m_triangleWaveBtn = new PixmapButton( this, tr( "Triangle wave" ) );
|
||||
m_triangleWaveBtn->move( 212, 41 );
|
||||
m_triangleWaveBtn->setActiveGraphic(
|
||||
embed::getIconPixmap( "triangle_wave_active" ) );
|
||||
m_triangleWaveBtn->setInactiveGraphic(
|
||||
embed::getIconPixmap( "triangle_wave_inactive" ) );
|
||||
toolTip::add( m_triangleWaveBtn,
|
||||
ToolTip::add( m_triangleWaveBtn,
|
||||
tr( "Use a triangle-wave "
|
||||
"for current oscillator." ) );
|
||||
connect( m_triangleWaveBtn, SIGNAL ( clicked () ),
|
||||
this, SLOT ( triangleWaveClicked( ) ) );
|
||||
|
||||
|
||||
m_sawWaveBtn = new pixmapButton( this, tr( "Saw wave" ) );
|
||||
m_sawWaveBtn = new PixmapButton( this, tr( "Saw wave" ) );
|
||||
m_sawWaveBtn->move( 212, 58 );
|
||||
m_sawWaveBtn->setActiveGraphic( embed::getIconPixmap(
|
||||
"saw_wave_active" ) );
|
||||
m_sawWaveBtn->setInactiveGraphic( embed::getIconPixmap(
|
||||
"saw_wave_inactive" ) );
|
||||
toolTip::add( m_sawWaveBtn,
|
||||
ToolTip::add( m_sawWaveBtn,
|
||||
tr( "Use a saw-wave for "
|
||||
"current oscillator." ) );
|
||||
connect( m_sawWaveBtn, SIGNAL (clicked () ),
|
||||
this, SLOT ( sawWaveClicked() ) );
|
||||
|
||||
|
||||
m_sqrWaveBtn = new pixmapButton( this, tr( "Square wave" ) );
|
||||
m_sqrWaveBtn = new PixmapButton( this, tr( "Square wave" ) );
|
||||
m_sqrWaveBtn->move( 212, 75 );
|
||||
m_sqrWaveBtn->setActiveGraphic( embed::getIconPixmap(
|
||||
"square_wave_active" ) );
|
||||
m_sqrWaveBtn->setInactiveGraphic( embed::getIconPixmap(
|
||||
"square_wave_inactive" ) );
|
||||
toolTip::add( m_sqrWaveBtn,
|
||||
ToolTip::add( m_sqrWaveBtn,
|
||||
tr( "Use a square-wave for "
|
||||
"current oscillator." ) );
|
||||
connect( m_sqrWaveBtn, SIGNAL ( clicked () ),
|
||||
this, SLOT ( sqrWaveClicked() ) );
|
||||
|
||||
|
||||
m_whiteNoiseWaveBtn = new pixmapButton( this, tr( "White noise wave" ) );
|
||||
m_whiteNoiseWaveBtn = new PixmapButton( this, tr( "White noise wave" ) );
|
||||
m_whiteNoiseWaveBtn->move( 212, 92 );
|
||||
m_whiteNoiseWaveBtn->setActiveGraphic(
|
||||
embed::getIconPixmap( "white_noise_wave_active" ) );
|
||||
m_whiteNoiseWaveBtn->setInactiveGraphic(
|
||||
embed::getIconPixmap( "white_noise_wave_inactive" ) );
|
||||
toolTip::add( m_whiteNoiseWaveBtn,
|
||||
ToolTip::add( m_whiteNoiseWaveBtn,
|
||||
tr( "Use white-noise for "
|
||||
"current oscillator." ) );
|
||||
connect( m_whiteNoiseWaveBtn, SIGNAL ( clicked () ),
|
||||
this, SLOT ( noiseWaveClicked() ) );
|
||||
|
||||
|
||||
m_usrWaveBtn = new pixmapButton( this, tr( "User defined wave" ) );
|
||||
m_usrWaveBtn = new PixmapButton( this, tr( "User defined wave" ) );
|
||||
m_usrWaveBtn->move( 212, 109 );
|
||||
m_usrWaveBtn->setActiveGraphic( embed::getIconPixmap(
|
||||
"usr_wave_active" ) );
|
||||
m_usrWaveBtn->setInactiveGraphic( embed::getIconPixmap(
|
||||
"usr_wave_inactive" ) );
|
||||
toolTip::add( m_usrWaveBtn,
|
||||
ToolTip::add( m_usrWaveBtn,
|
||||
tr( "Use a user-defined "
|
||||
"waveform for current oscillator." ) );
|
||||
connect( m_usrWaveBtn, SIGNAL ( clicked () ),
|
||||
this, SLOT ( usrWaveClicked() ) );
|
||||
|
||||
|
||||
m_smoothBtn = new pixmapButton( this, tr( "Smooth" ) );
|
||||
m_smoothBtn = new PixmapButton( this, tr( "Smooth" ) );
|
||||
m_smoothBtn->move( 79, 129 );
|
||||
m_smoothBtn->setActiveGraphic( PLUGIN_NAME::getIconPixmap(
|
||||
"smooth_active" ) );
|
||||
m_smoothBtn->setInactiveGraphic( PLUGIN_NAME::getIconPixmap(
|
||||
"smooth_inactive" ) );
|
||||
m_smoothBtn->setChecked( false );
|
||||
toolTip::add( m_smoothBtn,
|
||||
ToolTip::add( m_smoothBtn,
|
||||
tr( "Click here to smooth waveform." ) );
|
||||
connect( m_smoothBtn, SIGNAL ( clicked () ),
|
||||
this, SLOT ( smoothClicked() ) );
|
||||
|
||||
m_normalizeBtn = new pixmapButton( this, tr( "Normalize" ) );
|
||||
m_normalizeBtn = new PixmapButton( this, tr( "Normalize" ) );
|
||||
m_normalizeBtn->move( 96, 129 );
|
||||
m_normalizeBtn->setActiveGraphic( PLUGIN_NAME::getIconPixmap(
|
||||
"normalize_active" ) );
|
||||
m_normalizeBtn->setInactiveGraphic( PLUGIN_NAME::getIconPixmap(
|
||||
"normalize_inactive" ) );
|
||||
m_normalizeBtn->setChecked( false );
|
||||
toolTip::add( m_normalizeBtn,
|
||||
ToolTip::add( m_normalizeBtn,
|
||||
tr( "Click here to normalize waveform." ) );
|
||||
|
||||
connect( m_normalizeBtn, SIGNAL ( clicked () ),
|
||||
@@ -730,7 +730,7 @@ void vibedView::noiseWaveClicked()
|
||||
void vibedView::usrWaveClicked()
|
||||
{
|
||||
QString fileName = m_graph->model()->setWaveToUser();
|
||||
toolTip::add( m_usrWaveBtn, fileName );
|
||||
ToolTip::add( m_usrWaveBtn, fileName );
|
||||
Engine::getSong()->setModified();
|
||||
}
|
||||
|
||||
|
||||
@@ -26,10 +26,10 @@
|
||||
|
||||
#include "Instrument.h"
|
||||
#include "InstrumentView.h"
|
||||
#include "graph.h"
|
||||
#include "knob.h"
|
||||
#include "pixmap_button.h"
|
||||
#include "led_checkbox.h"
|
||||
#include "Graph.h"
|
||||
#include "Knob.h"
|
||||
#include "PixmapButton.h"
|
||||
#include "LedCheckbox.h"
|
||||
#include "nine_button_selector.h"
|
||||
|
||||
class vibedView;
|
||||
@@ -110,31 +110,31 @@ private:
|
||||
|
||||
|
||||
// String-related
|
||||
knob * m_pickKnob;
|
||||
knob * m_pickupKnob;
|
||||
knob * m_stiffnessKnob;
|
||||
knob * m_volumeKnob;
|
||||
knob * m_panKnob;
|
||||
knob * m_detuneKnob;
|
||||
knob * m_randomKnob;
|
||||
knob * m_lengthKnob;
|
||||
graph * m_graph;
|
||||
Knob * m_pickKnob;
|
||||
Knob * m_pickupKnob;
|
||||
Knob * m_stiffnessKnob;
|
||||
Knob * m_volumeKnob;
|
||||
Knob * m_panKnob;
|
||||
Knob * m_detuneKnob;
|
||||
Knob * m_randomKnob;
|
||||
Knob * m_lengthKnob;
|
||||
Graph * m_graph;
|
||||
nineButtonSelector * m_harmonic;
|
||||
ledCheckBox * m_impulse;
|
||||
ledCheckBox * m_power;
|
||||
LedCheckBox * m_impulse;
|
||||
LedCheckBox * m_power;
|
||||
|
||||
// Not in model
|
||||
nineButtonSelector * m_stringSelector;
|
||||
pixmapButton * m_smoothBtn;
|
||||
pixmapButton * m_normalizeBtn;
|
||||
PixmapButton * m_smoothBtn;
|
||||
PixmapButton * m_normalizeBtn;
|
||||
|
||||
// From impulse editor
|
||||
pixmapButton * m_sinWaveBtn;
|
||||
pixmapButton * m_triangleWaveBtn;
|
||||
pixmapButton * m_sqrWaveBtn;
|
||||
pixmapButton * m_sawWaveBtn;
|
||||
pixmapButton * m_whiteNoiseWaveBtn;
|
||||
pixmapButton * m_usrWaveBtn;
|
||||
PixmapButton * m_sinWaveBtn;
|
||||
PixmapButton * m_triangleWaveBtn;
|
||||
PixmapButton * m_sqrWaveBtn;
|
||||
PixmapButton * m_sawWaveBtn;
|
||||
PixmapButton * m_whiteNoiseWaveBtn;
|
||||
PixmapButton * m_usrWaveBtn;
|
||||
|
||||
|
||||
};
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
#include "Engine.h"
|
||||
#include "InstrumentTrack.h"
|
||||
#include "templates.h"
|
||||
#include "tooltip.h"
|
||||
#include "ToolTip.h"
|
||||
#include "Song.h"
|
||||
#include "lmms_math.h"
|
||||
#include "interpolation.h"
|
||||
@@ -721,29 +721,29 @@ WatsynView::WatsynView( Instrument * _instrument,
|
||||
|
||||
// button groups next.
|
||||
// graph select buttons
|
||||
pixmapButton * a1_selectButton = new pixmapButton( this, NULL );
|
||||
PixmapButton * a1_selectButton = new PixmapButton( this, NULL );
|
||||
a1_selectButton -> move( 4, 121 );
|
||||
a1_selectButton -> setActiveGraphic( PLUGIN_NAME::getIconPixmap( "a1_active" ) );
|
||||
a1_selectButton -> setInactiveGraphic( PLUGIN_NAME::getIconPixmap( "a1_inactive" ) );
|
||||
toolTip::add( a1_selectButton, tr( "Select oscillator A1") );
|
||||
ToolTip::add( a1_selectButton, tr( "Select oscillator A1") );
|
||||
|
||||
pixmapButton * a2_selectButton = new pixmapButton( this, NULL );
|
||||
PixmapButton * a2_selectButton = new PixmapButton( this, NULL );
|
||||
a2_selectButton -> move( 44, 121 );
|
||||
a2_selectButton -> setActiveGraphic( PLUGIN_NAME::getIconPixmap( "a2_active" ) );
|
||||
a2_selectButton -> setInactiveGraphic( PLUGIN_NAME::getIconPixmap( "a2_inactive" ) );
|
||||
toolTip::add( a2_selectButton, tr( "Select oscillator A2") );
|
||||
ToolTip::add( a2_selectButton, tr( "Select oscillator A2") );
|
||||
|
||||
pixmapButton * b1_selectButton = new pixmapButton( this, NULL );
|
||||
PixmapButton * b1_selectButton = new PixmapButton( this, NULL );
|
||||
b1_selectButton -> move( 84, 121 );
|
||||
b1_selectButton -> setActiveGraphic( PLUGIN_NAME::getIconPixmap( "b1_active" ) );
|
||||
b1_selectButton -> setInactiveGraphic( PLUGIN_NAME::getIconPixmap( "b1_inactive" ) );
|
||||
toolTip::add( b1_selectButton, tr( "Select oscillator B1") );
|
||||
ToolTip::add( b1_selectButton, tr( "Select oscillator B1") );
|
||||
|
||||
pixmapButton * b2_selectButton = new pixmapButton( this, NULL );
|
||||
PixmapButton * b2_selectButton = new PixmapButton( this, NULL );
|
||||
b2_selectButton -> move( 124, 121 );
|
||||
b2_selectButton -> setActiveGraphic( PLUGIN_NAME::getIconPixmap( "b2_active" ) );
|
||||
b2_selectButton -> setInactiveGraphic( PLUGIN_NAME::getIconPixmap( "b2_inactive" ) );
|
||||
toolTip::add( b2_selectButton, tr( "Select oscillator B2") );
|
||||
ToolTip::add( b2_selectButton, tr( "Select oscillator B2") );
|
||||
|
||||
m_selectedGraphGroup = new automatableButtonGroup( this );
|
||||
m_selectedGraphGroup -> addButton( a1_selectButton );
|
||||
@@ -752,29 +752,29 @@ WatsynView::WatsynView( Instrument * _instrument,
|
||||
m_selectedGraphGroup -> addButton( b2_selectButton );
|
||||
|
||||
// A-modulation button group
|
||||
pixmapButton * amod_mixButton = new pixmapButton( this, NULL );
|
||||
PixmapButton * amod_mixButton = new PixmapButton( this, NULL );
|
||||
amod_mixButton -> move( 4, 50 );
|
||||
amod_mixButton -> setActiveGraphic( PLUGIN_NAME::getIconPixmap( "amix_active" ) );
|
||||
amod_mixButton -> setInactiveGraphic( PLUGIN_NAME::getIconPixmap( "amix_inactive" ) );
|
||||
toolTip::add( amod_mixButton, tr( "Mix output of A2 to A1" ) );
|
||||
ToolTip::add( amod_mixButton, tr( "Mix output of A2 to A1" ) );
|
||||
|
||||
pixmapButton * amod_amButton = new pixmapButton( this, NULL );
|
||||
PixmapButton * amod_amButton = new PixmapButton( this, NULL );
|
||||
amod_amButton -> move( 4, 66 );
|
||||
amod_amButton -> setActiveGraphic( PLUGIN_NAME::getIconPixmap( "aam_active" ) );
|
||||
amod_amButton -> setInactiveGraphic( PLUGIN_NAME::getIconPixmap( "aam_inactive" ) );
|
||||
toolTip::add( amod_amButton, tr( "Modulate amplitude of A1 with output of A2" ) );
|
||||
ToolTip::add( amod_amButton, tr( "Modulate amplitude of A1 with output of A2" ) );
|
||||
|
||||
pixmapButton * amod_rmButton = new pixmapButton( this, NULL );
|
||||
PixmapButton * amod_rmButton = new PixmapButton( this, NULL );
|
||||
amod_rmButton -> move( 4, 82 );
|
||||
amod_rmButton -> setActiveGraphic( PLUGIN_NAME::getIconPixmap( "arm_active" ) );
|
||||
amod_rmButton -> setInactiveGraphic( PLUGIN_NAME::getIconPixmap( "arm_inactive" ) );
|
||||
toolTip::add( amod_rmButton, tr( "Ring-modulate A1 and A2" ) );
|
||||
ToolTip::add( amod_rmButton, tr( "Ring-modulate A1 and A2" ) );
|
||||
|
||||
pixmapButton * amod_pmButton = new pixmapButton( this, NULL );
|
||||
PixmapButton * amod_pmButton = new PixmapButton( this, NULL );
|
||||
amod_pmButton -> move( 4, 98 );
|
||||
amod_pmButton -> setActiveGraphic( PLUGIN_NAME::getIconPixmap( "apm_active" ) );
|
||||
amod_pmButton -> setInactiveGraphic( PLUGIN_NAME::getIconPixmap( "apm_inactive" ) );
|
||||
toolTip::add( amod_pmButton, tr( "Modulate phase of A1 with output of A2" ) );
|
||||
ToolTip::add( amod_pmButton, tr( "Modulate phase of A1 with output of A2" ) );
|
||||
|
||||
m_aModGroup = new automatableButtonGroup( this );
|
||||
m_aModGroup -> addButton( amod_mixButton );
|
||||
@@ -783,29 +783,29 @@ WatsynView::WatsynView( Instrument * _instrument,
|
||||
m_aModGroup -> addButton( amod_pmButton );
|
||||
|
||||
// B-modulation button group
|
||||
pixmapButton * bmod_mixButton = new pixmapButton( this, NULL );
|
||||
PixmapButton * bmod_mixButton = new PixmapButton( this, NULL );
|
||||
bmod_mixButton -> move( 44, 50 );
|
||||
bmod_mixButton -> setActiveGraphic( PLUGIN_NAME::getIconPixmap( "bmix_active" ) );
|
||||
bmod_mixButton -> setInactiveGraphic( PLUGIN_NAME::getIconPixmap( "bmix_inactive" ) );
|
||||
toolTip::add( bmod_mixButton, tr( "Mix output of B2 to B1" ) );
|
||||
ToolTip::add( bmod_mixButton, tr( "Mix output of B2 to B1" ) );
|
||||
|
||||
pixmapButton * bmod_amButton = new pixmapButton( this, NULL );
|
||||
PixmapButton * bmod_amButton = new PixmapButton( this, NULL );
|
||||
bmod_amButton -> move( 44, 66 );
|
||||
bmod_amButton -> setActiveGraphic( PLUGIN_NAME::getIconPixmap( "bam_active" ) );
|
||||
bmod_amButton -> setInactiveGraphic( PLUGIN_NAME::getIconPixmap( "bam_inactive" ) );
|
||||
toolTip::add( bmod_amButton, tr( "Modulate amplitude of B1 with output of B2" ) );
|
||||
ToolTip::add( bmod_amButton, tr( "Modulate amplitude of B1 with output of B2" ) );
|
||||
|
||||
pixmapButton * bmod_rmButton = new pixmapButton( this, NULL );
|
||||
PixmapButton * bmod_rmButton = new PixmapButton( this, NULL );
|
||||
bmod_rmButton -> move( 44, 82 );
|
||||
bmod_rmButton -> setActiveGraphic( PLUGIN_NAME::getIconPixmap( "brm_active" ) );
|
||||
bmod_rmButton -> setInactiveGraphic( PLUGIN_NAME::getIconPixmap( "brm_inactive" ) );
|
||||
toolTip::add( bmod_rmButton, tr( "Ring-modulate B1 and B2" ) );
|
||||
ToolTip::add( bmod_rmButton, tr( "Ring-modulate B1 and B2" ) );
|
||||
|
||||
pixmapButton * bmod_pmButton = new pixmapButton( this, NULL );
|
||||
PixmapButton * bmod_pmButton = new PixmapButton( this, NULL );
|
||||
bmod_pmButton -> move( 44, 98 );
|
||||
bmod_pmButton -> setActiveGraphic( PLUGIN_NAME::getIconPixmap( "bpm_active" ) );
|
||||
bmod_pmButton -> setInactiveGraphic( PLUGIN_NAME::getIconPixmap( "bpm_inactive" ) );
|
||||
toolTip::add( bmod_pmButton, tr( "Modulate phase of B1 with output of B2" ) );
|
||||
ToolTip::add( bmod_pmButton, tr( "Modulate phase of B1 with output of B2" ) );
|
||||
|
||||
m_bModGroup = new automatableButtonGroup( this );
|
||||
m_bModGroup -> addButton( bmod_mixButton );
|
||||
@@ -818,103 +818,103 @@ WatsynView::WatsynView( Instrument * _instrument,
|
||||
pal = QPalette();
|
||||
pal.setBrush( backgroundRole(), PLUGIN_NAME::getIconPixmap("wavegraph") );
|
||||
// a1 graph
|
||||
a1_graph = new graph( this, graph::LinearStyle, 224, 105 );
|
||||
a1_graph = new Graph( this, Graph::LinearStyle, 224, 105 );
|
||||
a1_graph->move( 4, 141 );
|
||||
a1_graph->setAutoFillBackground( true );
|
||||
a1_graph->setGraphColor( QColor( 0x43, 0xb2, 0xff ) );
|
||||
toolTip::add( a1_graph, tr ( "Draw your own waveform here by dragging your mouse on this graph." ) );
|
||||
ToolTip::add( a1_graph, tr ( "Draw your own waveform here by dragging your mouse on this graph." ) );
|
||||
a1_graph->setPalette( pal );
|
||||
|
||||
// a2 graph
|
||||
a2_graph = new graph( this, graph::LinearStyle, 224, 105 );
|
||||
a2_graph = new Graph( this, Graph::LinearStyle, 224, 105 );
|
||||
a2_graph->move( 4, 141 );
|
||||
a2_graph->setAutoFillBackground( true );
|
||||
a2_graph->setGraphColor( QColor( 0x43, 0xb2, 0xff ) );
|
||||
toolTip::add( a2_graph, tr ( "Draw your own waveform here by dragging your mouse on this graph." ) );
|
||||
ToolTip::add( a2_graph, tr ( "Draw your own waveform here by dragging your mouse on this graph." ) );
|
||||
a2_graph->setPalette( pal );
|
||||
|
||||
// b1 graph
|
||||
b1_graph = new graph( this, graph::LinearStyle, 224, 105 );
|
||||
b1_graph = new Graph( this, Graph::LinearStyle, 224, 105 );
|
||||
b1_graph->move( 4, 141 );
|
||||
b1_graph->setAutoFillBackground( true );
|
||||
b1_graph->setGraphColor( QColor( 0xfc, 0x54, 0x31 ) );
|
||||
toolTip::add( b1_graph, tr ( "Draw your own waveform here by dragging your mouse on this graph." ) );
|
||||
ToolTip::add( b1_graph, tr ( "Draw your own waveform here by dragging your mouse on this graph." ) );
|
||||
b1_graph->setPalette( pal );
|
||||
|
||||
// b2 graph
|
||||
b2_graph = new graph( this, graph::LinearStyle, 224, 105 );
|
||||
b2_graph = new Graph( this, Graph::LinearStyle, 224, 105 );
|
||||
b2_graph->move( 4, 141 );
|
||||
b2_graph->setAutoFillBackground( true );
|
||||
b2_graph->setGraphColor( QColor( 0xfc, 0x54, 0x31 ) );
|
||||
toolTip::add( b2_graph, tr ( "Draw your own waveform here by dragging your mouse on this graph." ) );
|
||||
ToolTip::add( b2_graph, tr ( "Draw your own waveform here by dragging your mouse on this graph." ) );
|
||||
b2_graph->setPalette( pal );
|
||||
|
||||
|
||||
// misc pushbuttons
|
||||
// waveform modifications
|
||||
|
||||
m_loadButton = new pixmapButton( this, tr( "Load waveform" ) );
|
||||
m_loadButton = new PixmapButton( this, tr( "Load waveform" ) );
|
||||
m_loadButton -> move ( 173, 121 );
|
||||
m_loadButton -> setActiveGraphic( PLUGIN_NAME::getIconPixmap( "load_active" ) );
|
||||
m_loadButton -> setInactiveGraphic( PLUGIN_NAME::getIconPixmap( "load_inactive" ) );
|
||||
toolTip::add( m_loadButton, tr( "Click to load a waveform from a sample file" ) );
|
||||
ToolTip::add( m_loadButton, tr( "Click to load a waveform from a sample file" ) );
|
||||
|
||||
m_phaseLeftButton = new pixmapButton( this, tr( "Phase left" ) );
|
||||
m_phaseLeftButton = new PixmapButton( this, tr( "Phase left" ) );
|
||||
m_phaseLeftButton -> move ( 193, 121 );
|
||||
m_phaseLeftButton -> setActiveGraphic( PLUGIN_NAME::getIconPixmap( "phl_active" ) );
|
||||
m_phaseLeftButton -> setInactiveGraphic( PLUGIN_NAME::getIconPixmap( "phl_inactive" ) );
|
||||
toolTip::add( m_phaseLeftButton, tr( "Click to shift phase by -15 degrees" ) );
|
||||
ToolTip::add( m_phaseLeftButton, tr( "Click to shift phase by -15 degrees" ) );
|
||||
|
||||
m_phaseRightButton = new pixmapButton( this, tr( "Phase right" ) );
|
||||
m_phaseRightButton = new PixmapButton( this, tr( "Phase right" ) );
|
||||
m_phaseRightButton -> move ( 210, 121 );
|
||||
m_phaseRightButton -> setActiveGraphic( PLUGIN_NAME::getIconPixmap( "phr_active" ) );
|
||||
m_phaseRightButton -> setInactiveGraphic( PLUGIN_NAME::getIconPixmap( "phr_inactive" ) );
|
||||
toolTip::add( m_phaseRightButton, tr( "Click to shift phase by +15 degrees" ) );
|
||||
ToolTip::add( m_phaseRightButton, tr( "Click to shift phase by +15 degrees" ) );
|
||||
|
||||
m_normalizeButton = new pixmapButton( this, tr( "Normalize" ) );
|
||||
m_normalizeButton = new PixmapButton( this, tr( "Normalize" ) );
|
||||
m_normalizeButton -> move ( 230, 121 );
|
||||
m_normalizeButton -> setActiveGraphic( PLUGIN_NAME::getIconPixmap( "norm_active" ) );
|
||||
m_normalizeButton -> setInactiveGraphic( PLUGIN_NAME::getIconPixmap( "norm_inactive" ) );
|
||||
toolTip::add( m_normalizeButton, tr( "Click to normalize" ) );
|
||||
ToolTip::add( m_normalizeButton, tr( "Click to normalize" ) );
|
||||
|
||||
|
||||
m_invertButton = new pixmapButton( this, tr( "Invert" ) );
|
||||
m_invertButton = new PixmapButton( this, tr( "Invert" ) );
|
||||
m_invertButton -> move ( 230, 138 );
|
||||
m_invertButton -> setActiveGraphic( PLUGIN_NAME::getIconPixmap( "inv_active" ) );
|
||||
m_invertButton -> setInactiveGraphic( PLUGIN_NAME::getIconPixmap( "inv_inactive" ) );
|
||||
toolTip::add( m_invertButton, tr( "Click to invert" ) );
|
||||
ToolTip::add( m_invertButton, tr( "Click to invert" ) );
|
||||
|
||||
m_smoothButton = new pixmapButton( this, tr( "Smooth" ) );
|
||||
m_smoothButton = new PixmapButton( this, tr( "Smooth" ) );
|
||||
m_smoothButton -> move ( 230, 155 );
|
||||
m_smoothButton -> setActiveGraphic( PLUGIN_NAME::getIconPixmap( "smooth_active" ) );
|
||||
m_smoothButton -> setInactiveGraphic( PLUGIN_NAME::getIconPixmap( "smooth_inactive" ) );
|
||||
toolTip::add( m_smoothButton, tr( "Click to smooth" ) );
|
||||
ToolTip::add( m_smoothButton, tr( "Click to smooth" ) );
|
||||
|
||||
// waveforms
|
||||
|
||||
m_sinWaveButton = new pixmapButton( this, tr( "Sine wave" ) );
|
||||
m_sinWaveButton = new PixmapButton( this, tr( "Sine wave" ) );
|
||||
m_sinWaveButton -> move ( 230, 176 );
|
||||
m_sinWaveButton -> setActiveGraphic( PLUGIN_NAME::getIconPixmap( "sin_active" ) );
|
||||
m_sinWaveButton -> setInactiveGraphic( PLUGIN_NAME::getIconPixmap( "sin_inactive" ) );
|
||||
toolTip::add( m_sinWaveButton, tr( "Click for sine wave" ) );
|
||||
ToolTip::add( m_sinWaveButton, tr( "Click for sine wave" ) );
|
||||
|
||||
m_triWaveButton = new pixmapButton( this, tr( "Triangle wave" ) );
|
||||
m_triWaveButton = new PixmapButton( this, tr( "Triangle wave" ) );
|
||||
m_triWaveButton -> move ( 230, 194 );
|
||||
m_triWaveButton -> setActiveGraphic( PLUGIN_NAME::getIconPixmap( "tri_active" ) );
|
||||
m_triWaveButton -> setInactiveGraphic( PLUGIN_NAME::getIconPixmap( "tri_inactive" ) );
|
||||
toolTip::add( m_triWaveButton, tr( "Click for triangle wave" ) );
|
||||
ToolTip::add( m_triWaveButton, tr( "Click for triangle wave" ) );
|
||||
|
||||
m_sawWaveButton = new pixmapButton( this, tr( "Triangle wave" ) );
|
||||
m_sawWaveButton = new PixmapButton( this, tr( "Triangle wave" ) );
|
||||
m_sawWaveButton -> move ( 230, 212 );
|
||||
m_sawWaveButton -> setActiveGraphic( PLUGIN_NAME::getIconPixmap( "saw_active" ) );
|
||||
m_sawWaveButton -> setInactiveGraphic( PLUGIN_NAME::getIconPixmap( "saw_inactive" ) );
|
||||
toolTip::add( m_sawWaveButton, tr( "Click for saw wave" ) );
|
||||
ToolTip::add( m_sawWaveButton, tr( "Click for saw wave" ) );
|
||||
|
||||
m_sqrWaveButton = new pixmapButton( this, tr( "Square wave" ) );
|
||||
m_sqrWaveButton = new PixmapButton( this, tr( "Square wave" ) );
|
||||
m_sqrWaveButton -> move ( 230, 230 );
|
||||
m_sqrWaveButton -> setActiveGraphic( PLUGIN_NAME::getIconPixmap( "sqr_active" ) );
|
||||
m_sqrWaveButton -> setInactiveGraphic( PLUGIN_NAME::getIconPixmap( "sqr_inactive" ) );
|
||||
toolTip::add( m_sqrWaveButton, tr( "Click for square wave" ) );
|
||||
ToolTip::add( m_sqrWaveButton, tr( "Click for square wave" ) );
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -28,18 +28,18 @@
|
||||
|
||||
#include "Instrument.h"
|
||||
#include "InstrumentView.h"
|
||||
#include "graph.h"
|
||||
#include "Graph.h"
|
||||
#include "AutomatableModel.h"
|
||||
#include "AutomatableButton.h"
|
||||
#include "TempoSyncKnob.h"
|
||||
#include "NotePlayHandle.h"
|
||||
#include "pixmap_button.h"
|
||||
#include "PixmapButton.h"
|
||||
#include <samplerate.h>
|
||||
#include "MemoryManager.h"
|
||||
|
||||
|
||||
#define makeknob( name, x, y, hint, unit, oname ) \
|
||||
name = new knob( knobStyled, this ); \
|
||||
name = new Knob( knobStyled, this ); \
|
||||
name ->move( x, y ); \
|
||||
name ->setHintText( tr( hint ) + " ", unit ); \
|
||||
name ->setObjectName( oname ); \
|
||||
@@ -320,60 +320,60 @@ private:
|
||||
virtual void modelChanged();
|
||||
|
||||
// knobs
|
||||
knob * a1_volKnob;
|
||||
knob * a2_volKnob;
|
||||
knob * b1_volKnob;
|
||||
knob * b2_volKnob;
|
||||
Knob * a1_volKnob;
|
||||
Knob * a2_volKnob;
|
||||
Knob * b1_volKnob;
|
||||
Knob * b2_volKnob;
|
||||
|
||||
knob * a1_panKnob;
|
||||
knob * a2_panKnob;
|
||||
knob * b1_panKnob;
|
||||
knob * b2_panKnob;
|
||||
Knob * a1_panKnob;
|
||||
Knob * a2_panKnob;
|
||||
Knob * b1_panKnob;
|
||||
Knob * b2_panKnob;
|
||||
|
||||
knob * a1_multKnob;
|
||||
knob * a2_multKnob;
|
||||
knob * b1_multKnob;
|
||||
knob * b2_multKnob;
|
||||
Knob * a1_multKnob;
|
||||
Knob * a2_multKnob;
|
||||
Knob * b1_multKnob;
|
||||
Knob * b2_multKnob;
|
||||
|
||||
knob * a1_ltuneKnob;
|
||||
knob * a2_ltuneKnob;
|
||||
knob * b1_ltuneKnob;
|
||||
knob * b2_ltuneKnob;
|
||||
Knob * a1_ltuneKnob;
|
||||
Knob * a2_ltuneKnob;
|
||||
Knob * b1_ltuneKnob;
|
||||
Knob * b2_ltuneKnob;
|
||||
|
||||
knob * a1_rtuneKnob;
|
||||
knob * a2_rtuneKnob;
|
||||
knob * b1_rtuneKnob;
|
||||
knob * b2_rtuneKnob;
|
||||
Knob * a1_rtuneKnob;
|
||||
Knob * a2_rtuneKnob;
|
||||
Knob * b1_rtuneKnob;
|
||||
Knob * b2_rtuneKnob;
|
||||
|
||||
knob * m_abmixKnob;
|
||||
Knob * m_abmixKnob;
|
||||
|
||||
knob * m_envAmtKnob;
|
||||
Knob * m_envAmtKnob;
|
||||
|
||||
TempoSyncKnob * m_envAttKnob;
|
||||
TempoSyncKnob * m_envHoldKnob;
|
||||
TempoSyncKnob * m_envDecKnob;
|
||||
|
||||
knob * m_xtalkKnob;
|
||||
Knob * m_xtalkKnob;
|
||||
|
||||
automatableButtonGroup * m_selectedGraphGroup;
|
||||
automatableButtonGroup * m_aModGroup;
|
||||
automatableButtonGroup * m_bModGroup;
|
||||
|
||||
graph * a1_graph;
|
||||
graph * a2_graph;
|
||||
graph * b1_graph;
|
||||
graph * b2_graph;
|
||||
Graph * a1_graph;
|
||||
Graph * a2_graph;
|
||||
Graph * b1_graph;
|
||||
Graph * b2_graph;
|
||||
|
||||
pixmapButton * m_sinWaveButton;
|
||||
pixmapButton * m_triWaveButton;
|
||||
pixmapButton * m_sawWaveButton;
|
||||
pixmapButton * m_sqrWaveButton;
|
||||
pixmapButton * m_normalizeButton;
|
||||
pixmapButton * m_invertButton;
|
||||
pixmapButton * m_smoothButton;
|
||||
pixmapButton * m_phaseLeftButton;
|
||||
pixmapButton * m_phaseRightButton;
|
||||
pixmapButton * m_loadButton;
|
||||
PixmapButton * m_sinWaveButton;
|
||||
PixmapButton * m_triWaveButton;
|
||||
PixmapButton * m_sawWaveButton;
|
||||
PixmapButton * m_sqrWaveButton;
|
||||
PixmapButton * m_normalizeButton;
|
||||
PixmapButton * m_invertButton;
|
||||
PixmapButton * m_smoothButton;
|
||||
PixmapButton * m_phaseLeftButton;
|
||||
PixmapButton * m_phaseRightButton;
|
||||
PixmapButton * m_loadButton;
|
||||
|
||||
};
|
||||
|
||||
|
||||
@@ -29,10 +29,10 @@
|
||||
#include "waveshaper_control_dialog.h"
|
||||
#include "waveshaper_controls.h"
|
||||
#include "embed.h"
|
||||
#include "graph.h"
|
||||
#include "pixmap_button.h"
|
||||
#include "tooltip.h"
|
||||
#include "led_checkbox.h"
|
||||
#include "Graph.h"
|
||||
#include "PixmapButton.h"
|
||||
#include "ToolTip.h"
|
||||
#include "LedCheckbox.h"
|
||||
|
||||
|
||||
waveShaperControlDialog::waveShaperControlDialog(
|
||||
@@ -46,7 +46,7 @@ waveShaperControlDialog::waveShaperControlDialog(
|
||||
setPalette( pal );
|
||||
setFixedSize( 224, 300 );
|
||||
|
||||
graph * waveGraph = new graph( this, graph::LinearNonCyclicStyle, 204, 205 );
|
||||
Graph * waveGraph = new Graph( this, Graph::LinearNonCyclicStyle, 204, 205 );
|
||||
waveGraph -> move( 10, 32 );
|
||||
waveGraph -> setModel( &_controls -> m_wavegraphModel );
|
||||
waveGraph -> setAutoFillBackground( true );
|
||||
@@ -57,7 +57,7 @@ waveShaperControlDialog::waveShaperControlDialog(
|
||||
waveGraph->setGraphColor( QColor( 170, 255, 255 ) );
|
||||
waveGraph -> setMaximumSize( 204, 205 );
|
||||
|
||||
knob * inputKnob = new knob( knobBright_26, this);
|
||||
Knob * inputKnob = new Knob( knobBright_26, this);
|
||||
inputKnob -> setVolumeKnob( true );
|
||||
inputKnob -> setVolumeRatio( 1.0 );
|
||||
inputKnob -> move( 14, 251 );
|
||||
@@ -65,7 +65,7 @@ waveShaperControlDialog::waveShaperControlDialog(
|
||||
inputKnob->setLabel( tr( "INPUT" ) );
|
||||
inputKnob->setHintText( tr( "Input gain:" ) + " ", "" );
|
||||
|
||||
knob * outputKnob = new knob( knobBright_26, this );
|
||||
Knob * outputKnob = new Knob( knobBright_26, this );
|
||||
outputKnob -> setVolumeKnob( true );
|
||||
outputKnob -> setVolumeRatio( 1.0 );
|
||||
outputKnob -> move( 54, 251 );
|
||||
@@ -73,39 +73,39 @@ waveShaperControlDialog::waveShaperControlDialog(
|
||||
outputKnob->setLabel( tr( "OUTPUT" ) );
|
||||
outputKnob->setHintText( tr( "Output gain:" ) + " ", "" );
|
||||
|
||||
pixmapButton * resetButton = new pixmapButton( this, tr("Reset waveform") );
|
||||
PixmapButton * resetButton = new PixmapButton( this, tr("Reset waveform") );
|
||||
resetButton -> move( 164, 251 );
|
||||
resetButton -> resize( 12, 48 );
|
||||
resetButton -> setActiveGraphic( PLUGIN_NAME::getIconPixmap( "reset_active" ) );
|
||||
resetButton -> setInactiveGraphic( PLUGIN_NAME::getIconPixmap( "reset_inactive" ) );
|
||||
toolTip::add( resetButton, tr( "Click here to reset the wavegraph back to default" ) );
|
||||
ToolTip::add( resetButton, tr( "Click here to reset the wavegraph back to default" ) );
|
||||
|
||||
pixmapButton * smoothButton = new pixmapButton( this, tr("Smooth waveform") );
|
||||
PixmapButton * smoothButton = new PixmapButton( this, tr("Smooth waveform") );
|
||||
smoothButton -> move( 164, 267 );
|
||||
smoothButton -> resize( 12, 48 );
|
||||
smoothButton -> setActiveGraphic( PLUGIN_NAME::getIconPixmap( "smooth_active" ) );
|
||||
smoothButton -> setInactiveGraphic( PLUGIN_NAME::getIconPixmap( "smooth_inactive" ) );
|
||||
toolTip::add( smoothButton, tr( "Click here to apply smoothing to wavegraph" ) );
|
||||
ToolTip::add( smoothButton, tr( "Click here to apply smoothing to wavegraph" ) );
|
||||
|
||||
pixmapButton * addOneButton = new pixmapButton( this, tr("Increase graph amplitude by 1dB") );
|
||||
PixmapButton * addOneButton = new PixmapButton( this, tr("Increase graph amplitude by 1dB") );
|
||||
addOneButton -> move( 133, 251 );
|
||||
addOneButton -> resize( 12, 29 );
|
||||
addOneButton -> setActiveGraphic( PLUGIN_NAME::getIconPixmap( "add1_active" ) );
|
||||
addOneButton -> setInactiveGraphic( PLUGIN_NAME::getIconPixmap( "add1_inactive" ) );
|
||||
toolTip::add( addOneButton, tr( "Click here to increase wavegraph amplitude by 1dB" ) );
|
||||
ToolTip::add( addOneButton, tr( "Click here to increase wavegraph amplitude by 1dB" ) );
|
||||
|
||||
pixmapButton * subOneButton = new pixmapButton( this, tr("Decrease graph amplitude by 1dB") );
|
||||
PixmapButton * subOneButton = new PixmapButton( this, tr("Decrease graph amplitude by 1dB") );
|
||||
subOneButton -> move( 133, 267 );
|
||||
subOneButton -> resize( 12, 29 );
|
||||
subOneButton -> setActiveGraphic( PLUGIN_NAME::getIconPixmap( "sub1_active" ) );
|
||||
subOneButton -> setInactiveGraphic( PLUGIN_NAME::getIconPixmap( "sub1_inactive" ) );
|
||||
toolTip::add( subOneButton, tr( "Click here to decrease wavegraph amplitude by 1dB" ) );
|
||||
ToolTip::add( subOneButton, tr( "Click here to decrease wavegraph amplitude by 1dB" ) );
|
||||
|
||||
ledCheckBox * clipInputToggle = new ledCheckBox( "Clip input", this,
|
||||
tr( "Clip input" ), ledCheckBox::Green );
|
||||
LedCheckBox * clipInputToggle = new LedCheckBox( "Clip input", this,
|
||||
tr( "Clip input" ), LedCheckBox::Green );
|
||||
clipInputToggle -> move( 133, 283 );
|
||||
clipInputToggle -> setModel( &_controls -> m_clipModel );
|
||||
toolTip::add( clipInputToggle, tr( "Clip input signal to 0dB" ) );
|
||||
ToolTip::add( clipInputToggle, tr( "Clip input signal to 0dB" ) );
|
||||
|
||||
connect( resetButton, SIGNAL (clicked () ),
|
||||
_controls, SLOT ( resetClicked() ) );
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
#include "waveshaper_controls.h"
|
||||
#include "waveshaper.h"
|
||||
#include "base64.h"
|
||||
#include "graph.h"
|
||||
#include "Graph.h"
|
||||
#include "Engine.h"
|
||||
#include "Song.h"
|
||||
|
||||
|
||||
@@ -28,8 +28,8 @@
|
||||
|
||||
#include "EffectControls.h"
|
||||
#include "waveshaper_control_dialog.h"
|
||||
#include "knob.h"
|
||||
#include "graph.h"
|
||||
#include "Knob.h"
|
||||
#include "Graph.h"
|
||||
|
||||
class waveShaperEffect;
|
||||
|
||||
|
||||
@@ -33,8 +33,8 @@
|
||||
|
||||
#include "ZynAddSubFx.h"
|
||||
#include "Engine.h"
|
||||
#include "knob.h"
|
||||
#include "led_checkbox.h"
|
||||
#include "Knob.h"
|
||||
#include "LedCheckbox.h"
|
||||
#include "DataFile.h"
|
||||
#include "InstrumentPlayHandle.h"
|
||||
#include "InstrumentTrack.h"
|
||||
@@ -497,35 +497,35 @@ ZynAddSubFxView::ZynAddSubFxView( Instrument * _instrument, QWidget * _parent )
|
||||
l->setVerticalSpacing( 16 );
|
||||
l->setHorizontalSpacing( 10 );
|
||||
|
||||
m_portamento = new knob( knobBright_26, this );
|
||||
m_portamento = new Knob( knobBright_26, this );
|
||||
m_portamento->setHintText( tr( "Portamento:" ) + "", "" );
|
||||
m_portamento->setLabel( tr( "PORT" ) );
|
||||
|
||||
m_filterFreq = new knob( knobBright_26, this );
|
||||
m_filterFreq = new Knob( knobBright_26, this );
|
||||
m_filterFreq->setHintText( tr( "Filter Frequency:" ) + "", "" );
|
||||
m_filterFreq->setLabel( tr( "FREQ" ) );
|
||||
|
||||
m_filterQ = new knob( knobBright_26, this );
|
||||
m_filterQ = new Knob( knobBright_26, this );
|
||||
m_filterQ->setHintText( tr( "Filter Resonance:" ) + "", "" );
|
||||
m_filterQ->setLabel( tr( "RES" ) );
|
||||
|
||||
m_bandwidth = new knob( knobBright_26, this );
|
||||
m_bandwidth = new Knob( knobBright_26, this );
|
||||
m_bandwidth->setHintText( tr( "Bandwidth:" ) + "", "" );
|
||||
m_bandwidth->setLabel( tr( "BW" ) );
|
||||
|
||||
m_fmGain = new knob( knobBright_26, this );
|
||||
m_fmGain = new Knob( knobBright_26, this );
|
||||
m_fmGain->setHintText( tr( "FM Gain:" ) + "", "" );
|
||||
m_fmGain->setLabel( tr( "FM GAIN" ) );
|
||||
|
||||
m_resCenterFreq = new knob( knobBright_26, this );
|
||||
m_resCenterFreq = new Knob( knobBright_26, this );
|
||||
m_resCenterFreq->setHintText( tr( "Resonance center frequency:" ) + "", "" );
|
||||
m_resCenterFreq->setLabel( tr( "RES CF" ) );
|
||||
|
||||
m_resBandwidth = new knob( knobBright_26, this );
|
||||
m_resBandwidth = new Knob( knobBright_26, this );
|
||||
m_resBandwidth->setHintText( tr( "Resonance bandwidth:" ) + "", "" );
|
||||
m_resBandwidth->setLabel( tr( "RES BW" ) );
|
||||
|
||||
m_forwardMidiCC = new ledCheckBox( tr( "Forward MIDI Control Changes" ), this );
|
||||
m_forwardMidiCC = new LedCheckBox( tr( "Forward MIDI Control Changes" ), this );
|
||||
|
||||
m_toggleUIButton = new QPushButton( tr( "Show GUI" ), this );
|
||||
m_toggleUIButton->setCheckable( true );
|
||||
|
||||
@@ -40,8 +40,8 @@ class QPushButton;
|
||||
class LocalZynAddSubFx;
|
||||
class ZynAddSubFxView;
|
||||
class NotePlayHandle;
|
||||
class knob;
|
||||
class ledCheckBox;
|
||||
class Knob;
|
||||
class LedCheckBox;
|
||||
|
||||
|
||||
class ZynAddSubFxRemotePlugin : public QObject, public RemotePlugin
|
||||
@@ -149,14 +149,14 @@ private:
|
||||
void modelChanged();
|
||||
|
||||
QPushButton * m_toggleUIButton;
|
||||
knob * m_portamento;
|
||||
knob * m_filterFreq;
|
||||
knob * m_filterQ;
|
||||
knob * m_bandwidth;
|
||||
knob * m_fmGain;
|
||||
knob * m_resCenterFreq;
|
||||
knob * m_resBandwidth;
|
||||
ledCheckBox * m_forwardMidiCC;
|
||||
Knob * m_portamento;
|
||||
Knob * m_filterFreq;
|
||||
Knob * m_filterQ;
|
||||
Knob * m_bandwidth;
|
||||
Knob * m_fmGain;
|
||||
Knob * m_resCenterFreq;
|
||||
Knob * m_resBandwidth;
|
||||
LedCheckBox * m_forwardMidiCC;
|
||||
|
||||
|
||||
private slots:
|
||||
|
||||
Reference in New Issue
Block a user