mirror of
https://github.com/LMMS/lmms.git
synced 2026-05-24 14:47:15 -04:00
Add initial controller support for MIDI CC and various tweaks
git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1040 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
@@ -48,7 +48,7 @@ controller::controller( ControllerTypes _type, model * _parent ) :
|
||||
journallingObject(),
|
||||
m_type( _type )
|
||||
{
|
||||
if( _type != DummyController )
|
||||
if( _type != DummyController && _type != MidiController )
|
||||
{
|
||||
s_controllers.append( this );
|
||||
m_name = QString( tr( "Controller %1" ) )
|
||||
@@ -60,7 +60,11 @@ controller::controller( ControllerTypes _type, model * _parent ) :
|
||||
|
||||
controller::~controller()
|
||||
{
|
||||
s_controllers.remove( s_controllers.indexOf( this ) );
|
||||
int idx = s_controllers.indexOf( this );
|
||||
if( idx >= 0 )
|
||||
{
|
||||
s_controllers.remove( idx );
|
||||
}
|
||||
|
||||
if( engine::getSong() )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user