Skip to content

Commit

Permalink
Added SFixMath to mtof
Browse files Browse the repository at this point in the history
  • Loading branch information
tomcombriat committed Dec 18, 2023
1 parent b6bd60f commit 012ea08
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions mozzi_midi.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,10 @@ template<byte NI, byte NF>
return Q16n16_mtof(UFixMath<16,16>(midival).asRaw());
}

template<byte NI, byte NF>
inline UFixMath<16,16> mtof(SFixMath<NI,NF> midival)
{
return Q16n16_mtof(UFixMath<16,16>(midival).asRaw());
}

#endif /* MOZZI_MIDI_H_ */

0 comments on commit 012ea08

Please sign in to comment.