コード例 #1
0
ファイル: Player.cs プロジェクト: popcron/synthy
            public Note(string instrument, Synthy.Note note, InstancedPattern instancedPattern)
            {
                this.instrument = instrument;
                this.note       = note;

                start = note.start + instancedPattern.time;
                end   = note.end + instancedPattern.time;
            }
コード例 #2
0
ファイル: Player.cs プロジェクト: popcron/synthy
        private Note Get(Synthy.Note note)
        {
            for (int i = 0; i < notesPlaying.Count; i++)
            {
                if (notesPlaying[i].note == note)
                {
                    return(notesPlaying[i]);
                }
            }

            return(null);
        }
コード例 #3
0
ファイル: Player.cs プロジェクト: popcron/synthy
        private bool Exists(Synthy.Note note)
        {
            for (int i = 0; i < notesPlaying.Count; i++)
            {
                if (notesPlaying[i].note == note)
                {
                    return(true);
                }
            }

            return(false);
        }