Exemplo n.º 1
0
 public SequenceSingForm()
 {
     Musicality.Initialise();
     InitializeComponent();
     comboBoxNote.SelectedItem   = "C";
     comboBoxOctave.SelectedItem = "3";
 }
Exemplo n.º 2
0
 static void Main()
 {
     Musicality.Initialise();
     Application.EnableVisualStyles();
     Application.SetCompatibleTextRenderingDefault(false);
     Application.Run(new NotesTranscribeForm());
 }
Exemplo n.º 3
0
 private void secondTimer_Tick(object sender, EventArgs e)
 {
     Musicality.Tick();
     if (!Musicality.IsPlaying)
     {
         notePlayTimer.Stop();
     }
 }
Exemplo n.º 4
0
 private void buttonAgain_Click(object sender, EventArgs e)
 {
     if (!Musicality.IsPlaying)
     {
         Musicality.ReplayStartNotes();
         notePlayTimer.Start();
     }
 }
Exemplo n.º 5
0
 public IntervalSingForm()
 {
     Musicality.Initialise();
     InitializeComponent();
     comboBoxNote.SelectedItem     = "C";
     comboBoxOctave.SelectedItem   = "3";
     comboBoxVariant.SelectedIndex = 0;
 }
Exemplo n.º 6
0
 private void buttonHearRange_Click(object sender, EventArgs e)
 {
     if (!Musicality.IsPlaying)
     {
         int lowNote = comboBoxNote.SelectedIndex + comboBoxOctave.SelectedIndex * 12 + 36;
         Musicality.PlayNotes(lowNote, lowNote + 4, lowNote + 7, lowNote + 12);
         notePlayTimer.Start();
     }
 }
Exemplo n.º 7
0
 private void buttonAnswer_Click(object sender, EventArgs e)
 {
     if (!Musicality.IsPlaying)
     {
         Musicality.PlaySequenceSingTarget();
         buttonGo.Enabled = true;
         notePlayTimer.Start();
     }
 }
Exemplo n.º 8
0
 private void buttonAnswer_Click(object sender, EventArgs e)
 {
     if (!Musicality.IsPlaying)
     {
         textBoxNotes.Text = Musicality.GetIntervalSingNotesText();
         buttonGo.Enabled  = true;
         Musicality.PlaySequenceSingTarget();
         notePlayTimer.Start();
     }
 }
Exemplo n.º 9
0
 private void buttonGo_Click(object sender, EventArgs e)
 {
     if (!Musicality.IsPlaying)
     {
         Musicality.PickRandomIntervalToRecognise(60);
         textBoxNotes.Text    = "";
         buttonAgain.Enabled  = true;
         buttonAnswer.Enabled = true;
         buttonGo.Enabled     = false;
         notePlayTimer.Start();
     }
 }
Exemplo n.º 10
0
 private void buttonGo_Click(object sender, EventArgs e)
 {
     if (!Musicality.IsPlaying)
     {
         int lowNote = comboBoxNote.SelectedIndex + comboBoxOctave.SelectedIndex * 12 + 36;
         Musicality.BuildSequenceToSing(lowNote, checkBoxFullOctave.Checked);
         instructions.Text    = Musicality.Instructions;
         textBoxNotes.Text    = "";
         buttonAgain.Enabled  = true;
         buttonAnswer.Enabled = true;
         buttonGo.Enabled     = false;
         notePlayTimer.Start();
     }
 }
Exemplo n.º 11
0
 private void buttonGo_Click(object sender, EventArgs e)
 {
     if (!Musicality.IsPlaying)
     {
         notePlayTimer.Interval = NoteTimeInterval();
         Musicality.PlaySequence(Convert.ToInt32(numericUpDownLength.Value), comboBoxNote.SelectedIndex, comboBoxMode.Text);
         instructions.Text    = $"Write down this sequence (after an initial {comboBoxNote.SelectedItem})";
         textBoxAnswer.Text   = "";
         buttonAgain.Enabled  = true;
         buttonAnswer.Enabled = true;
         buttonGo.Enabled     = false;
         notePlayTimer.Start();
     }
 }
Exemplo n.º 12
0
 public IntervalRecognitionForm()
 {
     Musicality.Initialise();
     InitializeComponent();
 }
Exemplo n.º 13
0
 private void buttonAnswer_Click(object sender, EventArgs e)
 {
     textBoxAnswer.Text = Musicality.SequenceText();
     buttonGo.Enabled   = true;
 }
Exemplo n.º 14
0
        private void buttonGo_Click(object sender, EventArgs e)
        {
            if (!Musicality.IsPlaying)
            {
                int lowNote = comboBoxNote.SelectedIndex + comboBoxOctave.SelectedIndex * 12 + 36;
                switch (comboBoxVariant.SelectedIndex)
                {
                case 0:
                    Musicality.PickRandomIntervalToSing(lowNote + 6, true);
                    break;

                case 1:
                    Musicality.PickRandomIntervalToSing(lowNote + 6, false);
                    break;

                case 2:
                    Musicality.PickRandomChordIntervalToSing(lowNote + 6, Musicality.ChordIntervalChooser.TopNote);
                    break;

                case 3:
                    Musicality.PickRandomChordIntervalToSing(lowNote + 6, Musicality.ChordIntervalChooser.BottomNote);
                    break;

                case 4:
                    Musicality.PickRandomChordIntervalToSing(lowNote + 6, Musicality.ChordIntervalChooser.PerfectAbove);
                    break;

                case 5:
                    Musicality.PickRandomChordIntervalToSing(lowNote + 6, Musicality.ChordIntervalChooser.ThirdsAbove);
                    break;

                case 6:
                    Musicality.PickRandomChordIntervalToSing(lowNote + 6, Musicality.ChordIntervalChooser.SixthsAbove);
                    break;

                case 7:
                    Musicality.PickRandomChordIntervalToSing(lowNote + 6, Musicality.ChordIntervalChooser.PerfectBelow);
                    break;

                case 8:
                    Musicality.PickRandomChordIntervalToSing(lowNote + 6, Musicality.ChordIntervalChooser.ThirdsBelow);
                    break;

                case 9:
                    Musicality.PickRandomChordIntervalToSing(lowNote + 6, Musicality.ChordIntervalChooser.SixthsBelow);
                    break;

                case 10:
                    Musicality.PickRandomChordIntervalToSing(lowNote + 6, Musicality.ChordIntervalChooser.Mixed);
                    break;

                case 11:
                    Musicality.PickRandomNoteToSingfromA(lowNote + 6);
                    break;
                }
                instructions.Text    = Musicality.Instructions;
                textBoxNotes.Text    = "";
                buttonAgain.Enabled  = true;
                buttonAnswer.Enabled = true;
                buttonGo.Enabled     = false;
                notePlayTimer.Start();
            }
        }