File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 33GENERATOR = Ninja
44CONFIG = Release
55PLATFORM = -DCMAKE_OSX_ARCHITECTURES=arm64
6- OPTIONS = -DLOGGING=ON -DCHRONO=ON -DWARNINGS=ON
6+ OPTIONS = -DLOGGING=ON -DCHRONO=ON -DWARNINGS=OFF
77
88PLUGIN = Robotone
99INPUT = .
Original file line number Diff line number Diff line change @@ -31,7 +31,8 @@ inline double radian_to_hertz(const double samplerate)
3131}
3232
3333// https://newt.phys.unsw.edu.au/jw/notes.html
34- inline double midi_to_hertz (const double midi, const double concertpitch)
34+ template <typename T>
35+ inline double midi_to_hertz (const T midi, const double concertpitch)
3536{
36- return std::pow (2 , (midi - 69 ) / 12 ) * concertpitch;
37+ return std::pow (2 , (static_cast < double >( midi) - 69 ) / 12 ) * concertpitch;
3738}
You can’t perform that action at this time.
0 commit comments