simplified filtering, VST fixes

git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@478 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
Javier Serrano Polo
2007-04-25 20:48:18 +00:00
parent 416d208cc3
commit f94614cd77
11 changed files with 108 additions and 92 deletions

View File

@@ -700,6 +700,8 @@ bool flpImport::tryImport( trackContainer * _tc )
case FLP_FilterParams:
{
// TODO: Dirty hack!
// SIMPLE_FLT_CNT equals to old DOUBLE_LOWPASS
const basicFilters<>::filterTypes
mappedFilter[] =
{
@@ -708,9 +710,9 @@ bool flpImport::tryImport( trackContainer * _tc )
basicFilters<>::BANDPASS_CSG,
basicFilters<>::HIPASS,
basicFilters<>::NOTCH,
basicFilters<>::DOUBLE_LOWPASS,
basicFilters<>::SIMPLE_FLT_CNT,
basicFilters<>::LOWPASS,
basicFilters<>::DOUBLE_LOWPASS
basicFilters<>::SIMPLE_FLT_CNT
} ;
Uint32 * p = (Uint32 *) text;
envelopeTabWidget * etw = it->m_envWidget;

View File

@@ -262,8 +262,10 @@ void vestigeInstrument::setParameter( const QString & _param,
m_plugin->showEditor();
connect( engine::getSongEditor(),
SIGNAL( tempoChanged( bpm_t ) ),
m_plugin, SLOT( setTempo( bpm_t ) ) );
m_plugin, SLOT( setTempo( bpm_t ) ) );
m_plugin->setTempo( engine::getSongEditor()->getTempo() );
connect( engine::getMixer(), SIGNAL( sampleRateChanged() ),
m_plugin, SLOT( updateSampleRate() ) );
if( set_ch_name == TRUE )
{
getInstrumentTrack()->setName( m_plugin->name() );

View File

@@ -453,6 +453,17 @@ void remoteVSTPlugin::setTempo( bpm_t _bpm )
void remoteVSTPlugin::updateSampleRate( void )
{
lock();
writeValueS<Sint16>( VST_SAMPLE_RATE );
writeValueS<sample_rate_t>( engine::getMixer()->sampleRate() );
unlock();
}
const QMap<QString, QString> & remoteVSTPlugin::parameterDump( void )
{
writeValueS<Sint16>( VST_GET_PARAMETER_DUMP );

View File

@@ -127,6 +127,7 @@ public:
public slots:
void setTempo( bpm_t _bpm );
void updateSampleRate( void );
private:

View File

@@ -1,7 +1,7 @@
/*
* lvsl_server.cpp - LMMS VST Support Layer Server
*
* Copyright (c) 2005-2006 Tobias Doerffel <tobydox/at/users.sourceforge.net>
* Copyright (c) 2005-2007 Tobias Doerffel <tobydox/at/users.sourceforge.net>
*
* This file is part of Linux MultiMedia Studio - http://lmms.sourceforge.net
*
@@ -466,6 +466,7 @@ void VSTPlugin::process( void )
for( ch_cnt_t i = 0; i < outputCount(); ++i )
{
m_outputs[i] = &m_shm[( i + inputCount() ) * m_blockSize];
memset( m_outputs[i], 0, m_blockSize * sizeof( float ) );
}
#ifdef OLD_VST_SDK