Initial
This commit is contained in:
14
midiwrt/PURENOTE.CPP
Normal file
14
midiwrt/PURENOTE.CPP
Normal file
@@ -0,0 +1,14 @@
|
||||
#include <midiwrt/purenote.hpp>
|
||||
|
||||
WORD PureNote::readNote(FileIO &musFile)
|
||||
{
|
||||
BYTE byteValue;
|
||||
|
||||
if(!musFile.read(byteValue))return FALSE;
|
||||
mNoteNumber=(byteValue&0x7F);
|
||||
if(!(mHasVolume=(byteValue&0x80)))return TRUE;;
|
||||
if(!musFile.read(byteValue))return FALSE;
|
||||
mNoteVolume=(byteValue&0x7F);
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user