added missing Q_OBJECT-macros for views which made localizations not work
git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@784 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
@@ -299,7 +299,8 @@ arpeggiator::arpeggiator( instrumentTrack * _instrument_track ) :
|
||||
m_arpModel.setTrack( _instrument_track );
|
||||
for( int i = 0; chordCreator::s_chordTable[i].interval[0] != -1; ++i )
|
||||
{
|
||||
m_arpModel.addItem( tr( chordCreator::s_chordTable[i].
|
||||
m_arpModel.addItem( chordCreator::tr(
|
||||
chordCreator::s_chordTable[i].
|
||||
name.toAscii().constData() ) );
|
||||
}
|
||||
|
||||
@@ -537,4 +538,6 @@ void arpeggiator::loadSettings( const QDomElement & _this )
|
||||
}
|
||||
|
||||
|
||||
#include "instrument_functions.moc"
|
||||
|
||||
#endif
|
||||
|
||||
@@ -399,73 +399,6 @@ void instrumentSoundShaping::loadSettings( const QDomElement & _this )
|
||||
|
||||
|
||||
|
||||
//#include "instrument_sound_shaping.moc"
|
||||
|
||||
/*
|
||||
|
||||
|
||||
const long double coeff[5][11]= {
|
||||
{
|
||||
///A
|
||||
8.11044e-06,
|
||||
8.943665402, -36.83889529, 92.01697887, -154.337906, 181.6233289,
|
||||
-151.8651235, 89.09614114, -35.10298511, 8.388101016, -0.923313471
|
||||
},
|
||||
{
|
||||
///E
|
||||
4.36215e-06,
|
||||
8.90438318, -36.55179099, 91.05750846, -152.422234, 179.1170248,
|
||||
-149.6496211,87.78352223, -34.60687431, 8.282228154, -0.914150747
|
||||
},
|
||||
{
|
||||
///I
|
||||
3.33819e-06,
|
||||
8.893102966, -36.49532826, 90.96543286, -152.4545478, 179.4835618,
|
||||
-150.315433, 88.43409371, -34.98612086, 8.407803364, -0.932568035
|
||||
},
|
||||
{
|
||||
///O
|
||||
1.13572e-06,
|
||||
8.994734087, -37.2084849, 93.22900521, -156.6929844, 184.596544,
|
||||
-154.3755513, 90.49663749, -35.58964535, 8.478996281, -0.929252233
|
||||
},
|
||||
{
|
||||
///U
|
||||
4.09431e-07,
|
||||
8.997322763, -37.20218544, 93.11385476, -156.2530937, 183.7080141,
|
||||
-153.2631681, 89.59539726, -35.12454591, 8.338655623, -0.910251753
|
||||
}
|
||||
};
|
||||
//-----------------------------------------------------------------------------
|
||||
static long double memory[10]={0,0,0,0,0,0,0,0,0,0};
|
||||
//------------------------------------------------------------------------------
|
||||
inline float formant_filter(float in, int vowelnum)
|
||||
{
|
||||
float res= (float) ( coeff[vowelnum][0] *in +
|
||||
coeff[vowelnum][1] *memory[0] +
|
||||
coeff[vowelnum][2] *memory[1] +
|
||||
coeff[vowelnum][3] *memory[2] +
|
||||
coeff[vowelnum][4] *memory[3] +
|
||||
coeff[vowelnum][5] *memory[4] +
|
||||
coeff[vowelnum][6] *memory[5] +
|
||||
coeff[vowelnum][7] *memory[6] +
|
||||
coeff[vowelnum][8] *memory[7] +
|
||||
coeff[vowelnum][9] *memory[8] +
|
||||
coeff[vowelnum][10] *memory[9] );
|
||||
|
||||
memory[9]= memory[8];
|
||||
memory[8]= memory[7];
|
||||
memory[7]= memory[6];
|
||||
memory[6]= memory[5];
|
||||
memory[5]= memory[4];
|
||||
memory[4]= memory[3];
|
||||
memory[3]= memory[2];
|
||||
memory[2]= memory[1];
|
||||
memory[1]= memory[0];
|
||||
memory[0]=(long double) res;
|
||||
return res;
|
||||
}
|
||||
|
||||
*/
|
||||
#include "instrument_sound_shaping.moc"
|
||||
|
||||
#endif
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
/*
|
||||
* midi_client.cpp - base-class for MIDI-clients like ALSA-sequencer-client
|
||||
*
|
||||
* Copyright (c) 2005-2007 Tobias Doerffel <tobydox/at/users.sourceforge.net>
|
||||
* Copyright (c) 2005-2008 Tobias Doerffel <tobydox/at/users.sourceforge.net>
|
||||
* This file partly contains code from Fluidsynth, Peter Hanappe
|
||||
*
|
||||
* This file is part of Linux MultiMedia Studio - http://lmms.sourceforge.net
|
||||
@@ -371,5 +371,4 @@ Uint8 midiClientRaw::eventLength( const Uint8 _event )
|
||||
}
|
||||
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
@@ -253,5 +253,6 @@ void arpeggiatorView::modelChanged( void )
|
||||
|
||||
|
||||
|
||||
#include "instrument_function_views.moc"
|
||||
|
||||
#endif
|
||||
|
||||
@@ -148,3 +148,6 @@ void instrumentSoundShapingView::modelChanged( void )
|
||||
}
|
||||
|
||||
|
||||
|
||||
#include "instrument_sound_shaping_view.moc"
|
||||
|
||||
|
||||
@@ -128,4 +128,5 @@ ladspaControlView::~ladspaControlView()
|
||||
|
||||
|
||||
|
||||
#include "ladspa_control_view.moc"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user