mirror of
https://github.com/LMMS/lmms.git
synced 2026-03-22 07:53:21 -04:00
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:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user