Skip to content

Commit

Permalink
[examples] Add missing header. Fix #113
Browse files Browse the repository at this point in the history
  • Loading branch information
jcelerier committed Aug 14, 2024
1 parent 3ba4cf9 commit 80ca39c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions examples/midifile_dump.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
#include <libremidi/reader.hpp>

#include <cmath>
#include <fstream>
#include <iomanip>
#include <istream>
#include <iostream>
#include <vector>

int main(int argc, char** argv)
Expand Down Expand Up @@ -154,7 +155,7 @@ int main(int argc, char** argv)
break;
case libremidi::meta_event_type::TIME_SIGNATURE:
std::cout << "TIME_SIGNATURE: " << (int)event.m.bytes[3] << "/"
<< (int)pow(2., event.m.bytes[4]) << ", " << (int)event.m.bytes[5]
<< (int)std::pow(2., event.m.bytes[4]) << ", " << (int)event.m.bytes[5]
<< " clocks per beat, " << (int)event.m.bytes[6]
<< " 32nd notes per quarter note";
break;
Expand Down

0 comments on commit 80ca39c

Please sign in to comment.