Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/3Ch_Osc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ struct Osc_3Ch : Module

void onChange( const event::Change &e ) override
{
auto paramQuantity = getParamQuantity();
mymodule = (Osc_3Ch*)paramQuantity->module;

if( mymodule )
Expand All @@ -187,6 +188,7 @@ struct Osc_3Ch : Module

void onChange( const event::Change &e ) override
{
auto paramQuantity = getParamQuantity();
mymodule = (Osc_3Ch*)paramQuantity->module;

if( mymodule )
Expand All @@ -211,6 +213,7 @@ struct Osc_3Ch : Module

void onChange( const event::Change &e ) override
{
auto paramQuantity = getParamQuantity();
mymodule = (Osc_3Ch*)paramQuantity->module;

if( mymodule )
Expand Down Expand Up @@ -873,4 +876,4 @@ void Osc_3Ch::process(const ProcessArgs &args)
}
}

Model *modelOsc_3Ch = createModel<Osc_3Ch, Osc_3Ch_Widget>( "Osc_3Ch_Widget" );
Model *modelOsc_3Ch = createModel<Osc_3Ch, Osc_3Ch_Widget>( "Osc_3Ch_Widget" );
1 change: 1 addition & 0 deletions src/ASAF8.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ struct ASAF8 : Module

void onChange( const event::Change &e ) override
{
auto paramQuantity = getParamQuantity();
mymodule = (ASAF8*)paramQuantity->module;

sprintf( strVal, "[%.2fs]", paramQuantity->getValue() );
Expand Down
1 change: 1 addition & 0 deletions src/Alienz.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ struct Alienz : Module

MSCH_Widget_Knob1::onChange( e );

auto paramQuantity = getParamQuantity();
mymodule = (Alienz*)paramQuantity->module;

if( !mymodule )
Expand Down
1 change: 1 addition & 0 deletions src/Dronez.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ struct Dronez : Module

MSCH_Widget_Knob1::onChange( e );

auto paramQuantity = getParamQuantity();
mymodule = (Dronez*)paramQuantity->module;

if( !mymodule )
Expand Down
3 changes: 3 additions & 0 deletions src/MasterClockx4.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ struct MasterClockx4 : Module

MSCH_Widget_Knob1::onChange( e );

auto paramQuantity = getParamQuantity();
mymodule = (MasterClockx4*)paramQuantity->module;

if( !mymodule )
Expand All @@ -129,6 +130,7 @@ struct MasterClockx4 : Module

MSCH_Widget_Knob1::onChange( e );

auto paramQuantity = getParamQuantity();
mymodule = (MasterClockx4*)paramQuantity->module;

if( !mymodule )
Expand Down Expand Up @@ -157,6 +159,7 @@ struct MasterClockx4 : Module

MSCH_Widget_Knob1::onChange( e );

auto paramQuantity = getParamQuantity();
mymodule = (MasterClockx4*)paramQuantity->module;

if( !mymodule )
Expand Down
5 changes: 4 additions & 1 deletion src/Mixer_x_x_x.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@ struct Mixer_ : Module

void onChange( const event::Change &e ) override
{
auto paramQuantity = getParamQuantity();
mymodule = (Mixer_*)paramQuantity->module;

if( mymodule )
Expand All @@ -229,6 +230,7 @@ struct Mixer_ : Module

void onChange( const event::Change &e ) override
{
auto paramQuantity = getParamQuantity();
mymodule = (Mixer_*)paramQuantity->module;

if( mymodule )
Expand All @@ -251,6 +253,7 @@ struct Mixer_ : Module

void onChange( const event::Change &e ) override
{
auto paramQuantity = getParamQuantity();
mymodule = (Mixer_*)paramQuantity->module;

if( mymodule )
Expand Down Expand Up @@ -1238,4 +1241,4 @@ void Mixer_::process(const ProcessArgs &args)

outputs[ OUT_MAINL ].setVoltage( fMixOutL * m_StartupFade );
outputs[ OUT_MAINR ].setVoltage( fMixOutR * m_StartupFade );
}
}
1 change: 1 addition & 0 deletions src/OSC_WaveMorph_3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ struct OSC_WaveMorph_3 : Module

void onChange( const event::Change &e ) override
{
auto paramQuantity = getParamQuantity();
mymodule = (OSC_WaveMorph_3*)paramQuantity->module;

if( mymodule )
Expand Down
1 change: 1 addition & 0 deletions src/PingPong.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ struct MyCutoffKnob : Knob_Green1_40

void onChange( const event::Change &e ) override
{
auto paramQuantity = getParamQuantity();
mymodule = (PingPong*)paramQuantity->module;

if( mymodule )
Expand Down
1 change: 1 addition & 0 deletions src/SEQ_Envelope_8.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ struct SEQ_Envelope_8 : Module

void onChange( const event::Change &e ) override
{
auto paramQuantity = getParamQuantity();
mymodule = (SEQ_Envelope_8*)paramQuantity->module;

if( mymodule )
Expand Down
3 changes: 2 additions & 1 deletion src/StepDelay.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ struct MyDelayKnob : Knob_Yellow3_20_Snap

void onChange( const event::Change &e ) override
{
auto paramQuantity = getParamQuantity();
mymodule = (StepDelay*)paramQuantity->module;

if( mymodule )
Expand Down Expand Up @@ -513,4 +514,4 @@ void StepDelay::process(const ProcessArgs &args)
outputs[ OUT_AUDIOR ].setVoltage( ( outR * mix ) + ( inROrig * ( 1.0f - mix ) ) );
}

Model *modelStepDelay = createModel<StepDelay, StepDelay_Widget>( "StepDelay" );
Model *modelStepDelay = createModel<StepDelay, StepDelay_Widget>( "StepDelay" );
3 changes: 2 additions & 1 deletion src/SynthDrums.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ struct SynthDrums : Module

void onChange( const event::Change &e ) override
{
auto paramQuantity = getParamQuantity();
mymodule = (SynthDrums*)paramQuantity->module;

if( mymodule )
Expand Down Expand Up @@ -641,4 +642,4 @@ void SynthDrums::process(const ProcessArgs &args)
outputs[ OUTPUT_AUDIO + 2 ].setVoltage( GetAudio( 2 ) * AUDIO_MAX * clamp( (inputs[ IN_LEVEL + 2 ].getVoltage() / CV_MAX10), 0.0f, 1.0f ) );
}

Model *modelSynthDrums = createModel<SynthDrums, SynthDrums_Widget>( "SynthDrums" );
Model *modelSynthDrums = createModel<SynthDrums, SynthDrums_Widget>( "SynthDrums" );
1 change: 1 addition & 0 deletions src/Windz.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ struct Windz : Module

MSCH_Widget_Knob1::onChange( e );

auto paramQuantity = getParamQuantity();
mymodule = (Windz*)paramQuantity->module;

if( !mymodule )
Expand Down
4 changes: 2 additions & 2 deletions src/mscHack_Knob.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ struct MSCH_Widget_Knob1 : Knob
// Re-transform the widget::TransformWidget
float val;

if (paramQuantity)
if (auto paramQuantity = getParamQuantity())
{
val = paramQuantity->getValue();

Expand All @@ -87,4 +87,4 @@ struct MSCH_Widget_Knob1 : Knob
Knob::onChange(e);
}

};
};