VST SDK / C++ Getting Started Ep1 | Audio Buffers and making a Sine oscillator
Автор: 13Sounds
Загружено: 2025-07-25
Просмотров: 320
Описание:
An intro to getting a basic plugin with audio pass through, and a sine oscillator.
A few notes
Search for guide to getting the project creator set up on GitHub:
"VST 3 Project Generator - VST 3 Developer Portal"
I'm using the JUCE VST host, included in the JUCE package. You need to build it, but the VS file is in the SDK. To add this, click the arrow next to run and debug, go to the debugging part, and browse in 'command' for the pluginhost .exe
I iterate through the buses, but I make two oscillators as I know there will only be one input bus and one output bus (due to the in out setup shown). If you want your plugin to do this dynamically then work you may need to allocate a maximum possible number, or allocate at runtime (before processing, not in process method). I could have set NumBuses and numChans initially, I didn't technically need to check. But could fill the rest with zeros.
I haven't handled silence flags here, we will get onto that.
If you don't iterate like me, make sure you still have checks to only access a buffer pointer if it exists.
Sine osc is based on the form y = sin(2 pi f t ). CurrentTime * mFreqHz is our ft.
In the heat of the moment I couldn't add M_PI. Use the full Pi define or find it online for your oscillator for higher precision
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: