Пример #1
0
        public MelodyPlayer(AudioEngine audioEngine)
        {
            this.audioEngine = audioEngine;
            model            = App.Instance.Model;

            soundBanks = new LinkedList <SoundBank>();

            soundBanks.Add(new SoundBank(audioEngine, "Content/Eva Sound.xsb"));
            soundBanks.Add(new SoundBank(audioEngine, "Content/Simpleb Sound.xsb"));
            soundBanks.Add(new SoundBank(audioEngine, "Content/Spaceb Sound.xsb"));
            soundBanks.Add(new SoundBank(audioEngine, "Content/Weeping Sound.xsb"));

            scaleDecider = new ScaleDecider(Note.C, ScaleDecider.ScaleType.Major);

            currentNotePosition  = (int)ScaleDegree.Tonic1;
            previousNotePosition = (int)ScaleDegree.Tonic1;
            previousCues         = new Cue[3];
            random = new Random();
        }
Пример #2
0
        public MelodyPlayer(AudioEngine audioEngine)
        {
            this.audioEngine = audioEngine;
            model = App.Instance.Model;

            soundBanks = new LinkedList<SoundBank>();

            soundBanks.Add(new SoundBank(audioEngine, "Content/Eva Sound.xsb"));
            soundBanks.Add(new SoundBank(audioEngine, "Content/Simpleb Sound.xsb"));
            soundBanks.Add(new SoundBank(audioEngine, "Content/Spaceb Sound.xsb"));
            soundBanks.Add(new SoundBank(audioEngine, "Content/Weeping Sound.xsb"));

            scaleDecider = new ScaleDecider(Note.C, ScaleDecider.ScaleType.Major);

            currentNotePosition = (int)ScaleDegree.Tonic1;
            previousNotePosition = (int)ScaleDegree.Tonic1;
            previousCues = new Cue[3];
            random = new Random();
        }