- 12-pad drum sampler with 4x3 grid (expandable by 4) - Velocity layers with round-robin (Salamander-style filename parsing) - Rhythm Engine-style GUI: pad grid (left), sample editor (right top), FX panel (right bottom), master panel (bottom) - Waveform thumbnails on pads + large waveform in sample editor - ADSR envelope, pitch, pan per pad - Drag & drop sample/folder loading - Kit save/load (.drumkit XML presets) - Load Folder with smart name matching (kick, snare, hihat, etc.) - Choke groups, one-shot/polyphonic mode - Dark modern LookAndFeel with neon accent colors - Built with JUCE framework, CMake, MSVC 2022 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
30 sor
890 B
C++
30 sor
890 B
C++
#pragma once
|
|
#include <JuceHeader.h>
|
|
#include "VuMeter.h"
|
|
|
|
class MasterPanel : public juce::Component
|
|
{
|
|
public:
|
|
MasterPanel();
|
|
|
|
void paint (juce::Graphics& g) override;
|
|
void resized() override;
|
|
|
|
float getMasterVolume() const { return (float) volumeSlider.getValue(); }
|
|
float getMasterTune() const { return (float) tuneSlider.getValue(); }
|
|
float getMasterPan() const { return (float) panSlider.getValue(); }
|
|
|
|
VuMeter& getVuMeter() { return vuMeter; }
|
|
|
|
private:
|
|
juce::Slider volumeSlider, tuneSlider, panSlider;
|
|
juce::Label volumeLabel, tuneLabel, panLabel;
|
|
juce::Label masterTitle { {}, "MASTER" };
|
|
VuMeter vuMeter;
|
|
|
|
void setupKnob (juce::Slider& s, juce::Label& l, const juce::String& name,
|
|
double min, double max, double val, double step = 0.01);
|
|
|
|
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (MasterPanel)
|
|
};
|