Minor improvements to effect rack and controls

git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@944 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
Paul Giblock
2008-04-29 03:53:21 +00:00
parent 21049cf3d0
commit 96ba8ef3e6
5 changed files with 47 additions and 2 deletions

View File

@@ -108,6 +108,9 @@ public:
{
if( m_controller != NULL )
{
/*return minValue() + castValue( m_range *
m_equation->evaluate();*/
return minValue() + castValue( m_range *
m_controller->currentValue( _frameOffset ) );
}
@@ -115,6 +118,17 @@ public:
return m_value;
}
// TODO: Combine factory and equation?
/*
setMappingEquation( string eq )
{
modelSymbolFactory factory( this );
equationCompiler cmp( factory );
m_equation = cmp.compile( eq );
}
*/
inline controller * getController( void ) const
{