LMMS
Loading...
Searching...
No Matches
Monstro.cpp File Reference
#include "Monstro.h"
#include "ComboBox.h"
#include "Engine.h"
#include "InstrumentTrack.h"
#include "lmms_math.h"
#include "interpolation.h"
#include "embed.h"
#include "plugin_export.h"

Namespaces

namespace  lmms
namespace  lmms::gui

Macros

#define modulatefreq(car, mod)
#define modulateabs(car, mod)
#define modulatephs(car, mod)
#define modulatevol(car, mod)

Functions

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

Variables

Plugin::Descriptor PLUGIN_EXPORT lmms::monstro_plugin_descriptor

Macro Definition Documentation

◆ modulateabs

#define modulateabs ( car,
mod )
Value:
if( mod##_e1 != 0.0f ) car += m_env[0][f] * mod##_e1; \
if( mod##_e2 != 0.0f ) car += m_env[1][f] * mod##_e2; \
if( mod##_l1 != 0.0f ) car += m_lfo[0][f] * mod##_l1; \
if( mod##_l2 != 0.0f ) car += m_lfo[1][f] * mod##_l2;
unsigned f
Definition inflate.c:1572

◆ modulatefreq

#define modulatefreq ( car,
mod )
Value:
modtmp = 0.0f; \
if( mod##_e1 != 0.0f ) modtmp += m_env[0][f] * mod##_e1; \
if( mod##_e2 != 0.0f ) modtmp += m_env[1][f] * mod##_e2; \
if( mod##_l1 != 0.0f ) modtmp += m_lfo[0][f] * mod##_l1; \
if( mod##_l2 != 0.0f ) modtmp += m_lfo[1][f] * mod##_l2; \
(car) = qBound( MIN_FREQ, (car) * std::exp2(modtmp), MAX_FREQ);

◆ modulatephs

#define modulatephs ( car,
mod )
Value:
if( mod##_e1 != 0.0f ) car += m_env[0][f] * mod##_e1; \
if( mod##_e2 != 0.0f ) car += m_env[1][f] * mod##_e2; \
if( mod##_l1 != 0.0f ) car += m_lfo[0][f] * mod##_l1; \
if( mod##_l2 != 0.0f ) car += m_lfo[1][f] * mod##_l2;

◆ modulatevol

#define modulatevol ( car,
mod )
Value:
if( mod##_e1 > 0.0f ) car *= ( 1.0f - mod##_e1 + mod##_e1 * m_env[0][f] ); \
if( mod##_e1 < 0.0f ) car *= ( 1.0f + mod##_e1 * m_env[0][f] ); \
if( mod##_e2 > 0.0f ) car *= ( 1.0f - mod##_e2 + mod##_e2 * m_env[1][f] ); \
if( mod##_e2 < 0.0f ) car *= ( 1.0f + mod##_e2 * m_env[1][f] ); \
if( mod##_l1 != 0.0f ) car *= ( 1.0f + mod##_l1 * m_lfo[0][f] ); \
if( mod##_l2 != 0.0f ) car *= ( 1.0f + mod##_l2 * m_lfo[1][f] ); \
car = qBound( -MODCLIP, car, MODCLIP );