NYUMusEdLab/aqwertyon — pull request #5 by therewasaguy (2014-10-21 03:12:11+00:00)
Title: a new way to log events

all events are logged in the eventLog JSON object.

It has an array of Take objects that each store an array of notes with [time, MIDInote, type]. Type can either be 'attack or 'release'. The take also knows its start and end time, so it can stop the video.

Events that aren't part of a take are logged in eventLog.take[0].

You can choose a take from the dropdown.

I found that when I first scheduled all of the Attacks, and then all of the Releases, in the playTake function, the releases were not scheduled in time and so we missed some notes. This way, all of the notes in the take are scheduled chronologically and it's been working ok.