Dynamics of jazz