Closed alyssais closed 1 month ago
thanks for noticing this ! most likely at some point in the future it will change again to have an error being brought up if someone wants to use an invalid ppq value, as right now someone may just do ticksPerQuarterNote = 1e14; and things will still compile & run
also spent some time improving the big endian code with C++20 while I was checking this :)
This is passed to util::write_uint16_be(), which could cause a truncation if it was set to a value that didn't fit into a 16-bit unsigned integer.
This produced the following compiler warning for me: