Ejemplo n.º 1
0
 private void InitializeChannels()
 {
     pulseA     = new PulseChannel(r.PulseA, clockSpeed, sampleRate);
     pulseB     = new PulseChannel(r.PulseB, clockSpeed, sampleRate);
     triangle   = new TriangleChannel(r.Triangle, clockSpeed, sampleRate);
     noise      = new NoiseChannel(r.Noise, clockSpeed, sampleRate);
     modulation = new DeltaModulationChannel(r.Modulation, clockSpeed, sampleRate);
 }
Ejemplo n.º 2
0
            public override void Config(Channel ch)
            {
                TriangleChannel tch = ch as TriangleChannel;

                freq = tch.freq;
                amp  = tch.amp;
                step = tch.step;
            }