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
674 B
C++
25 sor
674 B
C++
#pragma once
|
|
#include <JuceHeader.h>
|
|
#include "LookAndFeel.h"
|
|
|
|
class ScatterPanel : public juce::Component
|
|
{
|
|
public:
|
|
ScatterPanel();
|
|
void resized() override;
|
|
void paint (juce::Graphics& g) override;
|
|
|
|
juce::Slider posScatterKnob, sizeScatterKnob, pitchScatterKnob, panScatterKnob;
|
|
juce::ComboBox directionBox;
|
|
juce::ToggleButton freezeButton;
|
|
|
|
private:
|
|
juce::Label posScatLabel, sizeScatLabel, pitchScatLabel, panScatLabel;
|
|
juce::Label dirLabel, freezeLabel;
|
|
juce::Label titleLabel;
|
|
|
|
void setupKnob (juce::Slider& knob, juce::Label& label, const juce::String& name);
|
|
|
|
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (ScatterPanel)
|
|
};
|