MCPcopy Create free account
hub / github.com/RomanKubiak/ctrlr / getRawData

Function getRawData

Source/Core/CtrlrUtilities.cpp:483–500  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

481}
482
483const String getRawData(const MidiMessage &m, const bool rawInDecimal)
484{
485 if (rawInDecimal)
486 {
487 String ret;
488 uint8 *ptr = (uint8 *)m.getRawData();
489 for (int i=0; i<m.getRawDataSize(); i++)
490 {
491 ret << String::formatted ("%.3d", (int)*(ptr+i));
492 ret << " ";
493 }
494 return (" RAW:["+ret.trim()+"]");
495 }
496 else
497 {
498 return (" RAW:["+String::toHexString (m.getRawData(), m.getRawDataSize())+"]");
499 }
500}
501
502const String getTimestamp(const MidiMessage &m)
503{

Callers 1

Calls 4

formattedFunction · 0.85
toHexStringFunction · 0.85
getRawDataMethod · 0.45
trimMethod · 0.45

Tested by

no test coverage detected