Symphonary.StringAllocator.AllocateNotes C# (CSharp) Method

AllocateNotes() public method

public AllocateNotes ( Note notes ) : void
notes Note
return void
        public void AllocateNotes(Note[] notes)
        {
            foreach (Note note in notes)
            {
                AddNote(note);
            }

            allocSingleArr = new GuitarNote[notes.Length - NumDroppedNotes];
            int j = 0;
            for (int i = 0; i < alloc.Length; i++)
            {
                foreach (GuitarNote guitarNote in alloc[i])
                {
                    allocSingleArr[j] = guitarNote;
                    j++;
                }
            }
            Array.Sort(allocSingleArr);
        }