LMMS
Loading...
Searching...
No Matches
OpulenZ.cpp File Reference
#include "OpulenZ.h"
#include "Instrument.h"
#include "AudioEngine.h"
#include "Engine.h"
#include "InstrumentPlayHandle.h"
#include "InstrumentTrack.h"
#include <QFile>
#include <QFileInfo>
#include <QByteArray>
#include <QDomElement>
#include <cassert>
#include <cmath>
#include <opl.h>
#include <temuopl.h>
#include <mididata.h>
#include "embed.h"
#include "Knob.h"
#include "PixmapButton.h"
#include "plugin_export.h"

Namespaces

namespace  lmms
namespace  lmms::gui

Macros

#define MOD_CON(model)
#define KNOB_GEN(knobname, hinttext, hintunit, xpos, ypos)
#define BUTTON_GEN(buttname, tooltip, xpos, ypos)
#define WAVEBUTTON_GEN(buttname, tooltip, xpos, ypos, icon_on, icon_off, buttgroup)

Functions

PLUGIN_EXPORT Pluginlmms::lmms_plugin_main (Model *parent, void *data)

Variables

Plugin::Descriptor PLUGIN_EXPORT lmms::opulenz_plugin_descriptor
const auto lmms::adlib_opadd = std::array<unsigned int, OPL2_VOICES>{0x00, 0x01, 0x02, 0x08, 0x09, 0x0A, 0x10, 0x11, 0x12}

Macro Definition Documentation

◆ BUTTON_GEN

#define BUTTON_GEN ( buttname,
tooltip,
xpos,
ypos )
Value:
buttname = new PixmapButton( this, nullptr );\
buttname->setActiveGraphic( PLUGIN_NAME::getIconPixmap( "led_on" ) );\
buttname->setInactiveGraphic( PLUGIN_NAME::getIconPixmap( "led_off" ) );\
buttname->setCheckable( true );\
buttname->setToolTip(tr(tooltip));\
buttname->move( xpos, ypos );

◆ KNOB_GEN

#define KNOB_GEN ( knobname,
hinttext,
hintunit,
xpos,
ypos )
Value:
knobname = new Knob( KnobType::Styled, this );\
knobname->setHintText( tr(hinttext), hintunit );\
knobname->setFixedSize(22,22);\
knobname->setCenterPointX(11.0);\
knobname->setCenterPointY(11.0);\
knobname->setTotalAngle(270.0);\
knobname->move(xpos,ypos);

◆ MOD_CON

#define MOD_CON ( model)
Value:
connect( &model, SIGNAL( dataChanged() ), this, SLOT( updatePatch() ) );
#define SIGNAL
Definition tap_pinknoise.c:34

◆ WAVEBUTTON_GEN

#define WAVEBUTTON_GEN ( buttname,
tooltip,
xpos,
ypos,
icon_on,
icon_off,
buttgroup )
Value:
buttname = new PixmapButton( this, nullptr );\
buttname->setActiveGraphic( PLUGIN_NAME::getIconPixmap( icon_on ) ); \
buttname->setInactiveGraphic( PLUGIN_NAME::getIconPixmap( icon_off ) ); \
buttname->setToolTip(tr(tooltip));\
buttname->move( xpos, ypos );\
buttgroup->addButton(buttname);