Fix possible noise when normalizing bitinvader
This commit is contained in:
@@ -140,22 +140,19 @@ sample_t bSynth::nextStringSample( float sample_length )
|
||||
|
||||
bitInvader::bitInvader( InstrumentTrack * _instrument_track ) :
|
||||
Instrument( _instrument_track, &bitinvader_plugin_descriptor ),
|
||||
m_sampleLength(128, 4, wavetableSize, 1, this, tr("Sample length")),
|
||||
m_sampleLength(wavetableSize, 4, wavetableSize, 1, this, tr("Sample length")),
|
||||
m_graph(-1.0f, 1.0f, wavetableSize, this),
|
||||
m_interpolation( false, this ),
|
||||
m_normalize( false, this )
|
||||
{
|
||||
|
||||
lengthChanged();
|
||||
|
||||
m_graph.setWaveToSine();
|
||||
lengthChanged();
|
||||
|
||||
connect( &m_sampleLength, SIGNAL( dataChanged( ) ),
|
||||
this, SLOT( lengthChanged( ) ), Qt::DirectConnection );
|
||||
|
||||
connect( &m_graph, SIGNAL( samplesChanged( int, int ) ),
|
||||
this, SLOT( samplesChanged( int, int ) ) );
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user