Juce framework

From erikstmartin/dotfiles · View interactive version

Juce framework is an AI agent skill from the GitHub repository erikstmartin/dotfiles. Use for JUCE audio apps/plugins: AudioProcessor lifecycle, VST3/AU targets, parameter systems, and thread separation. Requires audio-engineering-principles. Not for game-audio middleware or non-JUCE frameworks.

How to use this skill

Skill file

Requires: audio-engineering-principles

May use: dsp-algorithms, audio-systems

Purpose

Builds production-quality JUCE-based software: standalone apps, plugin targets (VST3/AU), shared DSP cores, parameter systems, UI wiring, and host/device interoperability.

This skill covers both:


Core Areas


Rules


AudioProcessor Skeleton Example

class MyProcessor : public juce::AudioProcessor {
    void prepareToPlay(double sampleRate, int samplesPerBlock) override {
        // Preallocate here — NO allocation in processBlock
        filter.setLowpass(1000.0f, 0.707f, (float)sampleRate);
    }

    void processBlock(juce::AudioBuffer<float>& buffer, juce::MidiBuffer&) override {
        juce::ScopedNoDenormals noDenormals;
        for (int ch = 0; ch < buffer.getNumChannels(); ++ch) {
            auto* data = buffer.getWritePointer(ch);
            for (int i = 0; i < buffer.getNumSamples(); ++i)
                data[i] = filter.process(data[i]);
        }
    }
};

Plugin Considerations

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.