コード例 #1
0
        public PluginController() : base(
                "Synth.NET",
                new VstProductInfo("Test", " ", 1),
                VstPluginCategory.Synth,
                VstPluginCapabilities.None,
                0, 1)
        {
            MidiListener   = new MidiListener();
            AudioProcessor = new AudioProcessor(this);
            PluginUI.Instance.PluginController = this;

            ParametersManager.SetParameters(AudioProcessor.CreateParameters());

            ParametersManager.SetPrograms(new Dictionary <string, string>
            {
                { "Sine", Properties.Resources.Sine },
                { "Wooble", Properties.Resources.Wooble },
                { "Whistle", Properties.Resources.Whistle },
                { "Synth", Properties.Resources.Synth1 },
                { "BassLong", Properties.Resources.Bass_Long },
                { "BassShort", Properties.Resources.Bass_Short },
                { "Siren", Properties.Resources.Siren },
                { "8BitSeq", Properties.Resources._8bitMadness },
                { "WobbleSeq", Properties.Resources.WoobleMad }
            }.Select(x => ParametersManager.CreateProgramFromSerializedParameters(x.Key, x.Value)));
        }
コード例 #2
0
ファイル: PluginController.cs プロジェクト: walney/Syntage
        public PluginController() : base(
                "Syntage",
                new VstProductInfo("Study Synth", "lis355", 1000),
                VstPluginCategory.Synth,
                VstPluginCapabilities.None,
                0,
                new FourCharacterCode("SNTG").ToInt32())
        {
            Log.Print("Initializing");

            MidiListener   = new MidiListener();
            AudioProcessor = new AudioProcessor(this);
            PluginUI.Instance.PluginController = this;

            ParametersManager.SetParameters(AudioProcessor.CreateParameters());

            ParametersManager.SetPrograms(new Dictionary <string, string>
            {
                { "Sine", Properties.Resources.Sine },
                { "Synt1", Properties.Resources.Synt1 },
                { "Synt2", Properties.Resources.Synt2 },
                { "Synt3", Properties.Resources.Synt3 },
                { "Butterfly", Properties.Resources.Butterfly },
                { "Telephone", Properties.Resources.Telephone },
                { "Elastic", Properties.Resources.Elastic },
                { "FineFeedback", Properties.Resources.FineFeedback }
            }.Select(x => ParametersManager.CreateProgramFromSerializedParameters(x.Key, x.Value)));
        }