Beispiel #1
0
        /// <summary>
        /// Theme3 Constructor.
        /// Calls Theme Constructor. Initialize instruments and interface's elements according to the theme desired.
        /// </summary>
        public Theme4()
            : base()
        {
            SoundName = "loop_bubbles";

            InstrumentsTop[0] = new Instrument(InstrumentType.flute);
            InstrumentsTop[1] = new Instrument(InstrumentType.piano);
            InstrumentsBottom[0] = new Instrument(InstrumentType.bass);
            InstrumentsBottom[1] = new Instrument(InstrumentType.vibraphone);

            refreshSound();
        }
Beispiel #2
0
        /// <summary>
        /// Theme1 Constructor.
        /// Calls Theme Constructor. Initialize instruments and interface's elements according to the theme desired.
        /// </summary>
        public Theme1()
            : base()
        {
            SoundName = "loop_eveningWater";

            InstrumentsTop[0] = new Instrument(InstrumentType.piano);
            InstrumentsTop[1] = new Instrument(InstrumentType.flute);
            InstrumentsBottom[0] = new Instrument(InstrumentType.bass);
            InstrumentsBottom[1] = new Instrument(InstrumentType.contrebass);

            refreshSound();
        }
Beispiel #3
0
        /// <summary>
        /// Theme3 Constructor.
        /// Calls Theme Constructor. Initialize instruments and interface's elements according to the theme desired.
        /// </summary>
        public Theme3()
            : base()
        {
            SoundName = "loop_fire";

            InstrumentsTop[0] = new Instrument(InstrumentType.violon);
            InstrumentsTop[1] = new Instrument(InstrumentType.piano);
            InstrumentsBottom[0] = new Instrument(InstrumentType.contrebass);
            InstrumentsBottom[1] = new Instrument(InstrumentType.vibraphone);

            refreshSound();
        }
Beispiel #4
0
        /// <summary>
        /// Theme2 Constructor.
        /// Calls Theme Constructor. Initialize instruments and interface's elements according to the theme desired.
        /// </summary>
        public Theme2()
            : base()
        {
            SoundName = "loop_superbirds";

            InstrumentsTop[0] = new Instrument(InstrumentType.clarinette);
            InstrumentsTop[1] = new Instrument(InstrumentType.saxo);
            InstrumentsBottom[0] = new Instrument(InstrumentType.bass);
            InstrumentsBottom[1] = new Instrument(InstrumentType.vibraphone);

            refreshSound();
        }
Beispiel #5
0
 /// <summary>
 /// Stave Constructor.
 /// Initializes a new empty list of Notes, a Timer, the MaxPosition to 0 and the instrument
 /// </summary>
 /// <param name="instru">The instrument to be used</param>
 public Stave(Instrument instru)
 {
     MaxPosition = 0;
     Notes = new ObservableCollection<Note>();
     CurrentInstrument = instru;
     Timer = new DispatcherTimer();
     TimerMelody = new DispatcherTimer();
     IteratorNotes = 0;
     IteratorMelody = 0;
     PositionMelody = 0;
     PositionNote = 0;
 }
Beispiel #6
0
 /// <summary>
 /// Theme Constructor.
 /// Initialize instruments for each stave and a new Dictionary mapping a NoteBubble to its image.
 /// </summary>
 public Theme()
 {
     InstrumentsTop = new Instrument[2];
     InstrumentsBottom = new Instrument[2];
 }
Beispiel #7
0
 /// <summary>
 /// Plays the given note with the instrument.
 /// </summary>
 /// <param name="n">The note to play</param>
 public void PlayNote(Note n)
 {
     Instrument tmp = new Instrument(Name);
     Thread t = new Thread(tmp.ActionPlay);
     t.Start(n);
 }