changed internal MIDI-time-resolution from 64th to 192th resulting for example in better MIDI-import and allowing to use triplet-notes in LMMS

git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@908 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
Tobias Doerffel
2008-04-09 22:16:52 +00:00
parent 464913a2c4
commit 2fcd8150d9
27 changed files with 453 additions and 374 deletions

View File

@@ -45,7 +45,7 @@
bool engine::s_hasGUI = TRUE;
float engine::s_framesPerTact64th;
float engine::s_framesPerTick;
mixer * engine::s_mixer = NULL;
fxMixer * engine::s_fxMixer = NULL;
fxMixerView * engine::s_fxMixerView = NULL;
@@ -152,10 +152,10 @@ void engine::destroy( void )
void engine::updateFramesPerTact64th( void )
void engine::updateFramesPerTick( void )
{
s_framesPerTact64th = s_mixer->sampleRate() * 60.0f * BEATS_PER_TACT
/ 64.0f / s_song->getTempo();
s_framesPerTick = s_mixer->sampleRate() * 60.0f * 4 /
DefaultTicksPerTact / s_song->getTempo();
}