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

Function play_Note

mingus/midi/fluidsynth.py:138–151  ·  view source on GitHub ↗

Convert a Note object to a 'midi on' command. The channel and velocity can be set as Note attributes as well. If that's the case those values take presedence over the ones given here as function arguments. Example: >>> n = Note('C', 4) >>> n.channel = 9 >>> n.velocity =

(note, channel=1, velocity=100)

Source from the content-addressed store, hash-verified

136
137
138def play_Note(note, channel=1, velocity=100):
139 """Convert a Note object to a 'midi on' command.
140
141 The channel and velocity can be set as Note attributes as well. If
142 that's the case those values take presedence over the ones given here as
143 function arguments.
144
145 Example:
146 >>> n = Note('C', 4)
147 >>> n.channel = 9
148 >>> n.velocity = 50
149 >>> FluidSynth.play_Note(n)
150 """
151 return midi.play_Note(note, channel, velocity)
152
153
154def stop_Note(note, channel=1):

Callers

nothing calls this directly

Calls 1

play_NoteMethod · 0.45

Tested by

no test coverage detected