You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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).
The text was updated successfully, but these errors were encountered:
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).The text was updated successfully, but these errors were encountered: