mm.Player with callback

An mm.Player also takes an optional CallbackObject, which allows you to specify a method to be called after every played note. This is useful if you want to sync the audio to a visualization, like below.

Piano

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Drums