Currently, setting muspy.DEFAULT_VELOCITY = 100 does not affect muspy.classes.DEFAULT_VELOCITY (still 64). As a result, a newly-created Note(time=0, pitch=60, duration=1) still has a default velocity of 64. We should find a better way to configure these default values globally. One possible way is to store the configuration in a dictionary and provide a function for the users to modify these default values at runtime, pretty much like matplotlib.rcParams (the dictionary) and matplotlib.rc (the function).
Currently, setting
muspy.DEFAULT_VELOCITY = 100
does not affectmuspy.classes.DEFAULT_VELOCITY
(still 64). As a result, a newly-createdNote(time=0, pitch=60, duration=1)
still has a default velocity of 64. We should find a better way to configure these default values globally. One possible way is to store the configuration in a dictionary and provide a function for the users to modify these default values at runtime, pretty much likematplotlib.rcParams
(the dictionary) andmatplotlib.rc
(the function).