experimental time signature support. Background changes and beat bars are currently the only things that are aware of time signature. Note coloring isn't aware of time signature yet.
This commit is contained in:
+11
-1
@@ -33,7 +33,7 @@
|
||||
#include <set>
|
||||
#include <float.h>
|
||||
|
||||
const int FILE_CACHE_VERSION = 154; // increment this to invalidate cache
|
||||
const int FILE_CACHE_VERSION = 156; // increment this to invalidate cache
|
||||
|
||||
const float DEFAULT_MUSIC_SAMPLE_LENGTH = 12.f;
|
||||
|
||||
@@ -689,6 +689,16 @@ void Song::TidyUpData()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* If no time signature specified, assume 4/4 time for the whole song. */
|
||||
if( m_Timing.m_vTimeSignatureSegments.empty() )
|
||||
{
|
||||
TimeSignatureSegment seg;
|
||||
seg.m_iStartRow = 0;
|
||||
seg.m_iNumerator = 4;
|
||||
seg.m_iDenominator = 4;
|
||||
m_Timing.m_vTimeSignatureSegments.push_back( seg );
|
||||
}
|
||||
}
|
||||
|
||||
void Song::TranslateTitles()
|
||||
|
||||
Reference in New Issue
Block a user