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:
Paul Giblock
2008-06-02 05:02:09 +00:00
parent 1f42dadbd1
commit d188056683
16 changed files with 530 additions and 236 deletions

View File

@@ -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() )
{