// Update is called once per frame
 void Update()
 {
     timer += Time.deltaTime;
     if (Input.anyKeyDown)
     {
         index++;
         cosc.transform.localScale = new Vector3(2, 2, 2);
         AddNote(NoteFactory.PlayNote(Random.Range(0, 20), secondsPer));
     }
     playingNotes.RemoveAll(x => x.IsDead());
     foreach (Note note in playingNotes)
     {
         note.Update();
     }
 }