Download Source/Plugin/PluginBridgeProcessor.h from RAM2118/pluginbridge: direct link, hf CLI and curl.
- Browser
- Download file 2.3 kB
-
https://huggingface.co/RAM2118/pluginbridge/resolve/1dd0405171bf6efd5a8dfd67bc5b5d3a24dc7aee/Source/Plugin/PluginBridgeProcessor.h
- Command line
-
hf download hf://RAM2118/pluginbridge@1dd0405171bf6efd5a8dfd67bc5b5d3a24dc7aee/Source/Plugin/PluginBridgeProcessor.h
-
curl -L -o PluginBridgeProcessor.h https://huggingface.co/RAM2118/pluginbridge/resolve/1dd0405171bf6efd5a8dfd67bc5b5d3a24dc7aee/Source/Plugin/PluginBridgeProcessor.h
2.3 kB
| class PluginBridgeProcessor : public juce::AudioProcessor | |
| { | |
| public: | |
| PluginBridgeProcessor(); | |
| ~PluginBridgeProcessor() override; | |
| void prepareToPlay(double sampleRate, int samplesPerBlock) override; | |
| void releaseResources() override; | |
| void processBlock(juce::AudioBuffer<float>&, juce::MidiBuffer&) override; | |
| juce::AudioProcessorEditor* createEditor() override; | |
| bool hasEditor() const override { return true; } | |
| const juce::String getName() const override { return "PluginBridge"; } | |
| bool acceptsMidi() const override { return true; } | |
| bool producesMidi() const override { return true; } | |
| double getTailLengthSeconds() const override { return 0.0; } | |
| int getNumPrograms() override { return 1; } | |
| int getCurrentProgram() override { return 0; } | |
| void setCurrentProgram(int) override {} | |
| const juce::String getProgramName(int) override { return {}; } | |
| void changeProgramName(int, const juce::String&) override {} | |
| void getStateInformation(juce::MemoryBlock& destData) override; | |
| void setStateInformation(const void* data, int sizeInBytes) override; | |
| bool isMcpServerRunning() const; | |
| int getMcpServerPort() const; | |
| HelperConnection& getHelperConnection() { return helper; } | |
| void loadPlugin(const juce::String& pluginPath); | |
| void unloadPlugin(); | |
| void showPluginGui(); | |
| void hidePluginGui(); | |
| bool isPluginLoaded() const { return pluginLoaded; } | |
| juce::String getLoadedPluginName() const { return pluginName; } | |
| int getLoadedPluginParamCount() const { return pluginParamCount; } | |
| HelperConnection::State getConnectionState() const { return helper.getState(); } | |
| juce::String getLastPluginPath() const { return pluginPath; } | |
| juce::Array<juce::File> getInstalledPluginFiles() const; | |
| private: | |
| HelperConnection helper; | |
| McpServer mcpServer; | |
| bool pluginLoaded = false; | |
| juce::String pluginName; | |
| juce::String pluginPath; | |
| int pluginParamCount = 0; | |
| double currentSampleRate = 44100.0; | |
| int currentBlockSize = 512; | |
| JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(PluginBridgeProcessor) | |
| }; | |