MCPcopy Create free account
hub / github.com/DamRsn/NeuralNote / _BPMToMicrosecondsPerQuarterNote

Method _BPMToMicrosecondsPerQuarterNote

Lib/MidiFile/MidiFileWriter.cpp:93–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91}
92
93double MidiFileWriter::_BPMToMicrosecondsPerQuarterNote(double inTempoBPM)
94{
95 // Beats per second
96 double bps = inTempoBPM / 60.0;
97 // Seconds per beat
98 double spb = 1 / bps;
99 // Microseconds per beat
100 return 1.0e6 * spb;
101}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected