Beispiel #1
0
        protected override void PlayNote(Note note, int channel, TimeSpan time)
        {
            if (normalize)
            {
                note.Volume = Math.Min(Math.Max(note.Volume * normalizeScalar, 0), 1);
            }

            midi.PlayNote(channel, note, elapsed + note.Length);
        }
Beispiel #2
0
        protected override void PlayNote(Note note, int channel, TimeSpan time)
        {
            if (!Muted && channel == 0)
            {
                //Console.WriteLine(lastTime + ": " + note.Type + (note.Sharp ? "#" : "") + "[" + note.Octave + "] " + note.Length);
            }

            if (normalize)
            {
                note.Volume = Math.Min(Math.Max(note.Volume * normalizeScalar, 0), 1);
            }

            midi.PlayNote(channel, note, elapsed + note.Length);
        }