Initial release
This commit is contained in:
@@ -0,0 +1,61 @@
|
||||
///------------------------------------------------------------------------
|
||||
// Project : VST SDK
|
||||
//
|
||||
// Category : Examples
|
||||
// Filename : public.sdk/samples/vst/panner/include/plugcontroller.h
|
||||
// Created by : Steinberg, 02/2020
|
||||
// Description : Panner Example for VST 3
|
||||
//
|
||||
//-----------------------------------------------------------------------------
|
||||
// This file is part of a Steinberg SDK. It is subject to the license terms
|
||||
// in the LICENSE file found in the top-level directory of this distribution
|
||||
// and at www.steinberg.net/sdklicenses.
|
||||
// No part of the SDK, including this file, may be copied, modified, propagated,
|
||||
// or distributed except according to the terms contained in the LICENSE file.
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "vstgui/plugin-bindings/vst3editor.h"
|
||||
#include "public.sdk/source/vst/vsteditcontroller.h"
|
||||
#include "pluginterfaces/vst/ivstparameterfunctionname.h"
|
||||
|
||||
namespace Steinberg {
|
||||
namespace Panner {
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
class PlugController : public Vst::EditController,
|
||||
public VSTGUI::VST3EditorDelegate,
|
||||
public Vst::IParameterFunctionName
|
||||
{
|
||||
public:
|
||||
//------------------------------------------------------------------------
|
||||
// create function required for plug-in factory,
|
||||
// it will be called to create new instances of this controller
|
||||
//------------------------------------------------------------------------
|
||||
static FUnknown* createInstance (void*)
|
||||
{
|
||||
return (Vst::IEditController*)new PlugController ();
|
||||
}
|
||||
|
||||
//---from IPluginBase--------
|
||||
tresult PLUGIN_API initialize (FUnknown* context) SMTG_OVERRIDE;
|
||||
|
||||
//---from EditController-----
|
||||
IPlugView* PLUGIN_API createView (const char* name) SMTG_OVERRIDE;
|
||||
tresult PLUGIN_API setComponentState (IBStream* state) SMTG_OVERRIDE;
|
||||
|
||||
//---from IParameterFunctionName----
|
||||
tresult PLUGIN_API getParameterIDFromFunctionName (Vst::UnitID unitID, FIDString functionName,
|
||||
Vst::ParamID& paramID) override;
|
||||
|
||||
OBJ_METHODS (PlugController, Vst::EditController)
|
||||
DEFINE_INTERFACES
|
||||
DEF_INTERFACE (Vst::IParameterFunctionName)
|
||||
END_DEFINE_INTERFACES (Vst::EditController)
|
||||
DELEGATE_REFCOUNT (Vst::EditController)
|
||||
};
|
||||
|
||||
//------------------------------------------------------------------------
|
||||
} // namespace Panner
|
||||
} // namespace Steinberg
|
||||
@@ -0,0 +1,38 @@
|
||||
//------------------------------------------------------------------------
|
||||
// Project : VST SDK
|
||||
//
|
||||
// Category : Examples
|
||||
// Filename : public.sdk/samples/vst/panner/include/plugids.h
|
||||
// Created by : Steinberg, 02/2020
|
||||
// Description : Panner Example for VST 3
|
||||
//
|
||||
//-----------------------------------------------------------------------------
|
||||
// This file is part of a Steinberg SDK. It is subject to the license terms
|
||||
// in the LICENSE file found in the top-level directory of this distribution
|
||||
// and at www.steinberg.net/sdklicenses.
|
||||
// No part of the SDK, including this file, may be copied, modified, propagated,
|
||||
// or distributed except according to the terms contained in the LICENSE file.
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
#pragma once
|
||||
|
||||
namespace Steinberg {
|
||||
namespace Panner {
|
||||
|
||||
// HERE are defined the parameter Ids which are exported to the host
|
||||
enum PannerParams : Vst::ParamID
|
||||
{
|
||||
kBypassId = 100,
|
||||
|
||||
kParamPanId = 102,
|
||||
};
|
||||
|
||||
|
||||
// HERE you have to define new unique class ids: for processor and for controller
|
||||
// you can use GUID creator tools like https://www.guidgenerator.com/
|
||||
static const FUID MyProcessorUID (0xA2EAF7DB, 0x320640F4, 0x8EDE380D, 0xDF89562C);
|
||||
static const FUID MyControllerUID (0x239F80C2, 0x4F1442C4, 0x8B58AE6E, 0x7C8644EB);
|
||||
|
||||
//------------------------------------------------------------------------
|
||||
} // namespace Panner
|
||||
} // namespace Steinberg
|
||||
@@ -0,0 +1,65 @@
|
||||
//------------------------------------------------------------------------
|
||||
// Project : VST SDK
|
||||
//
|
||||
// Category : Examples
|
||||
// Filename : public.sdk/samples/vst/panner/include/plugprocessor.h
|
||||
// Created by : Steinberg, 02/2020
|
||||
// Description : Panner Example for VST 3
|
||||
//
|
||||
//-----------------------------------------------------------------------------
|
||||
// This file is part of a Steinberg SDK. It is subject to the license terms
|
||||
// in the LICENSE file found in the top-level directory of this distribution
|
||||
// and at www.steinberg.net/sdklicenses.
|
||||
// No part of the SDK, including this file, may be copied, modified, propagated,
|
||||
// or distributed except according to the terms contained in the LICENSE file.
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "public.sdk/source/vst/vstaudioeffect.h"
|
||||
|
||||
namespace Steinberg {
|
||||
namespace Panner {
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
class PlugProcessor : public Vst::AudioEffect
|
||||
{
|
||||
public:
|
||||
PlugProcessor ();
|
||||
|
||||
tresult PLUGIN_API initialize (FUnknown* context) SMTG_OVERRIDE;
|
||||
tresult PLUGIN_API setBusArrangements (Vst::SpeakerArrangement* inputs, int32 numIns,
|
||||
Vst::SpeakerArrangement* outputs,
|
||||
int32 numOuts) SMTG_OVERRIDE;
|
||||
|
||||
tresult PLUGIN_API canProcessSampleSize (int32 symbolicSampleSize) SMTG_OVERRIDE;
|
||||
tresult PLUGIN_API setupProcessing (Vst::ProcessSetup& setup) SMTG_OVERRIDE;
|
||||
tresult PLUGIN_API setActive (TBool state) SMTG_OVERRIDE;
|
||||
tresult PLUGIN_API process (Vst::ProcessData& data) SMTG_OVERRIDE;
|
||||
|
||||
//------------------------------------------------------------------------
|
||||
tresult PLUGIN_API setState (IBStream* state) SMTG_OVERRIDE;
|
||||
tresult PLUGIN_API getState (IBStream* state) SMTG_OVERRIDE;
|
||||
|
||||
static FUnknown* createInstance (void*) { return (Vst::IAudioProcessor*)new PlugProcessor (); }
|
||||
|
||||
enum
|
||||
{
|
||||
kPanLawEqualPower = 0,
|
||||
};
|
||||
|
||||
protected:
|
||||
void getStereoPanCoef (int32 panType, float pan, float& left, float& right) const;
|
||||
|
||||
template <typename SampleType>
|
||||
tresult processAudio (Vst::ProcessData& data);
|
||||
tresult (PlugProcessor::*processAudioPtr) (Vst::ProcessData& data);
|
||||
|
||||
Vst::ParamValue mPanValue = 0;
|
||||
|
||||
bool mBypass = false;
|
||||
};
|
||||
|
||||
//------------------------------------------------------------------------
|
||||
} // namespace Panner
|
||||
} // namespace Steinberg
|
||||
@@ -0,0 +1,37 @@
|
||||
//------------------------------------------------------------------------
|
||||
// Project : VST SDK
|
||||
//
|
||||
// Category : Examples
|
||||
// Filename : public.sdk/samples/vst/panner/include/version.h
|
||||
// Created by : Steinberg, 02/2020
|
||||
// Description : Panner Example for VST 3
|
||||
//
|
||||
//-----------------------------------------------------------------------------
|
||||
// This file is part of a Steinberg SDK. It is subject to the license terms
|
||||
// in the LICENSE file found in the top-level directory of this distribution
|
||||
// and at www.steinberg.net/sdklicenses.
|
||||
// No part of the SDK, including this file, may be copied, modified, propagated,
|
||||
// or distributed except according to the terms contained in the LICENSE file.
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "pluginterfaces/base/fplatform.h"
|
||||
|
||||
// Plain project version file generated by cmake
|
||||
#include "projectversion.h"
|
||||
|
||||
// HERE you have to define your plug-in, company name, email and web
|
||||
#define stringPluginName "Panner"
|
||||
|
||||
#define stringOriginalFilename "Panner.vst3"
|
||||
#if SMTG_PLATFORM_64
|
||||
#define stringFileDescription stringPluginName" VST3-SDK (64Bit)"
|
||||
#else
|
||||
#define stringFileDescription stringPluginName" VST3-SDK"
|
||||
#endif
|
||||
#define stringCompanyWeb "http://www.steinberg.net"
|
||||
#define stringCompanyEmail "mailto:info@steinberg.de"
|
||||
#define stringCompanyName "Steinberg Media Technologies"
|
||||
#define stringLegalCopyright "� 2024 Steinberg Media Technologies"
|
||||
#define stringLegalTrademarks "VST is a trademark of Steinberg Media Technologies GmbH"
|
||||
Reference in New Issue
Block a user