functional programming for music (prototyping)