Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
psemiletov committed Sep 18, 2024
1 parent bb26434 commit 4cba628
Showing 1 changed file with 27 additions and 4 deletions.
31 changes: 27 additions & 4 deletions Source/PluginEditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -190,9 +190,9 @@ CFx::~CFx()
void CLed::paint(Graphics& g)
{
if (is_on)
g.fillAll(cl_on.withLightness(velocity));
g.fillAll (cl_on.withLightness(velocity));
else
g.fillAll(cl_off);
g.fillAll (cl_off);
}


Expand Down Expand Up @@ -433,8 +433,8 @@ CDrumCell::CDrumCell()
addAndMakeVisible (led);
led.setTopLeftPosition (xoffs, YFILLER);
led.setSize (16, 32);


addAndMakeVisible (bt_file_open);

bt_file_open.setColour (TextButton::ColourIds::buttonColourId, juce::Colour (180, 209, 220));
bt_file_open.setButtonText ("+");
Expand Down Expand Up @@ -1271,7 +1271,8 @@ CAudioProcessorEditor::CAudioProcessorEditor (CAudioProcessor &parent, juce::Aud
log_area.setMultiLine (true, true);
log_area.setReadOnly (true);
log_area.setTopLeftPosition (sl_global_analog_amount.getRight(), l_midimap_mode.getY());
log_area.setSize (170, 148);
//log_area.setSize (200, 148);
log_area.setSize (224, 148);


#endif
Expand Down Expand Up @@ -1458,6 +1459,20 @@ void CTimer::hiResTimerCallback()

if (! s)
continue;

#ifndef MULTICHANNEL
bool mute = *(uplink->audioProcessor.mutes[i]) > 0.5f;

if (mute)
{
uplink->drumcells[i].led.is_on = false;
uplink->drumcells[i].led.velocity = 0;

continue;
}


#endif

bool actv = s->active;
uplink->drumcells[i].led.is_on = actv;
Expand Down Expand Up @@ -1603,6 +1618,14 @@ void CAudioProcessorEditor::save_quick_kit()
return;
}

if (audioProcessor.drumkit->kit_type != KIT_TYPE_DRUMLABOOH)
{
log ("WRONG DRUMKIT TYPE, YOU CAN SAVE QUICK KITS ONLY\n");
return;
}



std::string kit_path;

#if !defined(_WIN32) || !defined(_WIN64)
Expand Down

0 comments on commit 4cba628

Please sign in to comment.