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

Method loadTextFile

Source/UIComponents/CtrlrMIDI/CtrlrMIDIBuffer.cpp:589–603  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

587}
588
589void CtrlrMIDIBuffer::loadTextFile(const File fileToOpen)
590{
591 if (fileToOpen == File())
592 {
593 lastFile = browseForFile("*.syx;*.bin;*.dat;*.*");
594 }
595 else
596 {
597 lastFile = fileToOpen;
598 }
599
600 MemoryBlock tmp;
601 tmp.loadFromHexString (lastFile.loadFileAsString());
602 reloadEditor (lastFile.loadFileAsString(), true);
603}
604
605CtrlrMIDIBufferTokenSet CtrlrMIDIBuffer::getTokenSetFromMenu()
606{

Callers

nothing calls this directly

Calls 3

FileClass · 0.85
loadFileAsStringMethod · 0.80
loadFromHexStringMethod · 0.45

Tested by

no test coverage detected