Automatically assign a midi input device to the selected track (#5499)

This commit is contained in:
Luna Nooteboom
2020-06-21 04:17:05 +02:00
committed by GitHub
parent 82f413568d
commit 5d7e6720e1
8 changed files with 94 additions and 0 deletions

View File

@@ -219,6 +219,8 @@ public:
return m_previewMode;
}
void autoAssignMidiDevice( bool );
signals:
void instrumentChanged();
void midiNoteOn( const Note& );
@@ -260,6 +262,9 @@ private:
bool m_previewMode;
bool m_hasAutoMidiDev;
static InstrumentTrack *s_autoAssignedTrack;
IntModel m_baseNoteModel;
NotePlayHandleList m_processHandles;

View File

@@ -178,6 +178,7 @@ protected:
void resizeEvent( QResizeEvent * re ) override;
void wheelEvent( QWheelEvent * we ) override;
void focusOutEvent( QFocusEvent * ) override;
void focusInEvent( QFocusEvent * ) override;
int getKey( int y ) const;
void drawNoteRect( QPainter & p, int x, int y,

View File

@@ -56,6 +56,7 @@ protected:
void mouseReleaseEvent( QMouseEvent * me ) override;
void mouseMoveEvent( QMouseEvent * me ) override;
void focusOutEvent( QFocusEvent * _fe ) override;
void focusInEvent( QFocusEvent * fe ) override;
void resizeEvent( QResizeEvent * _event ) override;

View File

@@ -175,6 +175,7 @@ private:
QComboBox * m_midiInterfaces;
MswMap m_midiIfaceSetupWidgets;
trMap m_midiIfaceNames;
QComboBox * m_assignableMidiDevices;
// Paths settings widgets.
QString m_workingDir;