fixed automationPattern::length() for cases where the key of the last value was the first tick in a new tact
git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1663 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
@@ -1,5 +1,9 @@
|
||||
2008-09-21 Tobias Doerffel <tobydox/at/users/dot/sourceforge/dot/net>
|
||||
|
||||
* src/core/automation_pattern.cpp:
|
||||
fixed automationPattern::length() for cases where the key of the
|
||||
last value was the first tick in a new tact
|
||||
|
||||
* plugins/ladspa_effect/cmt/src/delay.cpp:
|
||||
initialize CMT_PluginDescriptor with correct number of ports
|
||||
|
||||
|
||||
@@ -148,11 +148,6 @@ midiTime automationPattern::length( void ) const
|
||||
{
|
||||
max_length = tMax<tick>( max_length, it.key() );
|
||||
}
|
||||
if( max_length % DefaultTicksPerTact == 0 )
|
||||
{
|
||||
return( midiTime( tMax<tick>( max_length,
|
||||
DefaultTicksPerTact ) ) );
|
||||
}
|
||||
return( midiTime( tMax( midiTime( max_length ).getTact() + 1, 1 ),
|
||||
0 ) );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user