Exemplo n.º 1
0
        private IEnumerable <Note> CreateNotes(string[] timesAndLengths,
                                               SevenBitNumber noteNumber,
                                               FourBitNumber channel,
                                               TempoMap tempoMap)
        {
            var notes = ObjectMethods.CreateCollection(tempoMap, timesAndLengths);

            foreach (var note in notes)
            {
                note.NoteNumber = noteNumber;
                note.Channel    = channel;
            }

            return(notes);
        }