Пример #1
0
        /// <summary>
        /// Constructs a new instance.
        /// </summary>
        public Plugin()
            : base("VST.NET Delay Plugin",
                   new VstProductInfo("VST.NET Code Samples", "Jacobi Software © 2008-2020", 2000),
                   VstPluginCategory.RoomFx, VstPluginCapabilities.None, 0, 0x3A3A3A3A)
        {
            ParameterFactory = new PluginParameterFactory();

            AudioProcessor audioProcessor = GetInstance <AudioProcessor>();

            // add delay parameters to factory
            ParameterFactory.ParameterInfos.AddRange(audioProcessor.Delay.ParameterInfos);
        }
Пример #2
0
        /// <summary>
        /// Constructs a new instance.
        /// </summary>
        public FxTestPlugin()
            : base("VST.NET Delay Plugin",
                   new VstProductInfo("VST.NET Code Samples", "Jacobi Software (c) 2011", 1000),
                   VstPluginCategory.RoomFx, VstPluginCapabilities.None, 0, 0x3A3A3A3A)
        {
            _intfMgr         = new FxPluginInterfaceManager(this);
            ParameterFactory = new PluginParameterFactory();

            AudioProcessor audioProcessor = _intfMgr.GetInstance <AudioProcessor>();

            // add delay parameters to factory
            ParameterFactory.ParameterInfos.AddRange(audioProcessor.Delay.ParameterInfos);
        }
Пример #3
0
        protected override void ConfigureServices(IServiceCollection services)
        {
            var audioProcessor = new AudioProcessor(this);

            services.AddPluginComponent(audioProcessor);

            var persistence = new PluginPersistence(this);

            services.AddPluginComponent(persistence);

            var programs = new PluginPrograms(this);

            services.AddPluginComponent(programs);
        }