MCPcopy Create free account
hub / github.com/bspaans/python-mingus / set_velocity

Method set_velocity

mingus/containers/note.py:95–98  ·  view source on GitHub ↗
(self, velocity)

Source from the content-addressed store, hash-verified

93 self.channel = channel
94
95 def set_velocity(self, velocity):
96 if not 0 <= velocity < 128:
97 raise ValueError("MIDI velocity must be 0-127")
98 self.velocity = velocity
99
100 def set_note(self, name="C", octave=4, dynamics=None, velocity=None, channel=None):
101 """Set the note to name in octave with dynamics.

Callers 1

set_noteMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected