This commit is contained in:
2024-08-07 09:16:27 -04:00
parent fdfadd5c7e
commit 5f971cf684
5200 changed files with 731717 additions and 0 deletions

28
guitar/FrettedNotes.cpp Normal file
View File

@@ -0,0 +1,28 @@
#include <guitar/FrettedNotes.hpp>
#include <midiseq/midiout.hpp>
bool FrettedNotes::play(MIDIOutputDevice &midiDevice)
{
String strNotes;
if(!midiDevice.hasDevice())return false;
// ::OutputDebugString(String(toString()+String("\n")).str());
for(int index=0;index<size();index++)
{
FrettedNote &frettedNote=operator[](index);
frettedNote.noteOn(midiDevice);
}
delay();
return true;
}
String FrettedNotes::toString(void)const
{
String str;
for(int index=0;index<size();index++)
{
str+=((Block<FrettedNote>&)*this).operator[](index).toString();
if(index<size()-1)str+=",";
}
return str;
}