private Source GenerateSource(SourceDescriptor descriptor)
 {
     if (descriptor.WaveNumber == AdditiveKit.WaveNumber)
     {
         return(GenerateAdditiveSource(
                    descriptor.WaveformTemplateName,
                    descriptor.HarmonicLevelTemplateName,
                    descriptor.HarmonicEnvelopeTemplateName,
                    descriptor.FormantFilterTemplateName));
     }
     else
     {
         return(GeneratePCMSource(descriptor.WaveNumber));
     }
 }
Beispiel #2
0
        public SinglePatchDescriptor()
        {
            Name    = "NewSound";
            Sources = new List <SourceDescriptor>();

            SourceDescriptor s1d = new SourceDescriptor();

            s1d.HarmonicLevelTemplateName    = "Saw soft";
            s1d.HarmonicEnvelopeTemplateName = "E-Piano";
            Sources.Add(s1d);

            SourceDescriptor s2d = new SourceDescriptor();

            s1d.WaveNumber = 411;  // "Syn Saw1 Cyc"
            s1d.FormantFilterTemplateName = "Init";
            Sources.Add(s2d);
        }