Skip to content

Conversation

@zonkmachine
Copy link
Contributor

Fixed the noise on switching instrument. This is apparent especially when switching from Tubular Bells to Uniform Bar.

@zonkmachine zonkmachine force-pushed the malletsSilenceOnSwitch branch from c78e093 to 268a851 Compare August 19, 2016 21:53
@zonkmachine zonkmachine changed the title SilenceAllNotes() on every instrument switch removes loud transient n… SilenceAllNotes() on every instrument switch. Aug 19, 2016
@zonkmachine zonkmachine changed the title SilenceAllNotes() on every instrument switch. Mallets. SilenceAllNotes() on instrument switch. Aug 19, 2016
@zonkmachine zonkmachine merged commit 8fa5afb into LMMS:master Aug 20, 2016
@zonkmachine zonkmachine deleted the malletsSilenceOnSwitch branch August 20, 2016 09:24
@PhysSong
Copy link
Member

This is apparent especially when switching from Tubular Bells to Uniform Bar.

I looked at the malletsInstrument constructor and found that the volume multiplier is different among presets. Tubular Bells has the smallest value and Uniform Bar has the largest one.

// TubeBell
m_presetsModel.addItem( tr( "Tubular Bells" ) );
m_scalers.append( 1.8 );
// BandedWG
m_presetsModel.addItem( tr( "Uniform Bar" ) );
m_scalers.append( 25.0 );

The problem is that Mallets uses the global multiplier. If we pass the multiplier to malletsSynth and use it, this workaround may be removed.

@zonkmachine
Copy link
Contributor Author

Cool!

@zonkmachine
Copy link
Contributor Author

If we pass the multiplier to malletsSynth and use it, this workaround may be removed.

Do you mean in a similar way to how we send pitch information in setFrequency() but for volume?

inline void setFrequency( const StkFloat _pitch )
{
if( m_voice )
{
m_voice->setFrequency( _pitch );
}
}

@PhysSong
Copy link
Member

PhysSong commented Feb 2, 2020

Do you mean in a similar way to how we send pitch information in setFrequency() but for volume?

I'd rather set the value in the malletsSynth constructor.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants