Error corrected in Note class

The velocity were not initialized in some cases.
BarFactory update

The method generateRhythm now cares about bar signature times.