Skip to content

Commit

Permalink
Fix possible noise when normalizing bitinvader
Browse files Browse the repository at this point in the history
  • Loading branch information
zonkmachine committed Jan 23, 2021
1 parent e900576 commit 04d696a
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions plugins/bit_invader/bit_invader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) ) );

}


Expand Down

0 comments on commit 04d696a

Please sign in to comment.