Convert the bpm to a midi event and write it to the track_data.
(self, bpm)
| 208 | return self.midi_event(PROGRAM_CHANGE, channel, instr) |
| 209 | |
| 210 | def set_tempo(self, bpm): |
| 211 | """Convert the bpm to a midi event and write it to the track_data.""" |
| 212 | self.bpm = bpm |
| 213 | self.track_data += self.set_tempo_event(self.bpm) |
| 214 | |
| 215 | def set_tempo_event(self, bpm): |
| 216 | """Calculate the microseconds per quarter note.""" |
no test coverage detected