Fix to previous - use value<float>() instead of making an unnecessary new function... also accidentally didn't upload the new image last time
This commit is contained in:
BIN
data/themes/default/pat_rec.png
Normal file
BIN
data/themes/default/pat_rec.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1000 B |
@@ -133,16 +133,6 @@ public:
|
||||
|
||||
float controllerValue( int frameOffset ) const;
|
||||
|
||||
// get value always in float - for automation recording
|
||||
inline float getValue( int frameOffset = 0 ) const
|
||||
{
|
||||
if( unlikely( m_hasLinkedModels || m_controllerConnection != NULL ) )
|
||||
{
|
||||
return controllerValue( frameOffset );
|
||||
}
|
||||
return m_value;
|
||||
}
|
||||
|
||||
template<class T>
|
||||
T initValue() const
|
||||
{
|
||||
|
||||
@@ -493,7 +493,7 @@ void AutomationPattern::processMidiTime( const MidiTime & time )
|
||||
{
|
||||
if( time >= 0 && hasAutomation() && ! m_objects.isEmpty() )
|
||||
{
|
||||
const float value = static_cast<float>( firstObject()->getValue() );
|
||||
const float value = static_cast<float>( firstObject()->value<float>() );
|
||||
if( value != m_lastRecordedValue )
|
||||
{
|
||||
putValue( time, value, true );
|
||||
|
||||
Reference in New Issue
Block a user