8-voice polyphonic granular synth (VST3/AU/LV2) with: - 128 grain pool per voice, Hann windowing, linear interpolation - Root note selector, sample rate correction, sustain pedal (CC64) - Scatter controls, direction modes (Fwd/Rev/PingPong), freeze - ADSR envelope, global filter (LP/HP/BP), reverb - Waveform display with grain visualization - Drag & drop sample loading, full state save/restore - CI/CD for Windows/macOS/Linux Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
25 sor
720 B
C++
25 sor
720 B
C++
#pragma once
|
|
#include <JuceHeader.h>
|
|
#include "LookAndFeel.h"
|
|
|
|
class GrainControlPanel : public juce::Component
|
|
{
|
|
public:
|
|
GrainControlPanel();
|
|
void resized() override;
|
|
void paint (juce::Graphics& g) override;
|
|
|
|
juce::Slider positionKnob, sizeKnob, densityKnob, pitchKnob, panKnob;
|
|
juce::ComboBox rootNoteBox;
|
|
|
|
private:
|
|
juce::Label posLabel, sizeLabel, densityLabel, pitchLabel, panLabel;
|
|
juce::Label rootNoteLabel;
|
|
juce::Label titleLabel;
|
|
|
|
void setupKnob (juce::Slider& knob, juce::Label& label, const juce::String& name,
|
|
double min, double max, double def, const juce::String& suffix = "");
|
|
|
|
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (GrainControlPanel)
|
|
};
|