Fix possible noise when normalizing bitinvader

This commit is contained in:
Oskar Wallgren
2021-01-02 13:05:43 +01:00
parent e900576dbd
commit 04d696a1e9

View File

@@ -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 ) ) );
}