All the data we need to fill our jMax sequence object have been read from file or calculated. The creation algorithm is the following:
BEGIN
for each note
if(pitch == 128)
event_type = rest
else
event_type = note
set note pitch
endif
set event duration
set event velocity
set event index
create new object
fill object with event
add event to track
end for
END
Our score is now complete: We have filled our internal model and the jMax sequence will be used by the score follower as its reference score.