コード例 #1
0
 private static void RightSection39(ChordStream stream1)
 {
     #region Section 39
     new Chord(stream1, N8, MI3, SO3);
     new Chord(stream1, N8, RE3);
     new Chord(stream1, N1, MI3);
     #endregion
 }
コード例 #2
0
 private static void LeftSection38(ChordStream stream2)
 {
     #region Section 38
     new Chord(stream2, N8, SO2).SetExtended(true);
     new Chord(stream2, N8, MI2).SetExtended(true);
     new Chord(stream2, N8, DO2);
     new Chord(stream2, N4, FA2);
     new Chord(stream2, N2, DOS1);
     #endregion
 }
コード例 #3
0
 private static void RightSection9(ChordStream stream1)
 {
     #region Section 9
     new Chord(stream1, N8, Silence);
     new Chord(stream1, N8, RES4);
     new Chord(stream1, N16, Silence);
     new Chord(stream1, N16, RE4);
     new Chord(stream1, N8, Silence);
     new Chord(stream1, N4, DO4).SetStaccato(true);
     new Chord(stream1, N4, Silence);
     #endregion
 }
コード例 #4
0
    public void PlayNextChord(ChordStream stream)
    {
        Chord currentChord = stream.CurrentChord;

        if (!currentChord.isSilence)
        {
            foreach (var item in currentChord.Notes)
            {
                PlayNote(item.NoteCode, item.Volume, currentChord.isStaccato ? (1.0f / 16.0f) : item.Time / currentChord.ParentChordStream.PlaySpeedMultiplier, true);
            }
        }
    }
コード例 #5
0
 private static void RightSection1(ChordStream stream1)
 {
     #region Section 1
     new Chord(stream1, N16, MI4);
     new Chord(stream1, N8, MI4);
     new Chord(stream1, N16, MI4);
     new Chord(stream1, N16, Silence);
     new Chord(stream1, N16, DO4);
     new Chord(stream1, N8, MI4);
     new Chord(stream1, N4, SO4).SetStaccato(true);
     new Chord(stream1, N4, SO2).SetStaccato(true);
     #endregion
 }
コード例 #6
0
 private static void LeftSection1(ChordStream stream2)
 {
     #region Section 1
     new Chord(stream2, N16, RE2);
     new Chord(stream2, N8, RE2);
     new Chord(stream2, N16, RE2);
     new Chord(stream2, N16, Silence);
     new Chord(stream2, N16, RE2);
     new Chord(stream2, N8, RE2);
     new Chord(stream2, N4, SO2).SetStaccato(true);
     new Chord(stream2, N4, SO1).SetStaccato(true);
     #endregion
 }
コード例 #7
0
 private static void RightSection15(ChordStream stream1)
 {
     #region Section 15
     new Chord(stream1, N16, DO4);
     new Chord(stream1, N8, DO4);
     new Chord(stream1, N16, DO4);
     new Chord(stream1, N16, Silence);
     new Chord(stream1, N16, DO4);
     new Chord(stream1, N16, RE4);
     new Chord(stream1, N16, MI4);
     new Chord(stream1, N2, Silence);
     #endregion
 }
コード例 #8
0
 private static void RightSection38(ChordStream stream1)
 {
     #region Section 38
     new Chord(stream1, N8, DO4).SetExtended(true);
     new Chord(stream1, N8, SO3).SetExtended(true);
     new Chord(stream1, N8, MI3);
     new Chord(stream1, (N4 / 16.0f) / 3.0f, LA3);
     new Chord(stream1, (N4 / 16.0f) / 3.0f, SI3);
     new Chord(stream1, (N4 / 16.0f) / 3.0f, LA3);
     new Chord(stream1, (N2 / 16.0f) / 3.0f, SOS3);
     new Chord(stream1, (N2 / 16.0f) / 3.0f, LAS3);
     new Chord(stream1, (N2 / 16.0f) / 3.0f, SOS3);
     #endregion
 }
コード例 #9
0
 private static void LeftSection25(ChordStream stream2)
 {
     #region Section 25
     new Chord(stream2, N8, SO2);
     new Chord(stream2, N16, Silence);
     new Chord(stream2, N16, SO2);
     new Chord(stream2, (N4 / 16.0f) / 3.0f, SO2);
     new Chord(stream2, (N4 / 16.0f) / 3.0f, LA2);
     new Chord(stream2, (N4 / 16.0f) / 3.0f, SI2);
     new Chord(stream2, N8, DO3);
     new Chord(stream2, N8, SO2);
     new Chord(stream2, N4, DO2).SetStaccato(true);
     #endregion
 }
コード例 #10
0
 private static void RightSection22(ChordStream stream2)
 {
     #region Section 22
     new Chord(stream2, N16, MI4);
     new Chord(stream2, N8, DO4);
     new Chord(stream2, N16, SO3);
     new Chord(stream2, N8, Silence);
     new Chord(stream2, N8, SOS3);
     new Chord(stream2, N16, LA3);
     new Chord(stream2, N8, FA4);
     new Chord(stream2, N16, FA4);
     new Chord(stream2, N4, LA3).SetStaccato(true);
     #endregion
 }
コード例 #11
0
 private static void LeftSection7(ChordStream stream2)
 {
     #region Section 7
     new Chord(stream2, N8, DO2);
     new Chord(stream2, N16, Silence);
     new Chord(stream2, N16, MI2);
     new Chord(stream2, N8, Silence);
     new Chord(stream2, N16, SO2);
     new Chord(stream2, N16, DO3);
     new Chord(stream2, N4, Silence);
     new Chord(stream2, N8, Silence);
     new Chord(stream2, N8, SO2);
     #endregion
 }
コード例 #12
0
 private static void RightSection25(ChordStream stream1)
 {
     #region Section 25
     new Chord(stream1, N16, SI3);
     new Chord(stream1, N8, FA4);
     new Chord(stream1, N16, FA4);
     new Chord(stream1, (N4 / 16.0f) / 3.0f, FA4);
     new Chord(stream1, (N4 / 16.0f) / 3.0f, MI4);
     new Chord(stream1, (N4 / 16.0f) / 3.0f, RE4);
     new Chord(stream1, N16, DO4);
     new Chord(stream1, N8, SO3);
     new Chord(stream1, N16, SO3);
     new Chord(stream1, N4, DO3).SetStaccato(true);
     #endregion
 }
コード例 #13
0
 private static void LeftSection23(ChordStream stream2)
 {
     #region Section23
     new Chord(stream2, N8, RE2);
     new Chord(stream2, N16, Silence);
     new Chord(stream2, N16, FA2);
     new Chord(stream2, N8, SO2);
     new Chord(stream2, N8, SI2);
     new Chord(stream2, N8, SO2);
     new Chord(stream2, N8, SO2);
     new Chord(stream2, N16, DO3);
     new Chord(stream2, N16, DO3);
     new Chord(stream2, N8, SO2);
     #endregion
 }
コード例 #14
0
 private static void RightSection23(ChordStream stream1)
 {
     #region Section 23
     new Chord(stream1, (N4 / 16.0f) / 3.0f, SI3);
     new Chord(stream1, (N4 / 16.0f) / 3.0f, LA4);
     new Chord(stream1, (N4 / 16.0f) / 3.0f, LA4);
     new Chord(stream1, (N4 / 16.0f) / 3.0f, LA4);
     new Chord(stream1, (N4 / 16.0f) / 3.0f, SO4);
     new Chord(stream1, (N4 / 16.0f) / 3.0f, FA4);
     new Chord(stream1, N16, MI4);
     new Chord(stream1, N8, DO4);
     new Chord(stream1, N16, LA3);
     new Chord(stream1, N4, SO3).SetStaccato(true);
     #endregion
 }
コード例 #15
0
 private static void LeftSection14(ChordStream stream2)
 {
     #region Section 14
     new Chord(stream2, N8, SOS1);
     new Chord(stream2, N16, Silence);
     new Chord(stream2, N16, RES2);
     new Chord(stream2, N8, Silence);
     new Chord(stream2, N8, SOS2);
     new Chord(stream2, N8, SO2);
     new Chord(stream2, N16, Silence);
     new Chord(stream2, N16, DO2);
     new Chord(stream2, N8, Silence);
     new Chord(stream2, N8, SO1);
     #endregion
 }
コード例 #16
0
 private static void LeftSection9(ChordStream stream2)
 {
     #region Section 9
     new Chord(stream2, N8, DO2);
     new Chord(stream2, N8, SOS2);
     new Chord(stream2, N16, Silence);
     new Chord(stream2, N16, LAS2);
     new Chord(stream2, N8, Silence);
     new Chord(stream2, N8, DO3);
     new Chord(stream2, N16, Silence);
     new Chord(stream2, N16, SO2);
     new Chord(stream2, N8, SO2);
     new Chord(stream2, N8, DO2);
     #endregion
 }
コード例 #17
0
 private static void RightSection7(ChordStream stream1)
 {
     #region Section 7
     new Chord(stream1, N8, Silence);
     new Chord(stream1, N16, SO4);
     new Chord(stream1, N16, FAS4);
     new Chord(stream1, N16, FA4);
     new Chord(stream1, N8, RES4);
     new Chord(stream1, N16, MI4);
     new Chord(stream1, N16, Silence);
     new Chord(stream1, N16, FA4, DO5);
     new Chord(stream1, N16, Silence);
     new Chord(stream1, N16, FA4, DO5);
     new Chord(stream1, N4, FA4, DO5).SetStaccato(true);
     #endregion
 }
コード例 #18
0
 private static void LeftSection2(ChordStream stream2)
 {
     #region Section 2
     new Chord(stream2, N8, SO2);
     new Chord(stream2, N16, Silence);
     new Chord(stream2, N16, MI2);
     new Chord(stream2, N8, Silence);
     new Chord(stream2, N8, DO2);
     new Chord(stream2, N16, Silence);
     new Chord(stream2, N16, FA2);
     new Chord(stream2, N16, Silence);
     new Chord(stream2, N16, SO2);
     new Chord(stream2, N16, Silence);
     new Chord(stream2, N16, FAS2);
     new Chord(stream2, N8, FA2);
     #endregion
 }
コード例 #19
0
 private static void RightSection2(ChordStream stream1)
 {
     #region Section 2
     new Chord(stream1, N8, DO4);
     new Chord(stream1, N16, Silence);
     new Chord(stream1, N16, SO3);
     new Chord(stream1, N8, Silence);
     new Chord(stream1, N8, MI3);
     new Chord(stream1, N16, Silence);
     new Chord(stream1, N16, LA3);
     new Chord(stream1, N16, Silence);
     new Chord(stream1, N16, SI3);
     new Chord(stream1, N16, Silence);
     new Chord(stream1, N16, LAS3);
     new Chord(stream1, N8, LA3);
     #endregion
 }
コード例 #20
0
 private static void RightSection3(ChordStream stream1)
 {
     #region Section 3
     new Chord(stream1, (N4 / 16.0f) / 3.0f, SO3);
     new Chord(stream1, (N4 / 16.0f) / 3.0f, MI4);
     new Chord(stream1, (N4 / 16.0f) / 3.0f, SO4);
     new Chord(stream1, N8, LA4);
     new Chord(stream1, N16, FA4);
     new Chord(stream1, N16, SO4);
     new Chord(stream1, N16, Silence);
     new Chord(stream1, N16, MI4);
     new Chord(stream1, N16, Silence);
     new Chord(stream1, N16, DO4);
     new Chord(stream1, N16, RE4);
     new Chord(stream1, N16, SI3);
     new Chord(stream1, N8, Silence);
     #endregion
 }
コード例 #21
0
 private static void LeftSection3(ChordStream stream2)
 {
     #region Section 3
     new Chord(stream2, (N4 / 16.0f) / 3.0f, MI2);
     new Chord(stream2, (N4 / 16.0f) / 3.0f, DO3);
     new Chord(stream2, (N4 / 16.0f) / 3.0f, MI3);
     new Chord(stream2, N8, FA3);
     new Chord(stream2, N16, RE3);
     new Chord(stream2, N16, MI3);
     new Chord(stream2, N16, Silence);
     new Chord(stream2, N16, DO3);
     new Chord(stream2, N16, Silence);
     new Chord(stream2, N16, LA2);
     new Chord(stream2, N16, SI2);
     new Chord(stream2, N16, SO2);
     new Chord(stream2, N8, Silence);
     #endregion
 }
コード例 #22
0
 private static void RightSection6(ChordStream stream1)
 {
     #region Section 6
     new Chord(stream1, N8, Silence);
     new Chord(stream1, N16, SO4);
     new Chord(stream1, N16, FAS4);
     new Chord(stream1, N16, FA4);
     new Chord(stream1, N8, RES4);
     new Chord(stream1, N16, MI4);
     new Chord(stream1, N16, Silence);
     new Chord(stream1, N16, SOS3);
     new Chord(stream1, N16, LA3);
     new Chord(stream1, N16, DO4);
     new Chord(stream1, N16, Silence);
     new Chord(stream1, N16, LA3);
     new Chord(stream1, N16, DO4);
     new Chord(stream1, N16, RE4);
     #endregion
 }
コード例 #23
0
ファイル: Chord.cs プロジェクト: Helpfully/UnityMusicalGame
    private void CreateChord(ChordStream parentStream, int length, int[] notes)
    {
        Notes = new List <Note>();

        foreach (var item in notes)
        {
            if (item == -1)
            {
                isSilence = true;
                break;
            }
            var note = new Note();
            note.Length      = (NoteLength)length;
            note.ParentChord = this;
            note.Tone        = (Tones)item;

            Notes.Add(note);
        }
        Length            = (NoteLength)length;
        ParentChordStream = parentStream;
        parentStream.chords.Add(this);
    }
コード例 #24
0
ファイル: Chord.cs プロジェクト: Helpfully/UnityMusicalGame
    public Chord(ChordStream parentStream, float specificLength, params int[] notes)
    {
        Notes = new List <Note>();

        foreach (var item in notes)
        {
            if (item == -1)
            {
                isSilence = true;
                break;
            }
            var note = new Note();
            note.Length      = NoteLength.Specific;
            note.length      = specificLength;
            note.ParentChord = this;
            note.Tone        = (Tones)item;

            Notes.Add(note);
        }
        Length            = NoteLength.Specific;
        length            = specificLength;
        ParentChordStream = parentStream;
        parentStream.chords.Add(this);
    }
コード例 #25
0
ファイル: Chord.cs プロジェクト: Helpfully/UnityMusicalGame
    public Chord(ChordStream parentStream, float specificLength, params int[] notes)
    {
        Notes = new List<Note>();

        foreach (var item in notes)
        {
            if (item == -1)
            {
                isSilence = true;
                break;
            }
            var note = new Note();
            note.Length = NoteLength.Specific;
            note.length = specificLength;
            note.ParentChord = this;
            note.Tone = (Tones)item;

            Notes.Add(note);
        }
        Length = NoteLength.Specific;
        length = specificLength;
        ParentChordStream = parentStream;
        parentStream.chords.Add(this);
    }
コード例 #26
0
 private static void LeftSection38(ChordStream stream2)
 {
     #region Section 38
     new Chord(stream2, N8, SO2).SetExtended(true);
     new Chord(stream2, N8, MI2).SetExtended(true);
     new Chord(stream2, N8, DO2);
     new Chord(stream2, N4, FA2);
     new Chord(stream2, N2, DOS1);
     #endregion
 }
コード例 #27
0
        public static Song GetMarioTheme()
        {
            var song = new Song();
            song.PlaySpeed = 0.25f;

            var stream1 = new ChordStream();

            #region Right Hand

            #region Page 1

            RightSection1(stream1);
            RightSection2(stream1);
            RightSection3(stream1);
            RightSection2(stream1);
            RightSection3(stream1);
            RightSection6(stream1);
            RightSection7(stream1);
            RightSection6(stream1);
            RightSection9(stream1);
            RightSection6(stream1);
            RightSection7(stream1);
            RightSection6(stream1);
            RightSection9(stream1);
            RightSection14(stream1);

            #endregion

            #region Page 2

            RightSection15(stream1);
            RightSection14(stream1);
            RightSection1(stream1);
            RightSection2(stream1);
            RightSection3(stream1);
            RightSection2(stream1);
            RightSection3(stream1);
            RightSection22(stream1);
            RightSection23(stream1);
            RightSection22(stream1);
            RightSection25(stream1);
            RightSection22(stream1);
            RightSection23(stream1);
            RightSection22(stream1);
            RightSection25(stream1);
            RightSection14(stream1);
            RightSection15(stream1);
            RightSection14(stream1);

            #endregion

            #region Page 3

            RightSection1(stream1);
            RightSection22(stream1);
            RightSection23(stream1);
            RightSection22(stream1);
            RightSection25(stream1);
            RightSection38(stream1);
            RightSection39(stream1);

            #endregion

            #endregion

            stream1.ParentSong = song;
            song.ChordStreams.Add(stream1);

            var stream2 = new ChordStream();

            #region Left Hand

            #region Page 1

            LeftSection1(stream2);
            LeftSection2(stream2);
            LeftSection3(stream2);
            LeftSection2(stream2);
            LeftSection3(stream2);
            LeftSection6(stream2);
            LeftSection7(stream2);
            LeftSection6(stream2);
            LeftSection9(stream2);
            LeftSection6(stream2);
            LeftSection7(stream2);
            LeftSection6(stream2);
            LeftSection9(stream2);
            LeftSection14(stream2);

            #endregion

            #region Page 2

            LeftSection15(stream2);
            LeftSection14(stream2);
            LeftSection1(stream2);
            LeftSection2(stream2);
            LeftSection3(stream2);
            LeftSection2(stream2);
            LeftSection3(stream2);
            LeftSection22(stream2);
            LeftSection23(stream2);
            LeftSection22(stream2);
            LeftSection25(stream2);
            LeftSection22(stream2);
            LeftSection23(stream2);
            LeftSection22(stream2);
            LeftSection25(stream2);
            LeftSection14(stream2);
            LeftSection15(stream2);
            LeftSection14(stream2);

            #endregion

            #region Page 3

            LeftSection1(stream2);
            LeftSection22(stream2);
            LeftSection23(stream2);
            LeftSection22(stream2);
            LeftSection25(stream2);
            LeftSection38(stream2);
            LeftSection39(stream2);

            #endregion

            #endregion

            stream2.ParentSong = song;
            song.ChordStreams.Add(stream2);

            return song;
        }
コード例 #28
0
    public static Song GetMarioTheme()
    {
        var song = new Song();
        song.PlaySpeed = 0.5f;

        var stream1 = new ChordStream();

        #region Right Hand

        #region Page 1

        //#region Section 1
        //new Chord(stream1, N16, MI4);
        //new Chord(stream1, N8, MI4);
        //new Chord(stream1, N16, MI4);
        //new Chord(stream1, N16, Silence);
        //new Chord(stream1, N16, DO4);
        //new Chord(stream1, N8, MI4);
        //new Chord(stream1, N4, SO4).SetStaccato(true);
        //new Chord(stream1, N4, SO2).SetStaccato(true);
        //#endregion

        //#region Section 2
        //new Chord(stream1, N8, DO4);
        //new Chord(stream1, N16, Silence);
        //new Chord(stream1, N16, SO3);
        //new Chord(stream1, N8, Silence);
        //new Chord(stream1, N8, MI3);
        //new Chord(stream1, N16, Silence);
        //new Chord(stream1, N16, LA3);
        //new Chord(stream1, N16, Silence);
        //new Chord(stream1, N16, SI3);
        //new Chord(stream1, N16, Silence);
        //new Chord(stream1, N16, LAS3);
        //new Chord(stream1, N8, LA3);
        //#endregion

        //#region Section 3
        //new Chord(stream1, (N4 / 16.0f) / 3.0f, SO3);
        //new Chord(stream1, (N4 / 16.0f) / 3.0f, MI4);
        //new Chord(stream1, (N4 / 16.0f) / 3.0f, SO4);
        //new Chord(stream1, N8, LA4);
        //new Chord(stream1, N16, FA4);
        //new Chord(stream1, N16, SO4);
        //new Chord(stream1, N16, Silence);
        //new Chord(stream1, N16, MI4);
        //new Chord(stream1, N16, Silence);
        //new Chord(stream1, N16, DO4);
        //new Chord(stream1, N16, RE4);
        //new Chord(stream1, N16, SI3);
        //new Chord(stream1, N8, Silence);
        //#endregion

        //#region Section 4
        //new Chord(stream1, N8, DO4);
        //new Chord(stream1, N16, Silence);
        //new Chord(stream1, N16, SO3);
        //new Chord(stream1, N8, Silence);
        //new Chord(stream1, N8, MI3);
        //new Chord(stream1, N16, Silence);
        //new Chord(stream1, N16, LA3);
        //new Chord(stream1, N16, Silence);
        //new Chord(stream1, N16, SI3);
        //new Chord(stream1, N16, Silence);
        //new Chord(stream1, N16, LAS3);
        //new Chord(stream1, N8, LA3);
        //#endregion

        //#region Section 5
        //new Chord(stream1, (N4 / 16.0f) / 3.0f, SO3);
        //new Chord(stream1, (N4 / 16.0f) / 3.0f, MI4);
        //new Chord(stream1, (N4 / 16.0f) / 3.0f, SO4);
        //new Chord(stream1, N8, LA4);
        //new Chord(stream1, N16, FA4);
        //new Chord(stream1, N16, SO4);
        //new Chord(stream1, N16, Silence);
        //new Chord(stream1, N16, MI4);
        //new Chord(stream1, N16, Silence);
        //new Chord(stream1, N16, DO4);
        //new Chord(stream1, N16, RE4);
        //new Chord(stream1, N16, SI3);
        //new Chord(stream1, N8, Silence);
        //#endregion

        //#region Section 6
        //new Chord(stream1, N8, Silence);
        //new Chord(stream1, N16, SO4);
        //new Chord(stream1, N16, FAS4);
        //new Chord(stream1, N16, FA4);
        //new Chord(stream1, N8, RES4);
        //new Chord(stream1, N16, MI4);
        //new Chord(stream1, N16, Silence);
        //new Chord(stream1, N16, SOS3);
        //new Chord(stream1, N16, LA3);
        //new Chord(stream1, N16, DO4);
        //new Chord(stream1, N16, Silence);
        //new Chord(stream1, N16, LA3);
        //new Chord(stream1, N16, DO4);
        //new Chord(stream1, N16, RE4);
        //#endregion

        //#region Section 7
        //new Chord(stream1, N8, Silence);
        //new Chord(stream1, N16, SO4);
        //new Chord(stream1, N16, FAS4);
        //new Chord(stream1, N16, FA4);
        //new Chord(stream1, N8, RES4);
        //new Chord(stream1, N16, MI4);
        //new Chord(stream1, N16, Silence);
        //new Chord(stream1, N16, FA4, DO5);
        //new Chord(stream1, N16, Silence);
        //new Chord(stream1, N16, FA4, DO5);
        //new Chord(stream1, N4, FA4, DO5).SetStaccato(true);
        //#endregion

        //#region Section 8
        //new Chord(stream1, N8, Silence);
        //new Chord(stream1, N16, SO4);
        //new Chord(stream1, N16, FAS4);
        //new Chord(stream1, N16, FA4);
        //new Chord(stream1, N8, RES4);
        //new Chord(stream1, N16, MI4);
        //new Chord(stream1, N16, Silence);
        //new Chord(stream1, N16, SOS3);
        //new Chord(stream1, N16, LA3);
        //new Chord(stream1, N16, DO4);
        //new Chord(stream1, N16, Silence);
        //new Chord(stream1, N16, LA3);
        //new Chord(stream1, N16, DO4);
        //new Chord(stream1, N16, RE4);
        //#endregion

        //#region Section 9
        //new Chord(stream1, N8, Silence);
        //new Chord(stream1, N8, RES4);
        //new Chord(stream1, N16, Silence);
        //new Chord(stream1, N16, RE4);
        //new Chord(stream1, N8, Silence);
        //new Chord(stream1, N4, DO4).SetStaccato(true);
        //new Chord(stream1, N4, Silence);
        //#endregion

        //#region Section 10
        //new Chord(stream1, N8, Silence);
        //new Chord(stream1, N16, SO4);
        //new Chord(stream1, N16, FAS4);
        //new Chord(stream1, N16, FA4);
        //new Chord(stream1, N8, RES4);
        //new Chord(stream1, N16, MI4);
        //new Chord(stream1, N16, Silence);
        //new Chord(stream1, N16, SOS3);
        //new Chord(stream1, N16, LA3);
        //new Chord(stream1, N16, DO4);
        //new Chord(stream1, N16, Silence);
        //new Chord(stream1, N16, LA3);
        //new Chord(stream1, N16, DO4);
        //new Chord(stream1, N16, RE4);
        //#endregion

        //#region Section 11
        //new Chord(stream1, N8, Silence);
        //new Chord(stream1, N16, SO4);
        //new Chord(stream1, N16, FAS4);
        //new Chord(stream1, N16, FA4);
        //new Chord(stream1, N8, RES4);
        //new Chord(stream1, N16, MI4);
        //new Chord(stream1, N16, Silence);
        //new Chord(stream1, N16, FA4, DO5);
        //new Chord(stream1, N16, Silence);
        //new Chord(stream1, N16, FA4, DO5);
        //new Chord(stream1, N4, FA4, DO5).SetStaccato(true);
        //#endregion

        //#region Section 12
        //new Chord(stream1, N8, Silence);
        //new Chord(stream1, N16, SO4);
        //new Chord(stream1, N16, FAS4);
        //new Chord(stream1, N16, FA4);
        //new Chord(stream1, N8, RES4);
        //new Chord(stream1, N16, MI4);
        //new Chord(stream1, N16, Silence);
        //new Chord(stream1, N16, SOS3);
        //new Chord(stream1, N16, LA3);
        //new Chord(stream1, N16, DO4);
        //new Chord(stream1, N16, Silence);
        //new Chord(stream1, N16, LA3);
        //new Chord(stream1, N16, DO4);
        //new Chord(stream1, N16, RE4);
        //#endregion

        //#region Section 13
        //new Chord(stream1, N8, Silence);
        //new Chord(stream1, N8, RES4);
        //new Chord(stream1, N16, Silence);
        //new Chord(stream1, N16, RE4);
        //new Chord(stream1, N8, Silence);
        //new Chord(stream1, N4, DO4).SetStaccato(true);
        //new Chord(stream1, N4, Silence);
        //#endregion

        #region Section 14
        new Chord(stream1, N16, DO4);
        new Chord(stream1, N8, DO4);
        new Chord(stream1, N16, DO4);
        new Chord(stream1, N16, Silence);
        new Chord(stream1, N16, DO4);
        new Chord(stream1, N8, RE4);
        new Chord(stream1, N16, MI4);
        new Chord(stream1, N8, DO4);
        new Chord(stream1, N16, LA3);
        new Chord(stream1, N4, SO3).SetStaccato(true);

        #endregion

        #endregion

        #region Page 2
        new Chord(stream1, N16, DO4);
        new Chord(stream1, N8, DO4);
        new Chord(stream1, N16, DO4);
        new Chord(stream1, N16, Silence);
        new Chord(stream1, N16, DO4);
        new Chord(stream1, N16, RE4);
        new Chord(stream1, N16, MI4);
        new Chord(stream1, N2, Silence);

        #region Section 15

        #endregion

        #endregion

        #endregion

        stream1.ParentSong = song;
        song.ChordStreams.Add(stream1);

        var stream2 = new ChordStream();

        #region Left Hand

        #region Page 1

        //#region Section 1
        //new Chord(stream2, N16, RE2);
        //new Chord(stream2, N8, RE2);
        //new Chord(stream2, N16, RE2);
        //new Chord(stream2, N16, Silence);
        //new Chord(stream2, N16, RE2);
        //new Chord(stream2, N8, RE2);
        //new Chord(stream2, N4, SO2).SetStaccato(true);
        //new Chord(stream2, N4, SO1).SetStaccato(true);
        //#endregion

        //#region Section 2
        //new Chord(stream2, N8, SO2);
        //new Chord(stream2, N16, Silence);
        //new Chord(stream2, N16, MI2);
        //new Chord(stream2, N8, Silence);
        //new Chord(stream2, N8, DO2);
        //new Chord(stream2, N16, Silence);
        //new Chord(stream2, N16, FA2);
        //new Chord(stream2, N16, Silence);
        //new Chord(stream2, N16, SO2);
        //new Chord(stream2, N16, Silence);
        //new Chord(stream2, N16, FAS2);
        //new Chord(stream2, N8, FA2);
        //#endregion

        //#region Section 3
        //new Chord(stream2, (N4 / 16.0f) / 3.0f, MI2);
        //new Chord(stream2, (N4 / 16.0f) / 3.0f, DO3);
        //new Chord(stream2, (N4 / 16.0f) / 3.0f, MI3);
        //new Chord(stream2, N8, FA3);
        //new Chord(stream2, N16, RE3);
        //new Chord(stream2, N16, MI3);
        //new Chord(stream2, N16, Silence);
        //new Chord(stream2, N16, DO3);
        //new Chord(stream2, N16, Silence);
        //new Chord(stream2, N16, LA2);
        //new Chord(stream2, N16, SI2);
        //new Chord(stream2, N16, SO2);
        //new Chord(stream2, N8, Silence);
        //#endregion

        //#region Section 4
        //new Chord(stream2, N8, SO2);
        //new Chord(stream2, N16, Silence);
        //new Chord(stream2, N16, MI2);
        //new Chord(stream2, N8, Silence);
        //new Chord(stream2, N8, DO2);
        //new Chord(stream2, N16, Silence);
        //new Chord(stream2, N16, FA2);
        //new Chord(stream2, N16, Silence);
        //new Chord(stream2, N16, SO2);
        //new Chord(stream2, N16, Silence);
        //new Chord(stream2, N16, FAS2);
        //new Chord(stream2, N8, FA2);
        //#endregion

        //#region Section 5
        //new Chord(stream2, (N4 / 16.0f) / 3.0f, MI2);
        //new Chord(stream2, (N4 / 16.0f) / 3.0f, DO3);
        //new Chord(stream2, (N4 / 16.0f) / 3.0f, MI3);
        //new Chord(stream2, N8, FA3);
        //new Chord(stream2, N16, RE3);
        //new Chord(stream2, N16, MI3);
        //new Chord(stream2, N16, Silence);
        //new Chord(stream2, N16, DO3);
        //new Chord(stream2, N16, Silence);
        //new Chord(stream2, N16, LA2);
        //new Chord(stream2, N16, SI2);
        //new Chord(stream2, N16, SO2);
        //new Chord(stream2, N8, Silence);
        //#endregion

        //#region Section 6
        //new Chord(stream2, N8, DO2);
        //new Chord(stream2, N16, Silence);
        //new Chord(stream2, N16, SO2);
        //new Chord(stream2, N8, Silence);
        //new Chord(stream2, N8, DO3);
        //new Chord(stream2, N8, FA2);
        //new Chord(stream2, N16, Silence);
        //new Chord(stream2, N16, DO3);
        //new Chord(stream2, N16, DO3);
        //new Chord(stream2, N16, DO3);
        //new Chord(stream2, N8, FA2);
        //#endregion

        //#region Section 7
        //new Chord(stream2, N8, DO2);
        //new Chord(stream2, N16, Silence);
        //new Chord(stream2, N16, MI2);
        //new Chord(stream2, N8, Silence);
        //new Chord(stream2, N16, SO2);
        //new Chord(stream2, N16, DO3);
        //new Chord(stream2, N4, Silence);
        //new Chord(stream2, N8, Silence);
        //new Chord(stream2, N8, SO2);
        //#endregion

        //#region Section 8
        //new Chord(stream2, N8, DO2);
        //new Chord(stream2, N16, Silence);
        //new Chord(stream2, N16, SO2);
        //new Chord(stream2, N8, Silence);
        //new Chord(stream2, N8, DO3);
        //new Chord(stream2, N8, FA2);
        //new Chord(stream2, N16, Silence);
        //new Chord(stream2, N16, DO3);
        //new Chord(stream2, N16, DO3);
        //new Chord(stream2, N16, DO3);
        //new Chord(stream2, N8, FA2);
        //#endregion

        //#region Section 9
        //new Chord(stream2, N8, DO2);
        //new Chord(stream2, N8, SOS2);
        //new Chord(stream2, N16, Silence);
        //new Chord(stream2, N16, LAS2);
        //new Chord(stream2, N8, Silence);
        //new Chord(stream2, N8, DO3);
        //new Chord(stream2, N16, Silence);
        //new Chord(stream2, N16, SOS2);
        //new Chord(stream2, N8, SOS2);
        //new Chord(stream2, N8, DO2);
        //#endregion

        //#region Section 10
        //new Chord(stream2, N8, DO2);
        //new Chord(stream2, N16, Silence);
        //new Chord(stream2, N16, SO2);
        //new Chord(stream2, N8, Silence);
        //new Chord(stream2, N8, DO3);
        //new Chord(stream2, N8, FA2);
        //new Chord(stream2, N16, Silence);
        //new Chord(stream2, N16, DO3);
        //new Chord(stream2, N16, DO3);
        //new Chord(stream2, N16, DO3);
        //new Chord(stream2, N8, FA2);
        //#endregion

        //#region Section 11
        //new Chord(stream2, N8, DO2);
        //new Chord(stream2, N16, Silence);
        //new Chord(stream2, N16, MI2);
        //new Chord(stream2, N8, Silence);
        //new Chord(stream2, N16, SO2);
        //new Chord(stream2, N16, DO3);
        //new Chord(stream2, N4, Silence);
        //new Chord(stream2, N8, Silence);
        //new Chord(stream2, N8, SO2);
        //#endregion

        //#region Section 12
        //new Chord(stream2, N8, DO2);
        //new Chord(stream2, N16, Silence);
        //new Chord(stream2, N16, SO2);
        //new Chord(stream2, N8, Silence);
        //new Chord(stream2, N8, DO3);
        //new Chord(stream2, N8, FA2);
        //new Chord(stream2, N16, Silence);
        //new Chord(stream2, N16, DO3);
        //new Chord(stream2, N16, DO3);
        //new Chord(stream2, N16, DO3);
        //new Chord(stream2, N8, FA2);
        //#endregion

        //#region Section 13
        //new Chord(stream2, N8, DO2);
        //new Chord(stream2, N8, SOS2);
        //new Chord(stream2, N16, Silence);
        //new Chord(stream2, N16, LAS2);
        //new Chord(stream2, N8, Silence);
        //new Chord(stream2, N8, DO3);
        //new Chord(stream2, N16, Silence);
        //new Chord(stream2, N16, SOS2);
        //new Chord(stream2, N8, SOS2);
        //new Chord(stream2, N8, DO2);
        //#endregion

        #region Section 14
        new Chord(stream2, N8, SOS1);
        new Chord(stream2, N16, Silence);
        new Chord(stream2, N16, RES2);
        new Chord(stream2, N8, Silence);
        new Chord(stream2, N8, SOS2);
        new Chord(stream2, N8, SO2);
        new Chord(stream2, N16, Silence);
        new Chord(stream2, N16, DO2);
        new Chord(stream2, N8, Silence);
        new Chord(stream2, N8, SO1);
        #endregion

        #endregion

        #region Page 2

        #region Section 15
        new Chord(stream2, N8, SOS1);
        new Chord(stream2, N16, Silence);
        new Chord(stream2, N16, RES2);
        new Chord(stream2, N8, Silence);
        new Chord(stream2, N8, SOS2);
        new Chord(stream2, N8, SO2);
        new Chord(stream2, N16, Silence);
        new Chord(stream2, N16, DO2);
        new Chord(stream2, N8, Silence);
        new Chord(stream2, N16, SO1);
        #endregion

        #endregion

        #endregion

        stream2.ParentSong = song;
        song.ChordStreams.Add(stream2);

        return song;
    }
コード例 #29
0
 private static void RightSection3(ChordStream stream1)
 {
     #region Section 3
     new Chord(stream1, (N4 / 16.0f) / 3.0f, SO3);
     new Chord(stream1, (N4 / 16.0f) / 3.0f, MI4);
     new Chord(stream1, (N4 / 16.0f) / 3.0f, SO4);
     new Chord(stream1, N8, LA4);
     new Chord(stream1, N16, FA4);
     new Chord(stream1, N16, SO4);
     new Chord(stream1, N16, Silence);
     new Chord(stream1, N16, MI4);
     new Chord(stream1, N16, Silence);
     new Chord(stream1, N16, DO4);
     new Chord(stream1, N16, RE4);
     new Chord(stream1, N16, SI3);
     new Chord(stream1, N8, Silence);
     #endregion
 }
コード例 #30
0
 private static void LeftSection2(ChordStream stream2)
 {
     #region Section 2
     new Chord(stream2, N8, SO2);
     new Chord(stream2, N16, Silence);
     new Chord(stream2, N16, MI2);
     new Chord(stream2, N8, Silence);
     new Chord(stream2, N8, DO2);
     new Chord(stream2, N16, Silence);
     new Chord(stream2, N16, FA2);
     new Chord(stream2, N16, Silence);
     new Chord(stream2, N16, SO2);
     new Chord(stream2, N16, Silence);
     new Chord(stream2, N16, FAS2);
     new Chord(stream2, N8, FA2);
     #endregion
 }
コード例 #31
0
 private static void RightSection2(ChordStream stream1)
 {
     #region Section 2
     new Chord(stream1, N8, DO4);
     new Chord(stream1, N16, Silence);
     new Chord(stream1, N16, SO3);
     new Chord(stream1, N8, Silence);
     new Chord(stream1, N8, MI3);
     new Chord(stream1, N16, Silence);
     new Chord(stream1, N16, LA3);
     new Chord(stream1, N16, Silence);
     new Chord(stream1, N16, SI3);
     new Chord(stream1, N16, Silence);
     new Chord(stream1, N16, LAS3);
     new Chord(stream1, N8, LA3);
     #endregion
 }
コード例 #32
0
    public static Song GetMarioTheme()
    {
        var song = new Song();

        song.PlaySpeed = 0.5f;

        var stream1 = new ChordStream();

        #region Right Hand

        #region Page 1

        //#region Section 1
        //new Chord(stream1, N16, MI4);
        //new Chord(stream1, N8, MI4);
        //new Chord(stream1, N16, MI4);
        //new Chord(stream1, N16, Silence);
        //new Chord(stream1, N16, DO4);
        //new Chord(stream1, N8, MI4);
        //new Chord(stream1, N4, SO4).SetStaccato(true);
        //new Chord(stream1, N4, SO2).SetStaccato(true);
        //#endregion

        //#region Section 2
        //new Chord(stream1, N8, DO4);
        //new Chord(stream1, N16, Silence);
        //new Chord(stream1, N16, SO3);
        //new Chord(stream1, N8, Silence);
        //new Chord(stream1, N8, MI3);
        //new Chord(stream1, N16, Silence);
        //new Chord(stream1, N16, LA3);
        //new Chord(stream1, N16, Silence);
        //new Chord(stream1, N16, SI3);
        //new Chord(stream1, N16, Silence);
        //new Chord(stream1, N16, LAS3);
        //new Chord(stream1, N8, LA3);
        //#endregion

        //#region Section 3
        //new Chord(stream1, (N4 / 16.0f) / 3.0f, SO3);
        //new Chord(stream1, (N4 / 16.0f) / 3.0f, MI4);
        //new Chord(stream1, (N4 / 16.0f) / 3.0f, SO4);
        //new Chord(stream1, N8, LA4);
        //new Chord(stream1, N16, FA4);
        //new Chord(stream1, N16, SO4);
        //new Chord(stream1, N16, Silence);
        //new Chord(stream1, N16, MI4);
        //new Chord(stream1, N16, Silence);
        //new Chord(stream1, N16, DO4);
        //new Chord(stream1, N16, RE4);
        //new Chord(stream1, N16, SI3);
        //new Chord(stream1, N8, Silence);
        //#endregion

        //#region Section 4
        //new Chord(stream1, N8, DO4);
        //new Chord(stream1, N16, Silence);
        //new Chord(stream1, N16, SO3);
        //new Chord(stream1, N8, Silence);
        //new Chord(stream1, N8, MI3);
        //new Chord(stream1, N16, Silence);
        //new Chord(stream1, N16, LA3);
        //new Chord(stream1, N16, Silence);
        //new Chord(stream1, N16, SI3);
        //new Chord(stream1, N16, Silence);
        //new Chord(stream1, N16, LAS3);
        //new Chord(stream1, N8, LA3);
        //#endregion

        //#region Section 5
        //new Chord(stream1, (N4 / 16.0f) / 3.0f, SO3);
        //new Chord(stream1, (N4 / 16.0f) / 3.0f, MI4);
        //new Chord(stream1, (N4 / 16.0f) / 3.0f, SO4);
        //new Chord(stream1, N8, LA4);
        //new Chord(stream1, N16, FA4);
        //new Chord(stream1, N16, SO4);
        //new Chord(stream1, N16, Silence);
        //new Chord(stream1, N16, MI4);
        //new Chord(stream1, N16, Silence);
        //new Chord(stream1, N16, DO4);
        //new Chord(stream1, N16, RE4);
        //new Chord(stream1, N16, SI3);
        //new Chord(stream1, N8, Silence);
        //#endregion

        //#region Section 6
        //new Chord(stream1, N8, Silence);
        //new Chord(stream1, N16, SO4);
        //new Chord(stream1, N16, FAS4);
        //new Chord(stream1, N16, FA4);
        //new Chord(stream1, N8, RES4);
        //new Chord(stream1, N16, MI4);
        //new Chord(stream1, N16, Silence);
        //new Chord(stream1, N16, SOS3);
        //new Chord(stream1, N16, LA3);
        //new Chord(stream1, N16, DO4);
        //new Chord(stream1, N16, Silence);
        //new Chord(stream1, N16, LA3);
        //new Chord(stream1, N16, DO4);
        //new Chord(stream1, N16, RE4);
        //#endregion

        //#region Section 7
        //new Chord(stream1, N8, Silence);
        //new Chord(stream1, N16, SO4);
        //new Chord(stream1, N16, FAS4);
        //new Chord(stream1, N16, FA4);
        //new Chord(stream1, N8, RES4);
        //new Chord(stream1, N16, MI4);
        //new Chord(stream1, N16, Silence);
        //new Chord(stream1, N16, FA4, DO5);
        //new Chord(stream1, N16, Silence);
        //new Chord(stream1, N16, FA4, DO5);
        //new Chord(stream1, N4, FA4, DO5).SetStaccato(true);
        //#endregion

        //#region Section 8
        //new Chord(stream1, N8, Silence);
        //new Chord(stream1, N16, SO4);
        //new Chord(stream1, N16, FAS4);
        //new Chord(stream1, N16, FA4);
        //new Chord(stream1, N8, RES4);
        //new Chord(stream1, N16, MI4);
        //new Chord(stream1, N16, Silence);
        //new Chord(stream1, N16, SOS3);
        //new Chord(stream1, N16, LA3);
        //new Chord(stream1, N16, DO4);
        //new Chord(stream1, N16, Silence);
        //new Chord(stream1, N16, LA3);
        //new Chord(stream1, N16, DO4);
        //new Chord(stream1, N16, RE4);
        //#endregion

        //#region Section 9
        //new Chord(stream1, N8, Silence);
        //new Chord(stream1, N8, RES4);
        //new Chord(stream1, N16, Silence);
        //new Chord(stream1, N16, RE4);
        //new Chord(stream1, N8, Silence);
        //new Chord(stream1, N4, DO4).SetStaccato(true);
        //new Chord(stream1, N4, Silence);
        //#endregion

        //#region Section 10
        //new Chord(stream1, N8, Silence);
        //new Chord(stream1, N16, SO4);
        //new Chord(stream1, N16, FAS4);
        //new Chord(stream1, N16, FA4);
        //new Chord(stream1, N8, RES4);
        //new Chord(stream1, N16, MI4);
        //new Chord(stream1, N16, Silence);
        //new Chord(stream1, N16, SOS3);
        //new Chord(stream1, N16, LA3);
        //new Chord(stream1, N16, DO4);
        //new Chord(stream1, N16, Silence);
        //new Chord(stream1, N16, LA3);
        //new Chord(stream1, N16, DO4);
        //new Chord(stream1, N16, RE4);
        //#endregion

        //#region Section 11
        //new Chord(stream1, N8, Silence);
        //new Chord(stream1, N16, SO4);
        //new Chord(stream1, N16, FAS4);
        //new Chord(stream1, N16, FA4);
        //new Chord(stream1, N8, RES4);
        //new Chord(stream1, N16, MI4);
        //new Chord(stream1, N16, Silence);
        //new Chord(stream1, N16, FA4, DO5);
        //new Chord(stream1, N16, Silence);
        //new Chord(stream1, N16, FA4, DO5);
        //new Chord(stream1, N4, FA4, DO5).SetStaccato(true);
        //#endregion

        //#region Section 12
        //new Chord(stream1, N8, Silence);
        //new Chord(stream1, N16, SO4);
        //new Chord(stream1, N16, FAS4);
        //new Chord(stream1, N16, FA4);
        //new Chord(stream1, N8, RES4);
        //new Chord(stream1, N16, MI4);
        //new Chord(stream1, N16, Silence);
        //new Chord(stream1, N16, SOS3);
        //new Chord(stream1, N16, LA3);
        //new Chord(stream1, N16, DO4);
        //new Chord(stream1, N16, Silence);
        //new Chord(stream1, N16, LA3);
        //new Chord(stream1, N16, DO4);
        //new Chord(stream1, N16, RE4);
        //#endregion

        //#region Section 13
        //new Chord(stream1, N8, Silence);
        //new Chord(stream1, N8, RES4);
        //new Chord(stream1, N16, Silence);
        //new Chord(stream1, N16, RE4);
        //new Chord(stream1, N8, Silence);
        //new Chord(stream1, N4, DO4).SetStaccato(true);
        //new Chord(stream1, N4, Silence);
        //#endregion

        #region Section 14
        new Chord(stream1, N16, DO4);
        new Chord(stream1, N8, DO4);
        new Chord(stream1, N16, DO4);
        new Chord(stream1, N16, Silence);
        new Chord(stream1, N16, DO4);
        new Chord(stream1, N8, RE4);
        new Chord(stream1, N16, MI4);
        new Chord(stream1, N8, DO4);
        new Chord(stream1, N16, LA3);
        new Chord(stream1, N4, SO3).SetStaccato(true);

        #endregion

        #endregion

        #region Page 2
        new Chord(stream1, N16, DO4);
        new Chord(stream1, N8, DO4);
        new Chord(stream1, N16, DO4);
        new Chord(stream1, N16, Silence);
        new Chord(stream1, N16, DO4);
        new Chord(stream1, N16, RE4);
        new Chord(stream1, N16, MI4);
        new Chord(stream1, N2, Silence);

        #region Section 15

        #endregion

        #endregion

        #endregion

        stream1.ParentSong = song;
        song.ChordStreams.Add(stream1);

        var stream2 = new ChordStream();

        #region Left Hand

        #region Page 1

        //#region Section 1
        //new Chord(stream2, N16, RE2);
        //new Chord(stream2, N8, RE2);
        //new Chord(stream2, N16, RE2);
        //new Chord(stream2, N16, Silence);
        //new Chord(stream2, N16, RE2);
        //new Chord(stream2, N8, RE2);
        //new Chord(stream2, N4, SO2).SetStaccato(true);
        //new Chord(stream2, N4, SO1).SetStaccato(true);
        //#endregion

        //#region Section 2
        //new Chord(stream2, N8, SO2);
        //new Chord(stream2, N16, Silence);
        //new Chord(stream2, N16, MI2);
        //new Chord(stream2, N8, Silence);
        //new Chord(stream2, N8, DO2);
        //new Chord(stream2, N16, Silence);
        //new Chord(stream2, N16, FA2);
        //new Chord(stream2, N16, Silence);
        //new Chord(stream2, N16, SO2);
        //new Chord(stream2, N16, Silence);
        //new Chord(stream2, N16, FAS2);
        //new Chord(stream2, N8, FA2);
        //#endregion

        //#region Section 3
        //new Chord(stream2, (N4 / 16.0f) / 3.0f, MI2);
        //new Chord(stream2, (N4 / 16.0f) / 3.0f, DO3);
        //new Chord(stream2, (N4 / 16.0f) / 3.0f, MI3);
        //new Chord(stream2, N8, FA3);
        //new Chord(stream2, N16, RE3);
        //new Chord(stream2, N16, MI3);
        //new Chord(stream2, N16, Silence);
        //new Chord(stream2, N16, DO3);
        //new Chord(stream2, N16, Silence);
        //new Chord(stream2, N16, LA2);
        //new Chord(stream2, N16, SI2);
        //new Chord(stream2, N16, SO2);
        //new Chord(stream2, N8, Silence);
        //#endregion

        //#region Section 4
        //new Chord(stream2, N8, SO2);
        //new Chord(stream2, N16, Silence);
        //new Chord(stream2, N16, MI2);
        //new Chord(stream2, N8, Silence);
        //new Chord(stream2, N8, DO2);
        //new Chord(stream2, N16, Silence);
        //new Chord(stream2, N16, FA2);
        //new Chord(stream2, N16, Silence);
        //new Chord(stream2, N16, SO2);
        //new Chord(stream2, N16, Silence);
        //new Chord(stream2, N16, FAS2);
        //new Chord(stream2, N8, FA2);
        //#endregion

        //#region Section 5
        //new Chord(stream2, (N4 / 16.0f) / 3.0f, MI2);
        //new Chord(stream2, (N4 / 16.0f) / 3.0f, DO3);
        //new Chord(stream2, (N4 / 16.0f) / 3.0f, MI3);
        //new Chord(stream2, N8, FA3);
        //new Chord(stream2, N16, RE3);
        //new Chord(stream2, N16, MI3);
        //new Chord(stream2, N16, Silence);
        //new Chord(stream2, N16, DO3);
        //new Chord(stream2, N16, Silence);
        //new Chord(stream2, N16, LA2);
        //new Chord(stream2, N16, SI2);
        //new Chord(stream2, N16, SO2);
        //new Chord(stream2, N8, Silence);
        //#endregion

        //#region Section 6
        //new Chord(stream2, N8, DO2);
        //new Chord(stream2, N16, Silence);
        //new Chord(stream2, N16, SO2);
        //new Chord(stream2, N8, Silence);
        //new Chord(stream2, N8, DO3);
        //new Chord(stream2, N8, FA2);
        //new Chord(stream2, N16, Silence);
        //new Chord(stream2, N16, DO3);
        //new Chord(stream2, N16, DO3);
        //new Chord(stream2, N16, DO3);
        //new Chord(stream2, N8, FA2);
        //#endregion

        //#region Section 7
        //new Chord(stream2, N8, DO2);
        //new Chord(stream2, N16, Silence);
        //new Chord(stream2, N16, MI2);
        //new Chord(stream2, N8, Silence);
        //new Chord(stream2, N16, SO2);
        //new Chord(stream2, N16, DO3);
        //new Chord(stream2, N4, Silence);
        //new Chord(stream2, N8, Silence);
        //new Chord(stream2, N8, SO2);
        //#endregion

        //#region Section 8
        //new Chord(stream2, N8, DO2);
        //new Chord(stream2, N16, Silence);
        //new Chord(stream2, N16, SO2);
        //new Chord(stream2, N8, Silence);
        //new Chord(stream2, N8, DO3);
        //new Chord(stream2, N8, FA2);
        //new Chord(stream2, N16, Silence);
        //new Chord(stream2, N16, DO3);
        //new Chord(stream2, N16, DO3);
        //new Chord(stream2, N16, DO3);
        //new Chord(stream2, N8, FA2);
        //#endregion

        //#region Section 9
        //new Chord(stream2, N8, DO2);
        //new Chord(stream2, N8, SOS2);
        //new Chord(stream2, N16, Silence);
        //new Chord(stream2, N16, LAS2);
        //new Chord(stream2, N8, Silence);
        //new Chord(stream2, N8, DO3);
        //new Chord(stream2, N16, Silence);
        //new Chord(stream2, N16, SOS2);
        //new Chord(stream2, N8, SOS2);
        //new Chord(stream2, N8, DO2);
        //#endregion

        //#region Section 10
        //new Chord(stream2, N8, DO2);
        //new Chord(stream2, N16, Silence);
        //new Chord(stream2, N16, SO2);
        //new Chord(stream2, N8, Silence);
        //new Chord(stream2, N8, DO3);
        //new Chord(stream2, N8, FA2);
        //new Chord(stream2, N16, Silence);
        //new Chord(stream2, N16, DO3);
        //new Chord(stream2, N16, DO3);
        //new Chord(stream2, N16, DO3);
        //new Chord(stream2, N8, FA2);
        //#endregion

        //#region Section 11
        //new Chord(stream2, N8, DO2);
        //new Chord(stream2, N16, Silence);
        //new Chord(stream2, N16, MI2);
        //new Chord(stream2, N8, Silence);
        //new Chord(stream2, N16, SO2);
        //new Chord(stream2, N16, DO3);
        //new Chord(stream2, N4, Silence);
        //new Chord(stream2, N8, Silence);
        //new Chord(stream2, N8, SO2);
        //#endregion

        //#region Section 12
        //new Chord(stream2, N8, DO2);
        //new Chord(stream2, N16, Silence);
        //new Chord(stream2, N16, SO2);
        //new Chord(stream2, N8, Silence);
        //new Chord(stream2, N8, DO3);
        //new Chord(stream2, N8, FA2);
        //new Chord(stream2, N16, Silence);
        //new Chord(stream2, N16, DO3);
        //new Chord(stream2, N16, DO3);
        //new Chord(stream2, N16, DO3);
        //new Chord(stream2, N8, FA2);
        //#endregion

        //#region Section 13
        //new Chord(stream2, N8, DO2);
        //new Chord(stream2, N8, SOS2);
        //new Chord(stream2, N16, Silence);
        //new Chord(stream2, N16, LAS2);
        //new Chord(stream2, N8, Silence);
        //new Chord(stream2, N8, DO3);
        //new Chord(stream2, N16, Silence);
        //new Chord(stream2, N16, SOS2);
        //new Chord(stream2, N8, SOS2);
        //new Chord(stream2, N8, DO2);
        //#endregion

        #region Section 14
        new Chord(stream2, N8, SOS1);
        new Chord(stream2, N16, Silence);
        new Chord(stream2, N16, RES2);
        new Chord(stream2, N8, Silence);
        new Chord(stream2, N8, SOS2);
        new Chord(stream2, N8, SO2);
        new Chord(stream2, N16, Silence);
        new Chord(stream2, N16, DO2);
        new Chord(stream2, N8, Silence);
        new Chord(stream2, N8, SO1);
        #endregion

        #endregion

        #region Page 2

        #region Section 15
        new Chord(stream2, N8, SOS1);
        new Chord(stream2, N16, Silence);
        new Chord(stream2, N16, RES2);
        new Chord(stream2, N8, Silence);
        new Chord(stream2, N8, SOS2);
        new Chord(stream2, N8, SO2);
        new Chord(stream2, N16, Silence);
        new Chord(stream2, N16, DO2);
        new Chord(stream2, N8, Silence);
        new Chord(stream2, N16, SO1);
        #endregion

        #endregion

        #endregion

        stream2.ParentSong = song;
        song.ChordStreams.Add(stream2);

        return(song);
    }
コード例 #33
0
 private static void LeftSection25(ChordStream stream2)
 {
     #region Section 25
     new Chord(stream2, N8, SO2);
     new Chord(stream2, N16, Silence);
     new Chord(stream2, N16, SO2);
     new Chord(stream2, (N4 / 16.0f) / 3.0f, SO2);
     new Chord(stream2, (N4 / 16.0f) / 3.0f, LA2);
     new Chord(stream2, (N4 / 16.0f) / 3.0f, SI2);
     new Chord(stream2, N8, DO3);
     new Chord(stream2, N8, SO2);
     new Chord(stream2, N4, DO2).SetStaccato(true);
     #endregion
 }
コード例 #34
0
ファイル: Chord.cs プロジェクト: Helpfully/UnityMusicalGame
 public Chord(ChordStream parentStream, int length, params int[] notes)
 {
     CreateChord(parentStream, length, notes);
 }
コード例 #35
0
 private static void RightSection9(ChordStream stream1)
 {
     #region Section 9
     new Chord(stream1, N8, Silence);
     new Chord(stream1, N8, RES4);
     new Chord(stream1, N16, Silence);
     new Chord(stream1, N16, RE4);
     new Chord(stream1, N8, Silence);
     new Chord(stream1, N4, DO4).SetStaccato(true);
     new Chord(stream1, N4, Silence);
     #endregion
 }
コード例 #36
0
 private static void LeftSection9(ChordStream stream2)
 {
     #region Section 9
     new Chord(stream2, N8, DO2);
     new Chord(stream2, N8, SOS2);
     new Chord(stream2, N16, Silence);
     new Chord(stream2, N16, LAS2);
     new Chord(stream2, N8, Silence);
     new Chord(stream2, N8, DO3);
     new Chord(stream2, N16, Silence);
     new Chord(stream2, N16, SO2);
     new Chord(stream2, N8, SO2);
     new Chord(stream2, N8, DO2);
     #endregion
 }
コード例 #37
0
 private static void RightSection23(ChordStream stream1)
 {
     #region Section 23
     new Chord(stream1, (N4 / 16.0f) / 3.0f, SI3);
     new Chord(stream1, (N4 / 16.0f) / 3.0f, LA4);
     new Chord(stream1, (N4 / 16.0f) / 3.0f, LA4);
     new Chord(stream1, (N4 / 16.0f) / 3.0f, LA4);
     new Chord(stream1, (N4 / 16.0f) / 3.0f, SO4);
     new Chord(stream1, (N4 / 16.0f) / 3.0f, FA4);
     new Chord(stream1, N16, MI4);
     new Chord(stream1, N8, DO4);
     new Chord(stream1, N16, LA3);
     new Chord(stream1, N4, SO3).SetStaccato(true);
     #endregion
 }
コード例 #38
0
 private static void RightSection38(ChordStream stream1)
 {
     #region Section 38
     new Chord(stream1, N8, DO4).SetExtended(true);
     new Chord(stream1, N8, SO3).SetExtended(true);
     new Chord(stream1, N8, MI3);
     new Chord(stream1, (N4 / 16.0f) / 3.0f, LA3);
     new Chord(stream1, (N4 / 16.0f) / 3.0f, SI3);
     new Chord(stream1, (N4 / 16.0f) / 3.0f, LA3);
     new Chord(stream1, (N2 / 16.0f) / 3.0f, SOS3);
     new Chord(stream1, (N2 / 16.0f) / 3.0f, LAS3);
     new Chord(stream1, (N2 / 16.0f) / 3.0f, SOS3);
     #endregion
 }
コード例 #39
0
 private static void LeftSection3(ChordStream stream2)
 {
     #region Section 3
     new Chord(stream2, (N4 / 16.0f) / 3.0f, MI2);
     new Chord(stream2, (N4 / 16.0f) / 3.0f, DO3);
     new Chord(stream2, (N4 / 16.0f) / 3.0f, MI3);
     new Chord(stream2, N8, FA3);
     new Chord(stream2, N16, RE3);
     new Chord(stream2, N16, MI3);
     new Chord(stream2, N16, Silence);
     new Chord(stream2, N16, DO3);
     new Chord(stream2, N16, Silence);
     new Chord(stream2, N16, LA2);
     new Chord(stream2, N16, SI2);
     new Chord(stream2, N16, SO2);
     new Chord(stream2, N8, Silence);
     #endregion
 }
コード例 #40
0
 private static void LeftSection39(ChordStream stream2)
 {
     #region Section 39
     new Chord(stream2, N1, DO2);
     #endregion
 }
コード例 #41
0
        public static Song GetMarioTheme()
        {
            var song = new Song();

            song.PlaySpeed = 0.25f;

            var stream1 = new ChordStream();

            #region Right Hand

            #region Page 1

            RightSection1(stream1);
            RightSection2(stream1);
            RightSection3(stream1);
            RightSection2(stream1);
            RightSection3(stream1);
            RightSection6(stream1);
            RightSection7(stream1);
            RightSection6(stream1);
            RightSection9(stream1);
            RightSection6(stream1);
            RightSection7(stream1);
            RightSection6(stream1);
            RightSection9(stream1);
            RightSection14(stream1);

            #endregion

            #region Page 2

            RightSection15(stream1);
            RightSection14(stream1);
            RightSection1(stream1);
            RightSection2(stream1);
            RightSection3(stream1);
            RightSection2(stream1);
            RightSection3(stream1);
            RightSection22(stream1);
            RightSection23(stream1);
            RightSection22(stream1);
            RightSection25(stream1);
            RightSection22(stream1);
            RightSection23(stream1);
            RightSection22(stream1);
            RightSection25(stream1);
            RightSection14(stream1);
            RightSection15(stream1);
            RightSection14(stream1);

            #endregion

            #region Page 3

            RightSection1(stream1);
            RightSection22(stream1);
            RightSection23(stream1);
            RightSection22(stream1);
            RightSection25(stream1);
            RightSection38(stream1);
            RightSection39(stream1);

            #endregion

            #endregion

            stream1.ParentSong = song;
            song.ChordStreams.Add(stream1);

            var stream2 = new ChordStream();

            #region Left Hand

            #region Page 1

            LeftSection1(stream2);
            LeftSection2(stream2);
            LeftSection3(stream2);
            LeftSection2(stream2);
            LeftSection3(stream2);
            LeftSection6(stream2);
            LeftSection7(stream2);
            LeftSection6(stream2);
            LeftSection9(stream2);
            LeftSection6(stream2);
            LeftSection7(stream2);
            LeftSection6(stream2);
            LeftSection9(stream2);
            LeftSection14(stream2);

            #endregion

            #region Page 2

            LeftSection15(stream2);
            LeftSection14(stream2);
            LeftSection1(stream2);
            LeftSection2(stream2);
            LeftSection3(stream2);
            LeftSection2(stream2);
            LeftSection3(stream2);
            LeftSection22(stream2);
            LeftSection23(stream2);
            LeftSection22(stream2);
            LeftSection25(stream2);
            LeftSection22(stream2);
            LeftSection23(stream2);
            LeftSection22(stream2);
            LeftSection25(stream2);
            LeftSection14(stream2);
            LeftSection15(stream2);
            LeftSection14(stream2);

            #endregion

            #region Page 3

            LeftSection1(stream2);
            LeftSection22(stream2);
            LeftSection23(stream2);
            LeftSection22(stream2);
            LeftSection25(stream2);
            LeftSection38(stream2);
            LeftSection39(stream2);

            #endregion

            #endregion

            stream2.ParentSong = song;
            song.ChordStreams.Add(stream2);

            return(song);
        }
コード例 #42
0
ファイル: Chord.cs プロジェクト: Helpfully/UnityMusicalGame
    private void CreateChord(ChordStream parentStream, int length, int[] notes)
    {
        Notes = new List<Note>();

        foreach (var item in notes)
        {
            if (item == -1)
            {
                isSilence = true;
                break;
            }
            var note = new Note();
            note.Length = (NoteLength)length;
            note.ParentChord = this;
            note.Tone = (Tones)item;

            Notes.Add(note);
        }
        Length = (NoteLength)length;
        ParentChordStream = parentStream;
        parentStream.chords.Add(this);
    }
コード例 #43
0
 private static void LeftSection23(ChordStream stream2)
 {
     #region Section23
     new Chord(stream2, N8, RE2);
     new Chord(stream2, N16, Silence);
     new Chord(stream2, N16, FA2);
     new Chord(stream2, N8, SO2);
     new Chord(stream2, N8, SI2);
     new Chord(stream2, N8, SO2);
     new Chord(stream2, N8, SO2);
     new Chord(stream2, N16, DO3);
     new Chord(stream2, N16, DO3);
     new Chord(stream2, N8, SO2);
     #endregion
 }
コード例 #44
0
 private static void RightSection22(ChordStream stream2)
 {
     #region Section 22
     new Chord(stream2, N16, MI4);
     new Chord(stream2, N8, DO4);
     new Chord(stream2, N16, SO3);
     new Chord(stream2, N8, Silence);
     new Chord(stream2, N8, SOS3);
     new Chord(stream2, N16, LA3);
     new Chord(stream2, N8, FA4);
     new Chord(stream2, N16, FA4);
     new Chord(stream2, N4, LA3).SetStaccato(true);
     #endregion
 }
コード例 #45
0
 private static void LeftSection15(ChordStream stream2)
 {
     #region Section 15
     new Chord(stream2, N8, SOS1);
     new Chord(stream2, N16, Silence);
     new Chord(stream2, N16, RES2);
     new Chord(stream2, N8, Silence);
     new Chord(stream2, N8, SOS2);
     new Chord(stream2, N8, SO2);
     new Chord(stream2, N16, Silence);
     new Chord(stream2, N16, DO2);
     new Chord(stream2, N8, Silence);
     new Chord(stream2, N8, SO1);
     #endregion
 }
コード例 #46
0
 private static void RightSection15(ChordStream stream1)
 {
     #region Section 15
     new Chord(stream1, N16, DO4);
     new Chord(stream1, N8, DO4);
     new Chord(stream1, N16, DO4);
     new Chord(stream1, N16, Silence);
     new Chord(stream1, N16, DO4);
     new Chord(stream1, N16, RE4);
     new Chord(stream1, N16, MI4);
     new Chord(stream1, N2, Silence);
     #endregion
 }
コード例 #47
0
 private static void LeftSection1(ChordStream stream2)
 {
     #region Section 1
     new Chord(stream2, N16, RE2);
     new Chord(stream2, N8, RE2);
     new Chord(stream2, N16, RE2);
     new Chord(stream2, N16, Silence);
     new Chord(stream2, N16, RE2);
     new Chord(stream2, N8, RE2);
     new Chord(stream2, N4, SO2).SetStaccato(true);
     new Chord(stream2, N4, SO1).SetStaccato(true);
     #endregion
 }
コード例 #48
0
 private static void LeftSection39(ChordStream stream2)
 {
     #region Section 39
     new Chord(stream2, N1, DO2);
     #endregion
 }
コード例 #49
0
 private static void LeftSection7(ChordStream stream2)
 {
     #region Section 7
     new Chord(stream2, N8, DO2);
     new Chord(stream2, N16, Silence);
     new Chord(stream2, N16, MI2);
     new Chord(stream2, N8, Silence);
     new Chord(stream2, N16, SO2);
     new Chord(stream2, N16, DO3);
     new Chord(stream2, N4, Silence);
     new Chord(stream2, N8, Silence);
     new Chord(stream2, N8, SO2);
     #endregion
 }
コード例 #50
0
 private static void RightSection25(ChordStream stream1)
 {
     #region Section 25
     new Chord(stream1, N16, SI3);
     new Chord(stream1, N8, FA4);
     new Chord(stream1, N16, FA4);
     new Chord(stream1, (N4 / 16.0f) / 3.0f, FA4);
     new Chord(stream1, (N4 / 16.0f) / 3.0f, MI4);
     new Chord(stream1, (N4 / 16.0f) / 3.0f, RE4);
     new Chord(stream1, N16, DO4);
     new Chord(stream1, N8, SO3);
     new Chord(stream1, N16, SO3);
     new Chord(stream1, N4, DO3).SetStaccato(true);
     #endregion
 }
コード例 #51
0
 public void PlayStream(ChordStream stream)
 {
 }
コード例 #52
0
 private static void RightSection14(ChordStream stream1)
 {
     #region Section 14
     new Chord(stream1, N16, DO4);
     new Chord(stream1, N8, DO4);
     new Chord(stream1, N16, DO4);
     new Chord(stream1, N16, Silence);
     new Chord(stream1, N16, DO4);
     new Chord(stream1, N8, RE4);
     new Chord(stream1, N16, MI4);
     new Chord(stream1, N8, DO4);
     new Chord(stream1, N16, LA3);
     new Chord(stream1, N4, SO3).SetStaccato(true);
     #endregion
 }
コード例 #53
0
ファイル: Chord.cs プロジェクト: Helpfully/UnityMusicalGame
 public Chord(ChordStream parentStream, int length, params int[] notes)
 {
     CreateChord(parentStream, length, notes);
 }
コード例 #54
0
 private static void RightSection7(ChordStream stream1)
 {
     #region Section 7
     new Chord(stream1, N8, Silence);
     new Chord(stream1, N16, SO4);
     new Chord(stream1, N16, FAS4);
     new Chord(stream1, N16, FA4);
     new Chord(stream1, N8, RES4);
     new Chord(stream1, N16, MI4);
     new Chord(stream1, N16, Silence);
     new Chord(stream1, N16, FA4, DO5);
     new Chord(stream1, N16, Silence);
     new Chord(stream1, N16, FA4, DO5);
     new Chord(stream1, N4, FA4, DO5).SetStaccato(true);
     #endregion
 }
コード例 #55
0
 private static void RightSection39(ChordStream stream1)
 {
     #region Section 39
     new Chord(stream1, N8, MI3, SO3);
     new Chord(stream1, N8, RE3);
     new Chord(stream1, N1, MI3);
     #endregion
 }
コード例 #56
0
ファイル: Chord.cs プロジェクト: Helpfully/UnityMusicalGame
 public Chord(ChordStream parentStream, NoteLength length, params int[] notes)
 {
     CreateChord(parentStream, (int)length, notes);
 }
コード例 #57
0
 private static void RightSection6(ChordStream stream1)
 {
     #region Section 6
     new Chord(stream1, N8, Silence);
     new Chord(stream1, N16, SO4);
     new Chord(stream1, N16, FAS4);
     new Chord(stream1, N16, FA4);
     new Chord(stream1, N8, RES4);
     new Chord(stream1, N16, MI4);
     new Chord(stream1, N16, Silence);
     new Chord(stream1, N16, SOS3);
     new Chord(stream1, N16, LA3);
     new Chord(stream1, N16, DO4);
     new Chord(stream1, N16, Silence);
     new Chord(stream1, N16, LA3);
     new Chord(stream1, N16, DO4);
     new Chord(stream1, N16, RE4);
     #endregion
 }
コード例 #58
0
ファイル: Chord.cs プロジェクト: Helpfully/UnityMusicalGame
 public Chord(ChordStream parentStream, NoteLength length, params int[] notes)
 {
     CreateChord(parentStream, (int)length, notes);
 }