@@ -3,116 +3,6 @@ | |||
using namespace rack; | |||
//////////////////// | |||
// knobs | |||
//////////////////// | |||
struct AudibleKnob : SpriteKnob { | |||
AudibleKnob() { | |||
minIndex = 44; | |||
maxIndex = -46; | |||
spriteCount = 120; | |||
} | |||
}; | |||
struct HugeGlowKnob : AudibleKnob { | |||
HugeGlowKnob() { | |||
box.size = Vec(91, 91); | |||
spriteOffset = Vec(-10, -9); | |||
spriteSize = Vec(110, 110); | |||
spriteImage = Image::load("plugins/AudibleInstruments/res/knob_huge_glow.png"); | |||
minIndex = 44+5; | |||
maxIndex = -46-5; | |||
} | |||
}; | |||
struct LargeKnob : AudibleKnob { | |||
LargeKnob() { | |||
box.size = Vec(52, 52); | |||
spriteOffset = Vec(-5, -4); | |||
spriteSize = Vec(65, 66); | |||
} | |||
}; | |||
struct LargeWhiteKnob : LargeKnob { | |||
LargeWhiteKnob() { | |||
spriteImage = Image::load("plugins/AudibleInstruments/res/knob_large_white.png"); | |||
} | |||
}; | |||
struct LargeRedKnob : LargeKnob { | |||
LargeRedKnob() { | |||
spriteImage = Image::load("plugins/AudibleInstruments/res/knob_large_red.png"); | |||
} | |||
}; | |||
struct LargeGreenKnob : LargeKnob { | |||
LargeGreenKnob() { | |||
spriteImage = Image::load("plugins/AudibleInstruments/res/knob_large_green.png"); | |||
} | |||
}; | |||
struct MediumKnob : AudibleKnob { | |||
MediumKnob() { | |||
box.size = Vec(44, 44); | |||
spriteOffset = Vec(-5, -4); | |||
spriteSize = Vec(57, 58); | |||
} | |||
}; | |||
struct MediumWhiteKnob : MediumKnob { | |||
MediumWhiteKnob() { | |||
spriteImage = Image::load("plugins/AudibleInstruments/res/knob_medium_white.png"); | |||
} | |||
}; | |||
struct MediumRedKnob : MediumKnob { | |||
MediumRedKnob() { | |||
spriteImage = Image::load("plugins/AudibleInstruments/res/knob_medium_red.png"); | |||
} | |||
}; | |||
struct MediumGreenKnob : MediumKnob { | |||
MediumGreenKnob() { | |||
spriteImage = Image::load("plugins/AudibleInstruments/res/knob_medium_green.png"); | |||
} | |||
}; | |||
struct SmallKnob : AudibleKnob { | |||
SmallKnob() { | |||
box.size = Vec(40, 40); | |||
spriteOffset = Vec(-5, -4); | |||
spriteSize = Vec(53, 54); | |||
} | |||
}; | |||
struct SmallWhiteKnob : SmallKnob { | |||
SmallWhiteKnob() { | |||
spriteImage = Image::load("plugins/AudibleInstruments/res/knob_small_white.png"); | |||
} | |||
}; | |||
struct SmallRedKnob : SmallKnob { | |||
SmallRedKnob() { | |||
spriteImage = Image::load("plugins/AudibleInstruments/res/knob_small_red.png"); | |||
} | |||
}; | |||
struct SmallGreenKnob : SmallKnob { | |||
SmallGreenKnob() { | |||
spriteImage = Image::load("plugins/AudibleInstruments/res/knob_small_green.png"); | |||
} | |||
}; | |||
struct TinyBlackKnob : AudibleKnob { | |||
TinyBlackKnob() { | |||
box.size = Vec(18, 18); | |||
spriteOffset = Vec(-5, -3); | |||
spriteSize = Vec(31, 30); | |||
spriteImage = Image::load("plugins/AudibleInstruments/res/knob_tiny_black.png"); | |||
} | |||
}; | |||
//////////////////// | |||
// switches | |||
//////////////////// | |||
@@ -169,11 +59,11 @@ struct TripleModeLight : ValueLight { | |||
void step() { | |||
float v = roundf(getf(value)); | |||
if (v == 0.0) | |||
color = SCHEME_CYAN; | |||
color = colors[COLOR_CYAN]; | |||
else if (v == 1.0) | |||
color = SCHEME_ORANGE; | |||
color = colors[COLOR_ORANGE]; | |||
else | |||
color = SCHEME_RED; | |||
color = colors[COLOR_RED]; | |||
} | |||
}; | |||
@@ -101,30 +101,30 @@ BlindsWidget::BlindsWidget() { | |||
addChild(createScrew<SilverScrew>(Vec(15, 365))); | |||
addChild(createScrew<SilverScrew>(Vec(150, 365))); | |||
addParam(createParam<SmallWhiteKnob>(Vec(8, 52), module, Blinds::GAIN1_PARAM, -1.0, 1.0, 0.0)); | |||
addParam(createParam<SmallWhiteKnob>(Vec(8, 131), module, Blinds::GAIN2_PARAM, -1.0, 1.0, 0.0)); | |||
addParam(createParam<SmallWhiteKnob>(Vec(8, 210), module, Blinds::GAIN3_PARAM, -1.0, 1.0, 0.0)); | |||
addParam(createParam<SmallWhiteKnob>(Vec(8, 288), module, Blinds::GAIN4_PARAM, -1.0, 1.0, 0.0)); | |||
addParam(createParam<TinyBlackKnob>(Vec(72, 63), module, Blinds::MOD1_PARAM, -1.0, 1.0, 0.0)); | |||
addParam(createParam<TinyBlackKnob>(Vec(72, 142), module, Blinds::MOD2_PARAM, -1.0, 1.0, 0.0)); | |||
addParam(createParam<TinyBlackKnob>(Vec(72, 221), module, Blinds::MOD3_PARAM, -1.0, 1.0, 0.0)); | |||
addParam(createParam<TinyBlackKnob>(Vec(72, 300), module, Blinds::MOD4_PARAM, -1.0, 1.0, 0.0)); | |||
addInput(createInput<InputPortPJ3410>(Vec(107, 38), module, Blinds::IN1_INPUT)); | |||
addInput(createInput<InputPortPJ3410>(Vec(107, 117), module, Blinds::IN2_INPUT)); | |||
addInput(createInput<InputPortPJ3410>(Vec(107, 195), module, Blinds::IN3_INPUT)); | |||
addInput(createInput<InputPortPJ3410>(Vec(107, 274), module, Blinds::IN4_INPUT)); | |||
addInput(createInput<InputPortPJ3410>(Vec(107, 77), module, Blinds::CV1_INPUT)); | |||
addInput(createInput<InputPortPJ3410>(Vec(107, 156), module, Blinds::CV2_INPUT)); | |||
addInput(createInput<InputPortPJ3410>(Vec(107, 235), module, Blinds::CV3_INPUT)); | |||
addInput(createInput<InputPortPJ3410>(Vec(107, 313), module, Blinds::CV4_INPUT)); | |||
addOutput(createOutput<OutputPortPJ3410>(Vec(141, 38), module, Blinds::OUT1_OUTPUT)); | |||
addOutput(createOutput<OutputPortPJ3410>(Vec(141, 117), module, Blinds::OUT2_OUTPUT)); | |||
addOutput(createOutput<OutputPortPJ3410>(Vec(141, 195), module, Blinds::OUT3_OUTPUT)); | |||
addOutput(createOutput<OutputPortPJ3410>(Vec(141, 274), module, Blinds::OUT4_OUTPUT)); | |||
addParam(createParam<Rogan1PSWhite>(Vec(8, 52), module, Blinds::GAIN1_PARAM, -1.0, 1.0, 0.0)); | |||
addParam(createParam<Rogan1PSWhite>(Vec(8, 131), module, Blinds::GAIN2_PARAM, -1.0, 1.0, 0.0)); | |||
addParam(createParam<Rogan1PSWhite>(Vec(8, 210), module, Blinds::GAIN3_PARAM, -1.0, 1.0, 0.0)); | |||
addParam(createParam<Rogan1PSWhite>(Vec(8, 288), module, Blinds::GAIN4_PARAM, -1.0, 1.0, 0.0)); | |||
addParam(createParam<Trimpot>(Vec(72, 63), module, Blinds::MOD1_PARAM, -1.0, 1.0, 0.0)); | |||
addParam(createParam<Trimpot>(Vec(72, 142), module, Blinds::MOD2_PARAM, -1.0, 1.0, 0.0)); | |||
addParam(createParam<Trimpot>(Vec(72, 221), module, Blinds::MOD3_PARAM, -1.0, 1.0, 0.0)); | |||
addParam(createParam<Trimpot>(Vec(72, 300), module, Blinds::MOD4_PARAM, -1.0, 1.0, 0.0)); | |||
addInput(createInput<PJ3410Port>(Vec(107, 38), module, Blinds::IN1_INPUT)); | |||
addInput(createInput<PJ3410Port>(Vec(107, 117), module, Blinds::IN2_INPUT)); | |||
addInput(createInput<PJ3410Port>(Vec(107, 195), module, Blinds::IN3_INPUT)); | |||
addInput(createInput<PJ3410Port>(Vec(107, 274), module, Blinds::IN4_INPUT)); | |||
addInput(createInput<PJ3410Port>(Vec(107, 77), module, Blinds::CV1_INPUT)); | |||
addInput(createInput<PJ3410Port>(Vec(107, 156), module, Blinds::CV2_INPUT)); | |||
addInput(createInput<PJ3410Port>(Vec(107, 235), module, Blinds::CV3_INPUT)); | |||
addInput(createInput<PJ3410Port>(Vec(107, 313), module, Blinds::CV4_INPUT)); | |||
addOutput(createOutput<PJ3410Port>(Vec(141, 38), module, Blinds::OUT1_OUTPUT)); | |||
addOutput(createOutput<PJ3410Port>(Vec(141, 117), module, Blinds::OUT2_OUTPUT)); | |||
addOutput(createOutput<PJ3410Port>(Vec(141, 195), module, Blinds::OUT3_OUTPUT)); | |||
addOutput(createOutput<PJ3410Port>(Vec(141, 274), module, Blinds::OUT4_OUTPUT)); | |||
addChild(createValueLight<MediumLight<GreenRedPolarityLight>>(Vec(150, 87), &module->lights[0])); | |||
addChild(createValueLight<MediumLight<GreenRedPolarityLight>>(Vec(150, 166), &module->lights[1])); | |||
@@ -204,20 +204,20 @@ BraidsWidget::BraidsWidget() { | |||
addChild(createScrew<SilverScrew>(Vec(15, 365))); | |||
addChild(createScrew<SilverScrew>(Vec(210, 365))); | |||
addParam(createParam<MediumWhiteKnob>(Vec(187-10, 71-11), module, Braids::SHAPE_PARAM, 0.0, braids::MACRO_OSC_SHAPE_LAST-2, 0.0)); | |||
addParam(createParam<MediumWhiteKnob>(Vec(20, 139), module, Braids::FINE_PARAM, -1.0, 1.0, 0.0)); | |||
addParam(createParam<MediumWhiteKnob>(Vec(98, 139), module, Braids::COARSE_PARAM, -2.0, 2.0, 0.0)); | |||
addParam(createParam<MediumWhiteKnob>(Vec(177, 139), module, Braids::FM_PARAM, -1.0, 1.0, 0.0)); | |||
addParam(createParam<MediumGreenKnob>(Vec(20, 218), module, Braids::TIMBRE_PARAM, 0.0, 1.0, 0.5)); | |||
addParam(createParam<MediumGreenKnob>(Vec(98, 218), module, Braids::MODULATION_PARAM, -1.0, 1.0, 0.0)); | |||
addParam(createParam<MediumRedKnob>(Vec(177, 218), module, Braids::COLOR_PARAM, 0.0, 1.0, 0.5)); | |||
addInput(createInput<InputPortPJ3410>(Vec(7, 313), module, Braids::TRIG_INPUT)); | |||
addInput(createInput<InputPortPJ3410>(Vec(45, 313), module, Braids::PITCH_INPUT)); | |||
addInput(createInput<InputPortPJ3410>(Vec(82, 313), module, Braids::FM_INPUT)); | |||
addInput(createInput<InputPortPJ3410>(Vec(120, 313), module, Braids::TIMBRE_INPUT)); | |||
addInput(createInput<InputPortPJ3410>(Vec(157, 313), module, Braids::COLOR_INPUT)); | |||
addOutput(createOutput<OutputPortPJ3410>(Vec(202, 313), module, Braids::OUT_OUTPUT)); | |||
addParam(createParam<Rogan2SGray>(Vec(177, 60), module, Braids::SHAPE_PARAM, 0.0, braids::MACRO_OSC_SHAPE_LAST-2, 0.0)); | |||
addParam(createParam<Rogan2PSWhite>(Vec(20, 139), module, Braids::FINE_PARAM, -1.0, 1.0, 0.0)); | |||
addParam(createParam<Rogan2PSWhite>(Vec(98, 139), module, Braids::COARSE_PARAM, -2.0, 2.0, 0.0)); | |||
addParam(createParam<Rogan2PSWhite>(Vec(177, 139), module, Braids::FM_PARAM, -1.0, 1.0, 0.0)); | |||
addParam(createParam<Rogan2PSGreen>(Vec(20, 218), module, Braids::TIMBRE_PARAM, 0.0, 1.0, 0.5)); | |||
addParam(createParam<Rogan2PSGreen>(Vec(98, 218), module, Braids::MODULATION_PARAM, -1.0, 1.0, 0.0)); | |||
addParam(createParam<Rogan2PSRed>(Vec(177, 218), module, Braids::COLOR_PARAM, 0.0, 1.0, 0.5)); | |||
addInput(createInput<PJ3410Port>(Vec(7, 313), module, Braids::TRIG_INPUT)); | |||
addInput(createInput<PJ3410Port>(Vec(45, 313), module, Braids::PITCH_INPUT)); | |||
addInput(createInput<PJ3410Port>(Vec(82, 313), module, Braids::FM_INPUT)); | |||
addInput(createInput<PJ3410Port>(Vec(120, 313), module, Braids::TIMBRE_INPUT)); | |||
addInput(createInput<PJ3410Port>(Vec(157, 313), module, Braids::COLOR_INPUT)); | |||
addOutput(createOutput<PJ3410Port>(Vec(202, 313), module, Braids::OUT_OUTPUT)); | |||
} |
@@ -88,19 +88,19 @@ BranchesWidget::BranchesWidget() { | |||
addChild(createScrew<SilverScrew>(Vec(15, 0))); | |||
addChild(createScrew<SilverScrew>(Vec(15, 365))); | |||
addParam(createParam<SmallRedKnob>(Vec(24, 64), module, Branches::THRESHOLD1_PARAM, 0.0, 1.0, 0.5)); | |||
addParam(createParam<Rogan1PSRed>(Vec(24, 64), module, Branches::THRESHOLD1_PARAM, 0.0, 1.0, 0.5)); | |||
addParam(createParam<MediumToggleSwitch>(Vec(69, 58), module, Branches::MODE1_PARAM, 0.0, 1.0, 0.0)); | |||
addInput(createInput<InputPortPJ3410>(Vec(5, 119), module, Branches::IN1_INPUT)); | |||
addInput(createInput<InputPortPJ3410>(Vec(52, 119), module, Branches::P1_INPUT)); | |||
addOutput(createOutput<OutputPortPJ3410>(Vec(5, 157), module, Branches::OUT1A_OUTPUT)); | |||
addOutput(createOutput<OutputPortPJ3410>(Vec(52, 157), module, Branches::OUT1B_OUTPUT)); | |||
addInput(createInput<PJ3410Port>(Vec(5, 119), module, Branches::IN1_INPUT)); | |||
addInput(createInput<PJ3410Port>(Vec(52, 119), module, Branches::P1_INPUT)); | |||
addOutput(createOutput<PJ3410Port>(Vec(5, 157), module, Branches::OUT1A_OUTPUT)); | |||
addOutput(createOutput<PJ3410Port>(Vec(52, 157), module, Branches::OUT1B_OUTPUT)); | |||
addParam(createParam<SmallGreenKnob>(Vec(24, 220), module, Branches::THRESHOLD2_PARAM, 0.0, 1.0, 0.5)); | |||
addParam(createParam<Rogan1PSGreen>(Vec(24, 220), module, Branches::THRESHOLD2_PARAM, 0.0, 1.0, 0.5)); | |||
addParam(createParam<MediumToggleSwitch>(Vec(69, 214), module, Branches::MODE2_PARAM, 0.0, 1.0, 0.0)); | |||
addInput(createInput<InputPortPJ3410>(Vec(5, 275), module, Branches::IN2_INPUT)); | |||
addInput(createInput<InputPortPJ3410>(Vec(52, 275), module, Branches::P2_INPUT)); | |||
addOutput(createOutput<OutputPortPJ3410>(Vec(5, 313), module, Branches::OUT2A_OUTPUT)); | |||
addOutput(createOutput<OutputPortPJ3410>(Vec(52, 313), module, Branches::OUT2B_OUTPUT)); | |||
addInput(createInput<PJ3410Port>(Vec(5, 275), module, Branches::IN2_INPUT)); | |||
addInput(createInput<PJ3410Port>(Vec(52, 275), module, Branches::P2_INPUT)); | |||
addOutput(createOutput<PJ3410Port>(Vec(5, 313), module, Branches::OUT2A_OUTPUT)); | |||
addOutput(createOutput<PJ3410Port>(Vec(52, 313), module, Branches::OUT2B_OUTPUT)); | |||
addChild(createValueLight<SmallLight<GreenRedPolarityLight>>(Vec(40, 169), &module->light[0])); | |||
addChild(createValueLight<SmallLight<GreenRedPolarityLight>>(Vec(40, 325), &module->light[1])); | |||
@@ -177,26 +177,26 @@ CloudsWidget::CloudsWidget() { | |||
// addParam(createParam<MediumMomentarySwitch>(Vec(211, 51), module, Clouds::POSITION_PARAM, 0.0, 1.0, 0.5)); | |||
// addParam(createParam<MediumMomentarySwitch>(Vec(239, 51), module, Clouds::POSITION_PARAM, 0.0, 1.0, 0.5)); | |||
addParam(createParam<LargeRedKnob>(Vec(28, 94), module, Clouds::POSITION_PARAM, 0.0, 1.0, 0.5)); | |||
addParam(createParam<LargeGreenKnob>(Vec(109, 94), module, Clouds::SIZE_PARAM, 0.0, 1.0, 0.5)); | |||
addParam(createParam<LargeWhiteKnob>(Vec(191, 94), module, Clouds::PITCH_PARAM, -2.0, 2.0, 0.0)); | |||
addParam(createParam<SmallRedKnob>(Vec(15, 181), module, Clouds::IN_GAIN_PARAM, 0.0, 1.0, 0.5)); | |||
addParam(createParam<SmallRedKnob>(Vec(82, 181), module, Clouds::DENSITY_PARAM, 0.0, 1.0, 0.5)); | |||
addParam(createParam<SmallGreenKnob>(Vec(147, 181), module, Clouds::TEXTURE_PARAM, 0.0, 1.0, 0.5)); | |||
addParam(createParam<SmallWhiteKnob>(Vec(214, 181), module, Clouds::BLEND_PARAM, 0.0, 1.0, 0.5)); | |||
addInput(createInput<InputPortPJ3410>(Vec(11, 270), module, Clouds::FREEZE_INPUT)); | |||
addInput(createInput<InputPortPJ3410>(Vec(54, 270), module, Clouds::TRIG_INPUT)); | |||
addInput(createInput<InputPortPJ3410>(Vec(97, 270), module, Clouds::POSITION_INPUT)); | |||
addInput(createInput<InputPortPJ3410>(Vec(140, 270), module, Clouds::SIZE_INPUT)); | |||
addInput(createInput<InputPortPJ3410>(Vec(184, 270), module, Clouds::PITCH_INPUT)); | |||
addInput(createInput<InputPortPJ3410>(Vec(227, 270), module, Clouds::BLEND_INPUT)); | |||
addInput(createInput<InputPortPJ3410>(Vec(11, 313), module, Clouds::IN_L_INPUT)); | |||
addInput(createInput<InputPortPJ3410>(Vec(54, 313), module, Clouds::IN_R_INPUT)); | |||
addInput(createInput<InputPortPJ3410>(Vec(97, 313), module, Clouds::DENSITY_INPUT)); | |||
addInput(createInput<InputPortPJ3410>(Vec(140, 313), module, Clouds::TEXTURE_INPUT)); | |||
addOutput(createOutput<OutputPortPJ3410>(Vec(184, 313), module, Clouds::OUT_L_OUTPUT)); | |||
addOutput(createOutput<OutputPortPJ3410>(Vec(227, 313), module, Clouds::OUT_R_OUTPUT)); | |||
addParam(createParam<Rogan3PSRed>(Vec(28, 94), module, Clouds::POSITION_PARAM, 0.0, 1.0, 0.5)); | |||
addParam(createParam<Rogan3PSGreen>(Vec(109, 94), module, Clouds::SIZE_PARAM, 0.0, 1.0, 0.5)); | |||
addParam(createParam<Rogan3PSWhite>(Vec(191, 94), module, Clouds::PITCH_PARAM, -2.0, 2.0, 0.0)); | |||
addParam(createParam<Rogan1PSRed>(Vec(15, 181), module, Clouds::IN_GAIN_PARAM, 0.0, 1.0, 0.5)); | |||
addParam(createParam<Rogan1PSRed>(Vec(82, 181), module, Clouds::DENSITY_PARAM, 0.0, 1.0, 0.5)); | |||
addParam(createParam<Rogan1PSGreen>(Vec(147, 181), module, Clouds::TEXTURE_PARAM, 0.0, 1.0, 0.5)); | |||
addParam(createParam<Rogan1PSWhite>(Vec(214, 181), module, Clouds::BLEND_PARAM, 0.0, 1.0, 0.5)); | |||
addInput(createInput<PJ3410Port>(Vec(11, 270), module, Clouds::FREEZE_INPUT)); | |||
addInput(createInput<PJ3410Port>(Vec(54, 270), module, Clouds::TRIG_INPUT)); | |||
addInput(createInput<PJ3410Port>(Vec(97, 270), module, Clouds::POSITION_INPUT)); | |||
addInput(createInput<PJ3410Port>(Vec(140, 270), module, Clouds::SIZE_INPUT)); | |||
addInput(createInput<PJ3410Port>(Vec(184, 270), module, Clouds::PITCH_INPUT)); | |||
addInput(createInput<PJ3410Port>(Vec(227, 270), module, Clouds::BLEND_INPUT)); | |||
addInput(createInput<PJ3410Port>(Vec(11, 313), module, Clouds::IN_L_INPUT)); | |||
addInput(createInput<PJ3410Port>(Vec(54, 313), module, Clouds::IN_R_INPUT)); | |||
addInput(createInput<PJ3410Port>(Vec(97, 313), module, Clouds::DENSITY_INPUT)); | |||
addInput(createInput<PJ3410Port>(Vec(140, 313), module, Clouds::TEXTURE_INPUT)); | |||
addOutput(createOutput<PJ3410Port>(Vec(184, 313), module, Clouds::OUT_L_OUTPUT)); | |||
addOutput(createOutput<PJ3410Port>(Vec(227, 313), module, Clouds::OUT_R_OUTPUT)); | |||
} |
@@ -152,7 +152,7 @@ void Elements::step() { | |||
// Get performance inputs | |||
elements::PerformanceState performance; | |||
performance.note = 12.0*getf(inputs[NOTE_INPUT]) + roundf(params[COARSE_PARAM]) + 3.3*quadraticBipolar(params[FINE_PARAM]) + 69.0; | |||
performance.note = 12.0*getf(inputs[NOTE_INPUT]) + roundf(params[COARSE_PARAM]) + params[FINE_PARAM] + 69.0; | |||
performance.modulation = 3.3*quarticBipolar(params[FM_PARAM]) * 49.5 * getf(inputs[FM_INPUT])/5.0; | |||
performance.gate = params[PLAY_PARAM] >= 1.0 || getf(inputs[GATE_INPUT]) >= 1.0; | |||
performance.strength = clampf(1.0 - getf(inputs[STRENGTH_INPUT])/5.0, 0.0, 1.0); | |||
@@ -206,59 +206,59 @@ ElementsWidget::ElementsWidget() { | |||
addChild(createScrew<SilverScrew>(Vec(15, 365))); | |||
addChild(createScrew<SilverScrew>(Vec(480, 365))); | |||
addParam(createParam<SmallWhiteKnob>(Vec(29, 43), module, Elements::CONTOUR_PARAM, 0.0, 1.0, 0.5)); | |||
addParam(createParam<SmallWhiteKnob>(Vec(100, 43), module, Elements::BOW_PARAM, 0.0, 1.0, 0.5)); | |||
addParam(createParam<SmallRedKnob>(Vec(170, 43), module, Elements::BLOW_PARAM, 0.0, 1.0, 0.5)); | |||
addParam(createParam<SmallGreenKnob>(Vec(240, 43), module, Elements::STRIKE_PARAM, 0.0, 1.0, 0.5)); | |||
addParam(createParam<SmallWhiteKnob>(Vec(311, 43), module, Elements::COARSE_PARAM, -30.0, 30.0, 0.0)); | |||
addParam(createParam<SmallWhiteKnob>(Vec(382, 43), module, Elements::FINE_PARAM, -2.0, 2.0, 0.0)); | |||
addParam(createParam<SmallWhiteKnob>(Vec(452, 43), module, Elements::FM_PARAM, -1.0, 1.0, 0.0)); | |||
addParam(createParam<LargeRedKnob>(Vec(116, 117), module, Elements::FLOW_PARAM, 0.0, 1.0, 0.5)); | |||
addParam(createParam<LargeGreenKnob>(Vec(213, 117), module, Elements::MALLET_PARAM, 0.0, 1.0, 0.5)); | |||
addParam(createParam<LargeWhiteKnob>(Vec(327, 117), module, Elements::GEOMETRY_PARAM, 0.0, 1.0, 0.5)); | |||
addParam(createParam<LargeWhiteKnob>(Vec(424, 117), module, Elements::BRIGHTNESS_PARAM, 0.0, 1.0, 0.5)); | |||
addParam(createParam<SmallWhiteKnob>(Vec(100, 203), module, Elements::BOW_TIMBRE_PARAM, 0.0, 1.0, 0.5)); | |||
addParam(createParam<SmallRedKnob>(Vec(171, 203), module, Elements::BLOW_TIMBRE_PARAM, 0.0, 1.0, 0.5)); | |||
addParam(createParam<SmallGreenKnob>(Vec(240, 203), module, Elements::STRIKE_TIMBRE_PARAM, 0.0, 1.0, 0.5)); | |||
addParam(createParam<SmallWhiteKnob>(Vec(311, 203), module, Elements::DAMPING_PARAM, 0.0, 1.0, 0.5)); | |||
addParam(createParam<SmallWhiteKnob>(Vec(381, 203), module, Elements::POSITION_PARAM, 0.0, 1.0, 0.5)); | |||
addParam(createParam<SmallWhiteKnob>(Vec(452, 203), module, Elements::SPACE_PARAM, 0.0, 2.0, 0.0)); | |||
addParam(createParam<TinyBlackKnob>(Vec(104, 274), module, Elements::BOW_TIMBRE_MOD_PARAM, -1.0, 1.0, 0.0)); | |||
addParam(createParam<TinyBlackKnob>(Vec(143, 274), module, Elements::FLOW_MOD_PARAM, -1.0, 1.0, 0.0)); | |||
addParam(createParam<TinyBlackKnob>(Vec(181, 274), module, Elements::BLOW_TIMBRE_MOD_PARAM, -1.0, 1.0, 0.0)); | |||
addParam(createParam<TinyBlackKnob>(Vec(220, 274), module, Elements::MALLET_MOD_PARAM, -1.0, 1.0, 0.0)); | |||
addParam(createParam<TinyBlackKnob>(Vec(258, 274), module, Elements::STRIKE_TIMBRE_MOD_PARAM, -1.0, 1.0, 0.0)); | |||
addParam(createParam<TinyBlackKnob>(Vec(316, 274), module, Elements::DAMPING_MOD_PARAM, -1.0, 1.0, 0.0)); | |||
addParam(createParam<TinyBlackKnob>(Vec(354, 274), module, Elements::GEOMETRY_MOD_PARAM, -1.0, 1.0, 0.0)); | |||
addParam(createParam<TinyBlackKnob>(Vec(393, 274), module, Elements::POSITION_MOD_PARAM, -1.0, 1.0, 0.0)); | |||
addParam(createParam<TinyBlackKnob>(Vec(431, 274), module, Elements::BRIGHTNESS_MOD_PARAM, -1.0, 1.0, 0.0)); | |||
addParam(createParam<TinyBlackKnob>(Vec(470, 274), module, Elements::SPACE_MOD_PARAM, -2.0, 2.0, 0.0)); | |||
addInput(createInput<InputPortPJ3410>(Vec(16, 175), module, Elements::NOTE_INPUT)); | |||
addInput(createInput<InputPortPJ3410>(Vec(52, 175), module, Elements::FM_INPUT)); | |||
addInput(createInput<InputPortPJ3410>(Vec(16, 221), module, Elements::GATE_INPUT)); | |||
addInput(createInput<InputPortPJ3410>(Vec(52, 221), module, Elements::STRENGTH_INPUT)); | |||
addInput(createInput<InputPortPJ3410>(Vec(16, 267), module, Elements::BLOW_INPUT)); | |||
addInput(createInput<InputPortPJ3410>(Vec(52, 267), module, Elements::STRIKE_INPUT)); | |||
addOutput(createOutput<OutputPortPJ3410>(Vec(16, 313), module, Elements::AUX_OUTPUT)); | |||
addOutput(createOutput<OutputPortPJ3410>(Vec(52, 313), module, Elements::MAIN_OUTPUT)); | |||
addInput(createInput<InputPortPJ3410>(Vec(97, 313), module, Elements::BOW_TIMBRE_MOD_INPUT)); | |||
addInput(createInput<InputPortPJ3410>(Vec(136, 313), module, Elements::FLOW_MOD_INPUT)); | |||
addInput(createInput<InputPortPJ3410>(Vec(174, 313), module, Elements::BLOW_TIMBRE_MOD_INPUT)); | |||
addInput(createInput<InputPortPJ3410>(Vec(213, 313), module, Elements::MALLET_MOD_INPUT)); | |||
addInput(createInput<InputPortPJ3410>(Vec(251, 313), module, Elements::STRIKE_TIMBRE_MOD_INPUT)); | |||
addInput(createInput<InputPortPJ3410>(Vec(309, 313), module, Elements::DAMPING_MOD_INPUT)); | |||
addInput(createInput<InputPortPJ3410>(Vec(347, 313), module, Elements::GEOMETRY_MOD_INPUT)); | |||
addInput(createInput<InputPortPJ3410>(Vec(386, 313), module, Elements::POSITION_MOD_INPUT)); | |||
addInput(createInput<InputPortPJ3410>(Vec(424, 313), module, Elements::BRIGHTNESS_MOD_INPUT)); | |||
addInput(createInput<InputPortPJ3410>(Vec(463, 313), module, Elements::SPACE_MOD_INPUT)); | |||
addParam(createParam<Rogan1PSWhite>(Vec(29, 43), module, Elements::CONTOUR_PARAM, 0.0, 1.0, 1.0)); | |||
addParam(createParam<Rogan1PSWhite>(Vec(100, 43), module, Elements::BOW_PARAM, 0.0, 1.0, 0.0)); | |||
addParam(createParam<Rogan1PSRed>(Vec(170, 43), module, Elements::BLOW_PARAM, 0.0, 1.0, 0.0)); | |||
addParam(createParam<Rogan1PSGreen>(Vec(240, 43), module, Elements::STRIKE_PARAM, 0.0, 1.0, 0.5)); | |||
addParam(createParam<Rogan1PSWhite>(Vec(311, 43), module, Elements::COARSE_PARAM, -30.0, 30.0, 0.0)); | |||
addParam(createParam<Rogan1PSWhite>(Vec(382, 43), module, Elements::FINE_PARAM, -2.0, 2.0, 0.0)); | |||
addParam(createParam<Rogan1PSWhite>(Vec(452, 43), module, Elements::FM_PARAM, -1.0, 1.0, 0.0)); | |||
addParam(createParam<Rogan3PSRed>(Vec(116, 117), module, Elements::FLOW_PARAM, 0.0, 1.0, 0.5)); | |||
addParam(createParam<Rogan3PSGreen>(Vec(213, 117), module, Elements::MALLET_PARAM, 0.0, 1.0, 0.5)); | |||
addParam(createParam<Rogan3PSWhite>(Vec(327, 117), module, Elements::GEOMETRY_PARAM, 0.0, 1.0, 0.5)); | |||
addParam(createParam<Rogan3PSWhite>(Vec(424, 117), module, Elements::BRIGHTNESS_PARAM, 0.0, 1.0, 0.5)); | |||
addParam(createParam<Rogan1PSWhite>(Vec(100, 203), module, Elements::BOW_TIMBRE_PARAM, 0.0, 1.0, 0.5)); | |||
addParam(createParam<Rogan1PSRed>(Vec(171, 203), module, Elements::BLOW_TIMBRE_PARAM, 0.0, 1.0, 0.5)); | |||
addParam(createParam<Rogan1PSGreen>(Vec(240, 203), module, Elements::STRIKE_TIMBRE_PARAM, 0.0, 1.0, 0.5)); | |||
addParam(createParam<Rogan1PSWhite>(Vec(311, 203), module, Elements::DAMPING_PARAM, 0.0, 1.0, 0.5)); | |||
addParam(createParam<Rogan1PSWhite>(Vec(381, 203), module, Elements::POSITION_PARAM, 0.0, 1.0, 0.5)); | |||
addParam(createParam<Rogan1PSWhite>(Vec(452, 203), module, Elements::SPACE_PARAM, 0.0, 2.0, 0.0)); | |||
addParam(createParam<Trimpot>(Vec(104, 274), module, Elements::BOW_TIMBRE_MOD_PARAM, -1.0, 1.0, 0.0)); | |||
addParam(createParam<Trimpot>(Vec(143, 274), module, Elements::FLOW_MOD_PARAM, -1.0, 1.0, 0.0)); | |||
addParam(createParam<Trimpot>(Vec(181, 274), module, Elements::BLOW_TIMBRE_MOD_PARAM, -1.0, 1.0, 0.0)); | |||
addParam(createParam<Trimpot>(Vec(220, 274), module, Elements::MALLET_MOD_PARAM, -1.0, 1.0, 0.0)); | |||
addParam(createParam<Trimpot>(Vec(258, 274), module, Elements::STRIKE_TIMBRE_MOD_PARAM, -1.0, 1.0, 0.0)); | |||
addParam(createParam<Trimpot>(Vec(316, 274), module, Elements::DAMPING_MOD_PARAM, -1.0, 1.0, 0.0)); | |||
addParam(createParam<Trimpot>(Vec(354, 274), module, Elements::GEOMETRY_MOD_PARAM, -1.0, 1.0, 0.0)); | |||
addParam(createParam<Trimpot>(Vec(393, 274), module, Elements::POSITION_MOD_PARAM, -1.0, 1.0, 0.0)); | |||
addParam(createParam<Trimpot>(Vec(431, 274), module, Elements::BRIGHTNESS_MOD_PARAM, -1.0, 1.0, 0.0)); | |||
addParam(createParam<Trimpot>(Vec(470, 274), module, Elements::SPACE_MOD_PARAM, -2.0, 2.0, 0.0)); | |||
addInput(createInput<PJ3410Port>(Vec(16, 175), module, Elements::NOTE_INPUT)); | |||
addInput(createInput<PJ3410Port>(Vec(52, 175), module, Elements::FM_INPUT)); | |||
addInput(createInput<PJ3410Port>(Vec(16, 221), module, Elements::GATE_INPUT)); | |||
addInput(createInput<PJ3410Port>(Vec(52, 221), module, Elements::STRENGTH_INPUT)); | |||
addInput(createInput<PJ3410Port>(Vec(16, 267), module, Elements::BLOW_INPUT)); | |||
addInput(createInput<PJ3410Port>(Vec(52, 267), module, Elements::STRIKE_INPUT)); | |||
addOutput(createOutput<PJ3410Port>(Vec(16, 313), module, Elements::AUX_OUTPUT)); | |||
addOutput(createOutput<PJ3410Port>(Vec(52, 313), module, Elements::MAIN_OUTPUT)); | |||
addInput(createInput<PJ3410Port>(Vec(97, 313), module, Elements::BOW_TIMBRE_MOD_INPUT)); | |||
addInput(createInput<PJ3410Port>(Vec(136, 313), module, Elements::FLOW_MOD_INPUT)); | |||
addInput(createInput<PJ3410Port>(Vec(174, 313), module, Elements::BLOW_TIMBRE_MOD_INPUT)); | |||
addInput(createInput<PJ3410Port>(Vec(213, 313), module, Elements::MALLET_MOD_INPUT)); | |||
addInput(createInput<PJ3410Port>(Vec(251, 313), module, Elements::STRIKE_TIMBRE_MOD_INPUT)); | |||
addInput(createInput<PJ3410Port>(Vec(309, 313), module, Elements::DAMPING_MOD_INPUT)); | |||
addInput(createInput<PJ3410Port>(Vec(347, 313), module, Elements::GEOMETRY_MOD_INPUT)); | |||
addInput(createInput<PJ3410Port>(Vec(386, 313), module, Elements::POSITION_MOD_INPUT)); | |||
addInput(createInput<PJ3410Port>(Vec(424, 313), module, Elements::BRIGHTNESS_MOD_INPUT)); | |||
addInput(createInput<PJ3410Port>(Vec(463, 313), module, Elements::SPACE_MOD_INPUT)); | |||
addParam(createParam<LargeMomentarySwitch>(Vec(36, 116), module, Elements::PLAY_PARAM, 0.0, 2.0, 0.0)); | |||
@@ -100,20 +100,20 @@ KinksWidget::KinksWidget() { | |||
addChild(createScrew<SilverScrew>(Vec(15, 0))); | |||
addChild(createScrew<SilverScrew>(Vec(15, 365))); | |||
addInput(createInput<InputPortPJ3410>(Vec(0, 72), module, Kinks::SIGN_INPUT)); | |||
addOutput(createOutput<OutputPortPJ3410>(Vec(29, 72), module, Kinks::INVERT_OUTPUT)); | |||
addOutput(createOutput<OutputPortPJ3410>(Vec(0, 110), module, Kinks::HALF_RECTIFY_OUTPUT)); | |||
addOutput(createOutput<OutputPortPJ3410>(Vec(29, 110), module, Kinks::FULL_RECTIFY_OUTPUT)); | |||
addInput(createInput<InputPortPJ3410>(Vec(0, 174), module, Kinks::LOGIC_A_INPUT)); | |||
addInput(createInput<InputPortPJ3410>(Vec(29, 174), module, Kinks::LOGIC_B_INPUT)); | |||
addOutput(createOutput<OutputPortPJ3410>(Vec(0, 211), module, Kinks::MAX_OUTPUT)); | |||
addOutput(createOutput<OutputPortPJ3410>(Vec(29, 211), module, Kinks::MIN_OUTPUT)); | |||
addInput(createInput<InputPortPJ3410>(Vec(0, 275), module, Kinks::SH_INPUT)); | |||
addInput(createInput<InputPortPJ3410>(Vec(29, 275), module, Kinks::TRIG_INPUT)); | |||
addOutput(createOutput<OutputPortPJ3410>(Vec(0, 313), module, Kinks::NOISE_OUTPUT)); | |||
addOutput(createOutput<OutputPortPJ3410>(Vec(29, 313), module, Kinks::SH_OUTPUT)); | |||
addInput(createInput<PJ3410Port>(Vec(0, 72), module, Kinks::SIGN_INPUT)); | |||
addOutput(createOutput<PJ3410Port>(Vec(29, 72), module, Kinks::INVERT_OUTPUT)); | |||
addOutput(createOutput<PJ3410Port>(Vec(0, 110), module, Kinks::HALF_RECTIFY_OUTPUT)); | |||
addOutput(createOutput<PJ3410Port>(Vec(29, 110), module, Kinks::FULL_RECTIFY_OUTPUT)); | |||
addInput(createInput<PJ3410Port>(Vec(0, 174), module, Kinks::LOGIC_A_INPUT)); | |||
addInput(createInput<PJ3410Port>(Vec(29, 174), module, Kinks::LOGIC_B_INPUT)); | |||
addOutput(createOutput<PJ3410Port>(Vec(0, 211), module, Kinks::MAX_OUTPUT)); | |||
addOutput(createOutput<PJ3410Port>(Vec(29, 211), module, Kinks::MIN_OUTPUT)); | |||
addInput(createInput<PJ3410Port>(Vec(0, 275), module, Kinks::SH_INPUT)); | |||
addInput(createInput<PJ3410Port>(Vec(29, 275), module, Kinks::TRIG_INPUT)); | |||
addOutput(createOutput<PJ3410Port>(Vec(0, 313), module, Kinks::NOISE_OUTPUT)); | |||
addOutput(createOutput<PJ3410Port>(Vec(29, 313), module, Kinks::SH_OUTPUT)); | |||
addChild(createValueLight<SmallLight<GreenRedPolarityLight>>(Vec(11, 59), &module->lights[0])); | |||
addChild(createValueLight<SmallLight<GreenRedPolarityLight>>(Vec(11, 161), &module->lights[1])); | |||
@@ -69,20 +69,20 @@ LinksWidget::LinksWidget() { | |||
addChild(createScrew<SilverScrew>(Vec(15, 0))); | |||
addChild(createScrew<SilverScrew>(Vec(15, 365))); | |||
addInput(createInput<InputPortPJ3410>(Vec(0, 72), module, Links::A1_INPUT)); | |||
addOutput(createOutput<OutputPortPJ3410>(Vec(29, 72), module, Links::A1_OUTPUT)); | |||
addOutput(createOutput<OutputPortPJ3410>(Vec(0, 110), module, Links::A2_OUTPUT)); | |||
addOutput(createOutput<OutputPortPJ3410>(Vec(29, 110), module, Links::A3_OUTPUT)); | |||
addInput(createInput<InputPortPJ3410>(Vec(0, 174), module, Links::B1_INPUT)); | |||
addInput(createInput<InputPortPJ3410>(Vec(29, 174), module, Links::B2_INPUT)); | |||
addOutput(createOutput<OutputPortPJ3410>(Vec(0, 211), module, Links::B1_OUTPUT)); | |||
addOutput(createOutput<OutputPortPJ3410>(Vec(29, 211), module, Links::B2_OUTPUT)); | |||
addInput(createInput<InputPortPJ3410>(Vec(0, 275), module, Links::C1_INPUT)); | |||
addInput(createInput<InputPortPJ3410>(Vec(29, 275), module, Links::C2_INPUT)); | |||
addInput(createInput<InputPortPJ3410>(Vec(0, 313), module, Links::C3_INPUT)); | |||
addOutput(createOutput<OutputPortPJ3410>(Vec(29, 313), module, Links::C1_OUTPUT)); | |||
addInput(createInput<PJ3410Port>(Vec(0, 72), module, Links::A1_INPUT)); | |||
addOutput(createOutput<PJ3410Port>(Vec(29, 72), module, Links::A1_OUTPUT)); | |||
addOutput(createOutput<PJ3410Port>(Vec(0, 110), module, Links::A2_OUTPUT)); | |||
addOutput(createOutput<PJ3410Port>(Vec(29, 110), module, Links::A3_OUTPUT)); | |||
addInput(createInput<PJ3410Port>(Vec(0, 174), module, Links::B1_INPUT)); | |||
addInput(createInput<PJ3410Port>(Vec(29, 174), module, Links::B2_INPUT)); | |||
addOutput(createOutput<PJ3410Port>(Vec(0, 211), module, Links::B1_OUTPUT)); | |||
addOutput(createOutput<PJ3410Port>(Vec(29, 211), module, Links::B2_OUTPUT)); | |||
addInput(createInput<PJ3410Port>(Vec(0, 275), module, Links::C1_INPUT)); | |||
addInput(createInput<PJ3410Port>(Vec(29, 275), module, Links::C2_INPUT)); | |||
addInput(createInput<PJ3410Port>(Vec(0, 313), module, Links::C3_INPUT)); | |||
addOutput(createOutput<PJ3410Port>(Vec(29, 313), module, Links::C1_OUTPUT)); | |||
addChild(createValueLight<SmallLight<GreenRedPolarityLight>>(Vec(26, 59), &module->lights[0])); | |||
addChild(createValueLight<SmallLight<GreenRedPolarityLight>>(Vec(26, 161), &module->lights[1])); | |||
@@ -216,31 +216,31 @@ RingsWidget::RingsWidget() { | |||
addParam(createParam<MediumToggleSwitch>(Vec(14, 40), module, Rings::POLYPHONY_PARAM, 0.0, 2.0, 0.0)); | |||
addParam(createParam<MediumToggleSwitch>(Vec(179, 40), module, Rings::RESONATOR_PARAM, 0.0, 2.0, 0.0)); | |||
addParam(createParam<LargeWhiteKnob>(Vec(30, 73), module, Rings::FREQUENCY_PARAM, 0.0, 60.0, 30.0)); | |||
addParam(createParam<LargeWhiteKnob>(Vec(127, 73), module, Rings::STRUCTURE_PARAM, 0.0, 1.0, 0.5)); | |||
addParam(createParam<SmallWhiteKnob>(Vec(14, 159), module, Rings::BRIGHTNESS_PARAM, 0.0, 1.0, 0.5)); | |||
addParam(createParam<SmallWhiteKnob>(Vec(84, 159), module, Rings::DAMPING_PARAM, 0.0, 1.0, 0.5)); | |||
addParam(createParam<SmallWhiteKnob>(Vec(155, 159), module, Rings::POSITION_PARAM, 0.0, 1.0, 0.5)); | |||
addParam(createParam<TinyBlackKnob>(Vec(19, 229), module, Rings::BRIGHTNESS_MOD_PARAM, -1.0, 1.0, 0.0)); | |||
addParam(createParam<TinyBlackKnob>(Vec(57, 229), module, Rings::FREQUENCY_MOD_PARAM, -1.0, 1.0, 0.0)); | |||
addParam(createParam<TinyBlackKnob>(Vec(95, 229), module, Rings::DAMPING_MOD_PARAM, -1.0, 1.0, 0.0)); | |||
addParam(createParam<TinyBlackKnob>(Vec(134, 229), module, Rings::STRUCTURE_MOD_PARAM, -1.0, 1.0, 0.0)); | |||
addParam(createParam<TinyBlackKnob>(Vec(172, 229), module, Rings::POSITION_MOD_PARAM, -1.0, 1.0, 0.0)); | |||
addInput(createInput<InputPortPJ3410>(Vec(12, 270), module, Rings::BRIGHTNESS_MOD_INPUT)); | |||
addInput(createInput<InputPortPJ3410>(Vec(51, 270), module, Rings::FREQUENCY_MOD_INPUT)); | |||
addInput(createInput<InputPortPJ3410>(Vec(89, 270), module, Rings::DAMPING_MOD_INPUT)); | |||
addInput(createInput<InputPortPJ3410>(Vec(128, 270), module, Rings::STRUCTURE_MOD_INPUT)); | |||
addInput(createInput<InputPortPJ3410>(Vec(166, 270), module, Rings::POSITION_MOD_INPUT)); | |||
addInput(createInput<InputPortPJ3410>(Vec(12, 313), module, Rings::STRUM_INPUT)); | |||
addInput(createInput<InputPortPJ3410>(Vec(51, 313), module, Rings::PITCH_INPUT)); | |||
addInput(createInput<InputPortPJ3410>(Vec(89, 313), module, Rings::IN_INPUT)); | |||
addOutput(createOutput<OutputPortPJ3410>(Vec(128, 313), module, Rings::ODD_OUTPUT)); | |||
addOutput(createOutput<OutputPortPJ3410>(Vec(166, 313), module, Rings::EVEN_OUTPUT)); | |||
addChild(createValueLight<SmallLight<TripleModeLight>>(Vec(38, 44), &module->params[Rings::POLYPHONY_PARAM])); | |||
addChild(createValueLight<SmallLight<TripleModeLight>>(Vec(163, 44), &module->params[Rings::RESONATOR_PARAM])); | |||
addParam(createParam<Rogan3PSWhite>(Vec(30, 73), module, Rings::FREQUENCY_PARAM, 0.0, 60.0, 30.0)); | |||
addParam(createParam<Rogan3PSWhite>(Vec(127, 73), module, Rings::STRUCTURE_PARAM, 0.0, 1.0, 0.5)); | |||
addParam(createParam<Rogan1PSWhite>(Vec(14, 159), module, Rings::BRIGHTNESS_PARAM, 0.0, 1.0, 0.5)); | |||
addParam(createParam<Rogan1PSWhite>(Vec(84, 159), module, Rings::DAMPING_PARAM, 0.0, 1.0, 0.5)); | |||
addParam(createParam<Rogan1PSWhite>(Vec(155, 159), module, Rings::POSITION_PARAM, 0.0, 1.0, 0.5)); | |||
addParam(createParam<Trimpot>(Vec(19, 229), module, Rings::BRIGHTNESS_MOD_PARAM, -1.0, 1.0, 0.0)); | |||
addParam(createParam<Trimpot>(Vec(57, 229), module, Rings::FREQUENCY_MOD_PARAM, -1.0, 1.0, 0.0)); | |||
addParam(createParam<Trimpot>(Vec(95, 229), module, Rings::DAMPING_MOD_PARAM, -1.0, 1.0, 0.0)); | |||
addParam(createParam<Trimpot>(Vec(134, 229), module, Rings::STRUCTURE_MOD_PARAM, -1.0, 1.0, 0.0)); | |||
addParam(createParam<Trimpot>(Vec(172, 229), module, Rings::POSITION_MOD_PARAM, -1.0, 1.0, 0.0)); | |||
addInput(createInput<PJ3410Port>(Vec(12, 270), module, Rings::BRIGHTNESS_MOD_INPUT)); | |||
addInput(createInput<PJ3410Port>(Vec(51, 270), module, Rings::FREQUENCY_MOD_INPUT)); | |||
addInput(createInput<PJ3410Port>(Vec(89, 270), module, Rings::DAMPING_MOD_INPUT)); | |||
addInput(createInput<PJ3410Port>(Vec(128, 270), module, Rings::STRUCTURE_MOD_INPUT)); | |||
addInput(createInput<PJ3410Port>(Vec(166, 270), module, Rings::POSITION_MOD_INPUT)); | |||
addInput(createInput<PJ3410Port>(Vec(12, 313), module, Rings::STRUM_INPUT)); | |||
addInput(createInput<PJ3410Port>(Vec(51, 313), module, Rings::PITCH_INPUT)); | |||
addInput(createInput<PJ3410Port>(Vec(89, 313), module, Rings::IN_INPUT)); | |||
addOutput(createOutput<PJ3410Port>(Vec(128, 313), module, Rings::ODD_OUTPUT)); | |||
addOutput(createOutput<PJ3410Port>(Vec(166, 313), module, Rings::EVEN_OUTPUT)); | |||
addChild(createValueLight<SmallLight<TripleModeLight>>(Vec(38, 43.8), &module->params[Rings::POLYPHONY_PARAM])); | |||
addChild(createValueLight<SmallLight<TripleModeLight>>(Vec(163, 43.8), &module->params[Rings::RESONATOR_PARAM])); | |||
} |
@@ -90,21 +90,21 @@ ShadesWidget::ShadesWidget() { | |||
addChild(createScrew<SilverScrew>(Vec(15, 0))); | |||
addChild(createScrew<SilverScrew>(Vec(15, 365))); | |||
addParam(createParam<SmallRedKnob>(Vec(40, 41), module, Shades::GAIN1_PARAM, 0.0, 1.0, 0.5)); | |||
addParam(createParam<SmallWhiteKnob>(Vec(40, 107), module, Shades::GAIN2_PARAM, 0.0, 1.0, 0.5)); | |||
addParam(createParam<SmallGreenKnob>(Vec(40, 173), module, Shades::GAIN3_PARAM, 0.0, 1.0, 0.5)); | |||
addParam(createParam<Rogan1PSRed>(Vec(40, 41), module, Shades::GAIN1_PARAM, 0.0, 1.0, 0.5)); | |||
addParam(createParam<Rogan1PSWhite>(Vec(40, 107), module, Shades::GAIN2_PARAM, 0.0, 1.0, 0.5)); | |||
addParam(createParam<Rogan1PSGreen>(Vec(40, 173), module, Shades::GAIN3_PARAM, 0.0, 1.0, 0.5)); | |||
addParam(createParam<SlideSwitch>(Vec(11, 52), module, Shades::MODE1_PARAM, 0.0, 1.0, 0.0)); | |||
addParam(createParam<SlideSwitch>(Vec(11, 118), module, Shades::MODE2_PARAM, 0.0, 1.0, 0.0)); | |||
addParam(createParam<SlideSwitch>(Vec(11, 184), module, Shades::MODE3_PARAM, 0.0, 1.0, 0.0)); | |||
addInput(createInput<InputPortPJ3410>(Vec(5, 242), module, Shades::IN1_INPUT)); | |||
addInput(createInput<InputPortPJ3410>(Vec(5, 278), module, Shades::IN2_INPUT)); | |||
addInput(createInput<InputPortPJ3410>(Vec(5, 314), module, Shades::IN3_INPUT)); | |||
addInput(createInput<PJ3410Port>(Vec(5, 242), module, Shades::IN1_INPUT)); | |||
addInput(createInput<PJ3410Port>(Vec(5, 278), module, Shades::IN2_INPUT)); | |||
addInput(createInput<PJ3410Port>(Vec(5, 314), module, Shades::IN3_INPUT)); | |||
addOutput(createOutput<OutputPortPJ3410>(Vec(52, 242), module, Shades::OUT1_OUTPUT)); | |||
addOutput(createOutput<OutputPortPJ3410>(Vec(52, 278), module, Shades::OUT2_OUTPUT)); | |||
addOutput(createOutput<OutputPortPJ3410>(Vec(52, 314), module, Shades::OUT3_OUTPUT)); | |||
addOutput(createOutput<PJ3410Port>(Vec(52, 242), module, Shades::OUT1_OUTPUT)); | |||
addOutput(createOutput<PJ3410Port>(Vec(52, 278), module, Shades::OUT2_OUTPUT)); | |||
addOutput(createOutput<PJ3410Port>(Vec(52, 314), module, Shades::OUT3_OUTPUT)); | |||
addChild(createValueLight<SmallLight<GreenRedPolarityLight>>(Vec(41, 254), &module->lights[0])); | |||
addChild(createValueLight<SmallLight<GreenRedPolarityLight>>(Vec(41, 290), &module->lights[1])); | |||
@@ -65,20 +65,20 @@ StreamsWidget::StreamsWidget() { | |||
// addParam(createParam<HugeGlowKnob>(Vec(30, 53), module, Streams::ALGORITHM_PARAM, 0.0, 8.0, 0.0)); | |||
// addParam(createParam<SmallWhiteKnob>(Vec(95, 173), module, Streams::TIMBRE_PARAM, 0.0, 1.0, 0.5)); | |||
// addParam(createParam<Rogan1PSWhite>(Vec(95, 173), module, Streams::TIMBRE_PARAM, 0.0, 1.0, 0.5)); | |||
// addParam(createParam<MediumToggleSwitch>(Vec(17, 182), module, Streams::STATE_PARAM, 0.0, 3.0, 0.0)); | |||
// addParam(createParam<TinyBlackKnob>(Vec(15, 214), module, Streams::LEVEL1_PARAM, 0.0, 1.0, 1.0)); | |||
// addParam(createParam<TinyBlackKnob>(Vec(53, 214), module, Streams::LEVEL2_PARAM, 0.0, 1.0, 1.0)); | |||
// addInput(createInput<InputPortPJ3410>(Vec(11, 275), module, Streams::LEVEL1_INPUT)); | |||
// addInput(createInput<InputPortPJ3410>(Vec(47, 275), module, Streams::LEVEL2_INPUT)); | |||
// addInput(createInput<InputPortPJ3410>(Vec(83, 275), module, Streams::ALGORITHM_INPUT)); | |||
// addInput(createInput<InputPortPJ3410>(Vec(119, 275), module, Streams::TIMBRE_INPUT)); | |||
// addInput(createInput<InputPortPJ3410>(Vec(11, 318), module, Streams::CARRIER_INPUT)); | |||
// addInput(createInput<InputPortPJ3410>(Vec(47, 318), module, Streams::MODULATOR_INPUT)); | |||
// addOutput(createOutput<OutputPortPJ3410>(Vec(83, 318), module, Streams::MODULATOR_OUTPUT)); | |||
// addOutput(createOutput<OutputPortPJ3410>(Vec(119, 318), module, Streams::AUX_OUTPUT)); | |||
// addParam(createParam<Trimpot>(Vec(15, 214), module, Streams::LEVEL1_PARAM, 0.0, 1.0, 1.0)); | |||
// addParam(createParam<Trimpot>(Vec(53, 214), module, Streams::LEVEL2_PARAM, 0.0, 1.0, 1.0)); | |||
// addInput(createInput<PJ3410Port>(Vec(11, 275), module, Streams::LEVEL1_INPUT)); | |||
// addInput(createInput<PJ3410Port>(Vec(47, 275), module, Streams::LEVEL2_INPUT)); | |||
// addInput(createInput<PJ3410Port>(Vec(83, 275), module, Streams::ALGORITHM_INPUT)); | |||
// addInput(createInput<PJ3410Port>(Vec(119, 275), module, Streams::TIMBRE_INPUT)); | |||
// addInput(createInput<PJ3410Port>(Vec(11, 318), module, Streams::CARRIER_INPUT)); | |||
// addInput(createInput<PJ3410Port>(Vec(47, 318), module, Streams::MODULATOR_INPUT)); | |||
// addOutput(createOutput<PJ3410Port>(Vec(83, 318), module, Streams::MODULATOR_OUTPUT)); | |||
// addOutput(createOutput<PJ3410Port>(Vec(119, 318), module, Streams::AUX_OUTPUT)); | |||
// Streams *streams = dynamic_cast<Streams*>(module); | |||
// addChild(createValueLight<SmallModeLight>(Vec(21, 168), &streams->lights[0])); | |||
@@ -161,28 +161,28 @@ TidesWidget::TidesWidget() { | |||
addParam(createParam<LargeToggleSwitch>(Vec(19, 52), module, Tides::MODE_PARAM, -1.0, 1.0, 0.0)); | |||
addParam(createParam<LargeToggleSwitch>(Vec(19, 93), module, Tides::RANGE_PARAM, -1.0, 1.0, 0.0)); | |||
addParam(createParam<LargeGreenKnob>(Vec(79, 60), module, Tides::FREQUENCY_PARAM, -48.0, 48.0, 0.0)); | |||
addParam(createParam<SmallGreenKnob>(Vec(156, 66), module, Tides::FM_PARAM, -12.0, 12.0, 0.0)); | |||
addParam(createParam<SmallWhiteKnob>(Vec(13, 155), module, Tides::SHAPE_PARAM, -1.0, 1.0, 0.0)); | |||
addParam(createParam<SmallWhiteKnob>(Vec(85, 155), module, Tides::SLOPE_PARAM, -1.0, 1.0, 0.0)); | |||
addParam(createParam<SmallWhiteKnob>(Vec(156, 155), module, Tides::SMOOTHNESS_PARAM, -1.0, 1.0, 0.0)); | |||
addInput(createInput<InputPortPJ3410>(Vec(18, 216), module, Tides::SHAPE_INPUT)); | |||
addInput(createInput<InputPortPJ3410>(Vec(90, 216), module, Tides::SLOPE_INPUT)); | |||
addInput(createInput<InputPortPJ3410>(Vec(161, 216), module, Tides::SMOOTHNESS_INPUT)); | |||
addInput(createInput<InputPortPJ3410>(Vec(18, 271), module, Tides::TRIG_INPUT)); | |||
addInput(createInput<InputPortPJ3410>(Vec(54, 271), module, Tides::FREEZE_INPUT)); | |||
addInput(createInput<InputPortPJ3410>(Vec(90, 271), module, Tides::PITCH_INPUT)); | |||
addInput(createInput<InputPortPJ3410>(Vec(125, 271), module, Tides::FM_INPUT)); | |||
addInput(createInput<InputPortPJ3410>(Vec(161, 271), module, Tides::LEVEL_INPUT)); | |||
addInput(createInput<InputPortPJ3410>(Vec(18, 313), module, Tides::CLOCK_INPUT)); | |||
addOutput(createOutput<OutputPortPJ3410>(Vec(54, 313), module, Tides::HIGH_OUTPUT)); | |||
addOutput(createOutput<OutputPortPJ3410>(Vec(90, 313), module, Tides::LOW_OUTPUT)); | |||
addOutput(createOutput<OutputPortPJ3410>(Vec(125, 313), module, Tides::UNI_OUTPUT)); | |||
addOutput(createOutput<OutputPortPJ3410>(Vec(161, 313), module, Tides::BI_OUTPUT)); | |||
addParam(createParam<Rogan3PSGreen>(Vec(79, 60), module, Tides::FREQUENCY_PARAM, -48.0, 48.0, 0.0)); | |||
addParam(createParam<Rogan1PSGreen>(Vec(156, 66), module, Tides::FM_PARAM, -12.0, 12.0, 0.0)); | |||
addParam(createParam<Rogan1PSWhite>(Vec(13, 155), module, Tides::SHAPE_PARAM, -1.0, 1.0, 0.0)); | |||
addParam(createParam<Rogan1PSWhite>(Vec(85, 155), module, Tides::SLOPE_PARAM, -1.0, 1.0, 0.0)); | |||
addParam(createParam<Rogan1PSWhite>(Vec(156, 155), module, Tides::SMOOTHNESS_PARAM, -1.0, 1.0, 0.0)); | |||
addInput(createInput<PJ3410Port>(Vec(18, 216), module, Tides::SHAPE_INPUT)); | |||
addInput(createInput<PJ3410Port>(Vec(90, 216), module, Tides::SLOPE_INPUT)); | |||
addInput(createInput<PJ3410Port>(Vec(161, 216), module, Tides::SMOOTHNESS_INPUT)); | |||
addInput(createInput<PJ3410Port>(Vec(18, 271), module, Tides::TRIG_INPUT)); | |||
addInput(createInput<PJ3410Port>(Vec(54, 271), module, Tides::FREEZE_INPUT)); | |||
addInput(createInput<PJ3410Port>(Vec(90, 271), module, Tides::PITCH_INPUT)); | |||
addInput(createInput<PJ3410Port>(Vec(125, 271), module, Tides::FM_INPUT)); | |||
addInput(createInput<PJ3410Port>(Vec(161, 271), module, Tides::LEVEL_INPUT)); | |||
addInput(createInput<PJ3410Port>(Vec(18, 313), module, Tides::CLOCK_INPUT)); | |||
addOutput(createOutput<PJ3410Port>(Vec(54, 313), module, Tides::HIGH_OUTPUT)); | |||
addOutput(createOutput<PJ3410Port>(Vec(90, 313), module, Tides::LOW_OUTPUT)); | |||
addOutput(createOutput<PJ3410Port>(Vec(125, 313), module, Tides::UNI_OUTPUT)); | |||
addOutput(createOutput<PJ3410Port>(Vec(161, 313), module, Tides::BI_OUTPUT)); | |||
addChild(createValueLight<SmallLight<GreenRedPolarityLight>>(Vec(57, 62), &module->lights[0])); | |||
addChild(createValueLight<SmallLight<GreenRedPolarityLight>>(Vec(57, 83), &module->lights[1])); | |||
@@ -110,30 +110,30 @@ VeilsWidget::VeilsWidget() { | |||
addChild(createScrew<SilverScrew>(Vec(15, 365))); | |||
addChild(createScrew<SilverScrew>(Vec(150, 365))); | |||
addParam(createParam<SmallWhiteKnob>(Vec(8, 52), module, Veils::GAIN1_PARAM, 0.0, 1.0, 0.0)); | |||
addParam(createParam<SmallWhiteKnob>(Vec(8, 131), module, Veils::GAIN2_PARAM, 0.0, 1.0, 0.0)); | |||
addParam(createParam<SmallWhiteKnob>(Vec(8, 210), module, Veils::GAIN3_PARAM, 0.0, 1.0, 0.0)); | |||
addParam(createParam<SmallWhiteKnob>(Vec(8, 288), module, Veils::GAIN4_PARAM, 0.0, 1.0, 0.0)); | |||
addParam(createParam<TinyBlackKnob>(Vec(72, 56), module, Veils::RESPONSE1_PARAM, 0.0, 1.0, 1.0)); | |||
addParam(createParam<TinyBlackKnob>(Vec(72, 135), module, Veils::RESPONSE2_PARAM, 0.0, 1.0, 1.0)); | |||
addParam(createParam<TinyBlackKnob>(Vec(72, 214), module, Veils::RESPONSE3_PARAM, 0.0, 1.0, 1.0)); | |||
addParam(createParam<TinyBlackKnob>(Vec(72, 292), module, Veils::RESPONSE4_PARAM, 0.0, 1.0, 1.0)); | |||
addInput(createInput<InputPortPJ3410>(Vec(107, 38), module, Veils::IN1_INPUT)); | |||
addInput(createInput<InputPortPJ3410>(Vec(107, 117), module, Veils::IN2_INPUT)); | |||
addInput(createInput<InputPortPJ3410>(Vec(107, 195), module, Veils::IN3_INPUT)); | |||
addInput(createInput<InputPortPJ3410>(Vec(107, 274), module, Veils::IN4_INPUT)); | |||
addInput(createInput<InputPortPJ3410>(Vec(107, 77), module, Veils::CV1_INPUT)); | |||
addInput(createInput<InputPortPJ3410>(Vec(107, 156), module, Veils::CV2_INPUT)); | |||
addInput(createInput<InputPortPJ3410>(Vec(107, 235), module, Veils::CV3_INPUT)); | |||
addInput(createInput<InputPortPJ3410>(Vec(107, 313), module, Veils::CV4_INPUT)); | |||
addOutput(createOutput<OutputPortPJ3410>(Vec(141, 38), module, Veils::OUT1_OUTPUT)); | |||
addOutput(createOutput<OutputPortPJ3410>(Vec(141, 117), module, Veils::OUT2_OUTPUT)); | |||
addOutput(createOutput<OutputPortPJ3410>(Vec(141, 195), module, Veils::OUT3_OUTPUT)); | |||
addOutput(createOutput<OutputPortPJ3410>(Vec(141, 274), module, Veils::OUT4_OUTPUT)); | |||
addParam(createParam<Rogan1PSWhite>(Vec(8, 52), module, Veils::GAIN1_PARAM, 0.0, 1.0, 0.0)); | |||
addParam(createParam<Rogan1PSWhite>(Vec(8, 131), module, Veils::GAIN2_PARAM, 0.0, 1.0, 0.0)); | |||
addParam(createParam<Rogan1PSWhite>(Vec(8, 210), module, Veils::GAIN3_PARAM, 0.0, 1.0, 0.0)); | |||
addParam(createParam<Rogan1PSWhite>(Vec(8, 288), module, Veils::GAIN4_PARAM, 0.0, 1.0, 0.0)); | |||
addParam(createParam<Trimpot>(Vec(72, 56), module, Veils::RESPONSE1_PARAM, 0.0, 1.0, 1.0)); | |||
addParam(createParam<Trimpot>(Vec(72, 135), module, Veils::RESPONSE2_PARAM, 0.0, 1.0, 1.0)); | |||
addParam(createParam<Trimpot>(Vec(72, 214), module, Veils::RESPONSE3_PARAM, 0.0, 1.0, 1.0)); | |||
addParam(createParam<Trimpot>(Vec(72, 292), module, Veils::RESPONSE4_PARAM, 0.0, 1.0, 1.0)); | |||
addInput(createInput<PJ3410Port>(Vec(107, 38), module, Veils::IN1_INPUT)); | |||
addInput(createInput<PJ3410Port>(Vec(107, 117), module, Veils::IN2_INPUT)); | |||
addInput(createInput<PJ3410Port>(Vec(107, 195), module, Veils::IN3_INPUT)); | |||
addInput(createInput<PJ3410Port>(Vec(107, 274), module, Veils::IN4_INPUT)); | |||
addInput(createInput<PJ3410Port>(Vec(107, 77), module, Veils::CV1_INPUT)); | |||
addInput(createInput<PJ3410Port>(Vec(107, 156), module, Veils::CV2_INPUT)); | |||
addInput(createInput<PJ3410Port>(Vec(107, 235), module, Veils::CV3_INPUT)); | |||
addInput(createInput<PJ3410Port>(Vec(107, 313), module, Veils::CV4_INPUT)); | |||
addOutput(createOutput<PJ3410Port>(Vec(141, 38), module, Veils::OUT1_OUTPUT)); | |||
addOutput(createOutput<PJ3410Port>(Vec(141, 117), module, Veils::OUT2_OUTPUT)); | |||
addOutput(createOutput<PJ3410Port>(Vec(141, 195), module, Veils::OUT3_OUTPUT)); | |||
addOutput(createOutput<PJ3410Port>(Vec(141, 274), module, Veils::OUT4_OUTPUT)); | |||
addChild(createValueLight<MediumLight<GreenRedPolarityLight>>(Vec(150, 87), &module->lights[0])); | |||
addChild(createValueLight<MediumLight<GreenRedPolarityLight>>(Vec(150, 166), &module->lights[1])); | |||
@@ -93,22 +93,22 @@ WarpsWidget::WarpsWidget() { | |||
addChild(createScrew<SilverScrew>(Vec(15, 365))); | |||
addChild(createScrew<SilverScrew>(Vec(120, 365))); | |||
addParam(createParam<HugeGlowKnob>(Vec(30, 53), module, Warps::ALGORITHM_PARAM, 0.0, 8.0, 0.0)); | |||
addParam(createParam<Rogan6PSWhite>(Vec(30, 53), module, Warps::ALGORITHM_PARAM, 0.0, 8.0, 0.0)); | |||
addParam(createParam<SmallWhiteKnob>(Vec(95, 173), module, Warps::TIMBRE_PARAM, 0.0, 1.0, 0.5)); | |||
addParam(createParam<Rogan1PSWhite>(Vec(95, 173), module, Warps::TIMBRE_PARAM, 0.0, 1.0, 0.5)); | |||
addParam(createParam<MediumToggleSwitch>(Vec(17, 182), module, Warps::STATE_PARAM, 0.0, 3.0, 0.0)); | |||
addParam(createParam<TinyBlackKnob>(Vec(15, 214), module, Warps::LEVEL1_PARAM, 0.0, 1.0, 1.0)); | |||
addParam(createParam<TinyBlackKnob>(Vec(53, 214), module, Warps::LEVEL2_PARAM, 0.0, 1.0, 1.0)); | |||
addInput(createInput<InputPortPJ3410>(Vec(5, 270), module, Warps::LEVEL1_INPUT)); | |||
addInput(createInput<InputPortPJ3410>(Vec(41, 270), module, Warps::LEVEL2_INPUT)); | |||
addInput(createInput<InputPortPJ3410>(Vec(77, 270), module, Warps::ALGORITHM_INPUT)); | |||
addInput(createInput<InputPortPJ3410>(Vec(113, 270), module, Warps::TIMBRE_INPUT)); | |||
addInput(createInput<InputPortPJ3410>(Vec(5, 313), module, Warps::CARRIER_INPUT)); | |||
addInput(createInput<InputPortPJ3410>(Vec(41, 313), module, Warps::MODULATOR_INPUT)); | |||
addOutput(createOutput<OutputPortPJ3410>(Vec(77, 313), module, Warps::MODULATOR_OUTPUT)); | |||
addOutput(createOutput<OutputPortPJ3410>(Vec(113, 313), module, Warps::AUX_OUTPUT)); | |||
addParam(createParam<Trimpot>(Vec(15, 214), module, Warps::LEVEL1_PARAM, 0.0, 1.0, 1.0)); | |||
addParam(createParam<Trimpot>(Vec(54, 214), module, Warps::LEVEL2_PARAM, 0.0, 1.0, 1.0)); | |||
addInput(createInput<PJ3410Port>(Vec(5, 270), module, Warps::LEVEL1_INPUT)); | |||
addInput(createInput<PJ3410Port>(Vec(41, 270), module, Warps::LEVEL2_INPUT)); | |||
addInput(createInput<PJ3410Port>(Vec(77, 270), module, Warps::ALGORITHM_INPUT)); | |||
addInput(createInput<PJ3410Port>(Vec(113, 270), module, Warps::TIMBRE_INPUT)); | |||
addInput(createInput<PJ3410Port>(Vec(5, 313), module, Warps::CARRIER_INPUT)); | |||
addInput(createInput<PJ3410Port>(Vec(41, 313), module, Warps::MODULATOR_INPUT)); | |||
addOutput(createOutput<PJ3410Port>(Vec(77, 313), module, Warps::MODULATOR_OUTPUT)); | |||
addOutput(createOutput<PJ3410Port>(Vec(113, 313), module, Warps::AUX_OUTPUT)); | |||
addChild(createValueLight<SmallLight<GreenRedPolarityLight>>(Vec(20, 167), &module->lights[0])); | |||
} |