Beispiel #1
0
        public void capoDown(bool?preferFlats = null)
        {
            SongProcessor.transposeKeyUp(this, preferFlats);
            int tempcapo = 12 + this.Capo - 1;

            this.Capo = tempcapo % 12;
        }
Beispiel #2
0
        public void capoDown()
        {
            SongProcessor.transposeKeyUp(this);
            int tempcapo = 12 + this.Capo - 1;

            this.Capo = tempcapo % 12;
        }
Beispiel #3
0
        public void TestGermanNotesTranspose()
        {
            Settings.initialize();
            Settings.GlobalApplicationSettings.KeyNotationLanguage = Entities.FileAndFolderSettings.KeyNotationLanguageType.German;
            Entities.Song song = new Entities.Song()
            {
                lyrics =
                    @"[V]
.A
.B
.H
.C
.C#
.D
.D#
.E
.F
.F#
.G
.G#",
                presentation = "V"
            };

            SongProcessor.transposeKeyUp(song);
            string expectedOutput =
                @"[V]
.B
.H
.C
.C#
.D
.D#
.E
.F
.F#
.G
.G#
.A";

            expectedOutput = expectedOutput.Replace("\r\n", "\n");
            StringAssert.Equals(song.lyrics, expectedOutput);
        }
Beispiel #4
0
        public void TestEnglishNotesTranspose()
        {
            Settings.initialize();
            Entities.Song song = new Entities.Song()
            {
                lyrics =
                    @"[V]
.A
.A#
.B
.C
.C#
.D
.D#
.E
.F
.F#
.G
.G#",
                presentation = "V"
            };
            SongProcessor.transposeKeyUp(song);
            string expectedOutput =
                @"[V]
.A#
.B
.C
.C#
.D
.D#
.E
.F
.F#
.G
.G#
.A";

            expectedOutput = expectedOutput.Replace("\r\n", "\n");
            StringAssert.Equals(song.lyrics, expectedOutput);
        }
Beispiel #5
0
 public void transposeKeyUp(bool?preferFlats = null)
 {
     preferFlats = preferFlats ?? Settings.GlobalApplicationSettings.PreferFlats;
     SongProcessor.transposeKeyUp(this, preferFlats);
     this.key = SongProcessor.transposeChord(this.key, preferFlats.Value).TrimEnd();
 }
Beispiel #6
0
 public void transposeKeyUp()
 {
     SongProcessor.transposeKeyUp(this);
     this.key = SongProcessor.transposeChord(this.key, Settings.GlobalApplicationSettings.PreferFlats).TrimEnd();
 }