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)
| 136 | |
| 137 | |
| 138 | def 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 | |
| 154 | def stop_Note(note, channel=1): |