flp-import-basics and MIDI-tab-widget-extension

git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@113 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
Tobias Doerffel
2006-03-28 12:02:57 +00:00
parent 387cee03d4
commit 7534b09714
21 changed files with 1433 additions and 58 deletions

View File

@@ -190,7 +190,8 @@ public:
enum fileTypes
{
PROJECT_FILE, PRESET_FILE, SAMPLE_FILE, MIDI_FILE, UNKNOWN
PROJECT_FILE, PRESET_FILE, SAMPLE_FILE, MIDI_FILE, FLP_FILE,
UNKNOWN
} ;
inline fileTypes type( void )
@@ -207,6 +208,7 @@ private:
static QPixmap * s_presetFilePixmap;
static QPixmap * s_sampleFilePixmap;
static QPixmap * s_midiFilePixmap;
static QPixmap * s_flpFilePixmap;
static QPixmap * s_unknownFilePixmap;
QPixmap * m_pix;

View File

@@ -1,7 +1,7 @@
/*
* midi.h - constants, structs etc. concerning MIDI
*
* Copyright (c) 2005 Tobias Doerffel <tobydox/at/users.sourceforge.net>
* Copyright (c) 2005-2006 Tobias Doerffel <tobydox/at/users.sourceforge.net>
*
* This file is part of Linux MultiMedia Studio - http://lmms.sourceforge.net
*
@@ -86,11 +86,23 @@ struct midiEvent
{
m_data.m_sysExDataLen = _data_len;
}
inline Uint16 key( void ) const
{
return( m_data.m_param[0] );
}
inline Uint32 velocity( void ) const
inline Uint16 & key( void )
{
return( m_data.m_param[0] );
}
inline Uint16 velocity( void ) const
{
return( m_data.m_param[1] );
}
inline Uint16 & velocity( void )
{
return( m_data.m_param[1] );
}

View File

@@ -93,6 +93,11 @@ public:
m_inputChannel = _chnl;
}
inline void enableDefaultVelocityForInEvents( const bool _on )
{
m_defaultVelocityForInEventsEnabled = _on;
}
inline Sint8 outputChannel( void ) const
{
return( m_outputChannel );
@@ -103,6 +108,12 @@ public:
m_outputChannel = _chnl;
}
inline void enableDefaultVelocityForOutEvents( const bool _on )
{
m_defaultVelocityForOutEventsEnabled = _on;
}
void FASTCALL processInEvent( const midiEvent & _me,
const midiTime & _time );
@@ -117,6 +128,8 @@ private:
modes m_mode;
Sint8 m_inputChannel;
Sint8 m_outputChannel;
bool m_defaultVelocityForInEventsEnabled;
bool m_defaultVelocityForOutEventsEnabled;
} ;

View File

@@ -82,6 +82,8 @@ public slots:
protected slots:
void inputChannelChanged( int );
void outputChannelChanged( int );
void defaultVelInChanged( bool );
void defaultVelOutChanged( bool );
void readablePortsChanged( void );
void writeablePortsChanged( void );
void activatedReadablePort( QAction * _item );
@@ -99,6 +101,8 @@ private:
lcdSpinBox * m_outputChannelSpinBox;
ledCheckBox * m_receiveCheckBox;
ledCheckBox * m_sendCheckBox;
ledCheckBox * m_defaultVelocityInCheckBox;
ledCheckBox * m_defaultVelocityOutCheckBox;
QMenu * m_readablePorts;
QMenu * m_writeablePorts;