Initial
This commit is contained in:
28
guitar/FrettedNotes.cpp
Normal file
28
guitar/FrettedNotes.cpp
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user