[PD] composing a melody using arrays