void FeedbackSection::paintBackground(Graphics& g) { static Font roboto_reg(Typeface::createSystemTypefaceFor(BinaryData::RobotoRegular_ttf, BinaryData::RobotoRegular_ttfSize)); SynthSection::paintBackground(g); g.setColour(Colour(0xffbbbbbb)); g.setFont(roboto_reg.withPointHeight(10.0f)); drawTextForComponent(g, TRANS("TRANSPOSE"), transpose_); drawTextForComponent(g, TRANS("TUNE"), tune_); drawTextForComponent(g, TRANS("AMOUNT"), amount_); drawTextForComponent(g, TRANS("SATURATION"), saturation_); }
void DelaySection::paintBackground(Graphics& g) { SynthSection::paintBackground(g); g.setColour(Colour(0xffbbbbbb)); g.setFont(Fonts::getInstance()->proportional_regular().withPointHeight(10.0f)); drawTextForComponent(g, TRANS("FEEDB"), feedback_); drawTextForComponent(g, TRANS("WET"), dry_wet_); g.drawText(TRANS("FREQUENCY"), frequency_->getBounds().getX() - 5, frequency_->getBounds().getY() + TEXT_HEIGHT + 6, frequency_->getBounds().getWidth() + TEXT_HEIGHT + 10, 10, Justification::centred, false); }
void DelaySection::paintBackground(Graphics& g) { static Font roboto_reg(Typeface::createSystemTypefaceFor(BinaryData::RobotoRegular_ttf, BinaryData::RobotoRegular_ttfSize)); SynthSection::paintBackground(g); g.setColour(Colour(0xffbbbbbb)); g.setFont(roboto_reg.withPointHeight(10.0f)); drawTextForComponent(g, TRANS("FEEDB"), feedback_); drawTextForComponent(g, TRANS("WET"), dry_wet_); g.drawText(TRANS("FREQUENCY"), frequency_->getBounds().getX(), frequency_->getBounds().getY() + TEXT_HEIGHT + 6, frequency_->getBounds().getWidth() + TEXT_HEIGHT, 10, Justification::centred, false); }
void NoiseSection::paintBackground(Graphics& g) { static const DropShadow component_shadow(Colour(0x88000000), 2, Point<int>(0, 1)); SynthSection::paintBackground(g); g.setColour(Colour(0xffbbbbbb)); g.setFont(Fonts::getInstance()->proportional_regular().withPointHeight(10.0f)); drawTextForComponent(g, TRANS("AMP"), volume_); }
void DynamicSection::paintBackground(Graphics& g) { SynthSection::paintContainer(g); g.setColour(Colour(0xffbbbbbb)); g.setFont(Fonts::getInstance()->proportional_regular().withPointHeight(10.0f)); drawTextForComponent(g, TRANS("PORTA"), portamento_); drawTextForComponent(g, TRANS("PORTA TYPE"), portamento_type_, 4 + (KNOB_WIDTH - TEXT_HEIGHT) / 3); drawTextForComponent(g, TRANS("LEGATO"), legato_, 4 + (KNOB_WIDTH - TEXT_HEIGHT) / 3); static const int ROOM = 20; g.setFont(Fonts::getInstance()->proportional_regular().withPointHeight(8.0f)); int type_y = portamento_type_->getY() - 12; g.drawText(TRANS("OFF"), portamento_type_->getX() - ROOM, type_y, 2 * ROOM, 10, Justification::centred, false); g.drawText(TRANS("AUTO"), portamento_type_->getX() - ROOM + portamento_type_->getWidth() / 2, type_y, 2 * ROOM, 10, Justification::centred, false); g.drawText(TRANS("ON"), portamento_type_->getRight() - ROOM, type_y, 2 * ROOM, 10, Justification::centred, false); }
void StutterSection::paintBackground(Graphics& g) { SynthSection::paintBackground(g); g.setColour(Colour(0xffbbbbbb)); g.setFont(Fonts::instance()->proportional_regular().withPointHeight(10.0f)); g.drawText(TRANS("FREQUENCY"), stutter_frequency_->getBounds().getX() - 5, stutter_frequency_->getBounds().getY() + TEXT_HEIGHT + 6, stutter_frequency_->getBounds().getWidth() + TEXT_HEIGHT + 10, 10, Justification::centred, false); g.drawText(TRANS("RESAMPLE"), resample_frequency_->getBounds().getX() - 5, resample_frequency_->getBounds().getY() + TEXT_HEIGHT + 6, resample_frequency_->getBounds().getWidth() + TEXT_HEIGHT + 10, 10, Justification::centred, false); drawTextForComponent(g, TRANS("SOFTNESS"), stutter_softness_); }
void OscillatorSection::paintBackground(Graphics& g) { static const float extra_knob_padding = 4.0f; static const DropShadow component_shadow(Colour(0x99000000), 3, Point<int>(0, 1)); SynthSection::paintBackground(g); g.setColour(Colour(0xff212121)); g.fillEllipse(transpose_1_->getBounds().toFloat().expanded(extra_knob_padding)); g.fillEllipse(tune_1_->getBounds().toFloat().expanded(extra_knob_padding)); g.fillEllipse(transpose_2_->getBounds().toFloat().expanded(extra_knob_padding)); g.fillEllipse(tune_2_->getBounds().toFloat().expanded(extra_knob_padding)); g.setColour(Colour(0xff303030)); g.fillRect(0, tune_1_->getBottom() + 2, getWidth(), 5); g.setColour(Colour(0xff4fc3f7)); g.strokePath(top_left_cross_path_, PathStrokeType(1.0f)); g.setColour(Colour(0xff4fc3f7)); g.strokePath(top_right_cross_path_, PathStrokeType(1.0f)); g.setColour(Colour(0xff4fc3f7)); g.strokePath(bottom_left_cross_path_, PathStrokeType(1.0f)); g.setColour(Colour(0xff4fc3f7)); g.strokePath(bottom_right_cross_path_, PathStrokeType(1.0f)); g.setColour(Colour(0xffbbbbbb)); g.setFont(Fonts::getInstance()->proportional_regular().withPointHeight(10.0f)); drawTextForComponent(g, TRANS("MOD"), cross_modulation_); drawTextForComponent(g, TRANS("TRANS"), transpose_1_); drawTextForComponent(g, TRANS("TRANS"), transpose_2_); drawTextForComponent(g, TRANS("TUNE"), tune_1_); drawTextForComponent(g, TRANS("TUNE"), tune_2_); drawTextForComponent(g, TRANS("UNISON"), unison_detune_1_); drawTextForComponent(g, TRANS("UNISON"), unison_detune_2_); component_shadow.drawForRectangle(g, wave_viewer_1_->getBounds()); component_shadow.drawForRectangle(g, wave_viewer_2_->getBounds()); g.setColour(Colour(0xff424242)); paintKnobShadows(g); }