(self, velocity)
| 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. |