* replaced instrument::notePlayHandleBased() with instrument::isMidiBased()

* renamed bendable() to isBendable()
* if the instrument is MIDI based and instrument-track's volume is below 100, adjust velocity of MIDI events and scaling factor when mixing sound



git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1715 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
Tobias Doerffel
2008-09-29 19:29:04 +00:00
parent 8a3d31464c
commit 880c322cf6
7 changed files with 37 additions and 23 deletions

View File

@@ -76,9 +76,9 @@ public:
return( 0 );
}
virtual bool notePlayHandleBased( void ) const
virtual bool isMidiBased( void ) const
{
return( FALSE );
return( true );
}
virtual pluginView * instantiateView( QWidget * _parent );

View File

@@ -67,9 +67,9 @@ public:
virtual void waitForWorkerThread( void );
virtual bool notePlayHandleBased( void ) const
virtual bool isMidiBased( void ) const
{
return( FALSE );
return( true );
}
virtual bool handleMidiEvent( const midiEvent & _me,

View File

@@ -21,8 +21,8 @@
* Boston, MA 02110-1301 USA.
*
*/
#ifndef _VIBED_STRINGS_H
#define _VIBED_STRINGS_H
#ifndef _VIBED_H
#define _VIBED_H
#include "instrument.h"
#include "instrument_view.h"
@@ -53,13 +53,14 @@ public:
virtual QString nodeName( void ) const;
inline virtual bool bendable( void ) const
{
return( false );
}
inline virtual bool isBendable( void ) const
{
return( false );
}
virtual pluginView * instantiateView( QWidget * _parent );
private:
QList<knobModel*> m_pickKnobs;
QList<knobModel*> m_pickupKnobs;