Commit 32bf62a5 authored by Gustavo Carneiro's avatar Gustavo Carneiro Committed by Tomaz Canabrava
Browse files

minuet: Update set's properties in fluid synth sound controller.


Signed-off-by: Gustavo Carneiro's avatarGustavo Carneiro <gcarneiroa@hotmail.com>
parent 25795551
......@@ -88,6 +88,7 @@ FluidSynthSoundController::~FluidSynthSoundController()
void FluidSynthSoundController::setPitch(qint8 pitch)
{
if (m_pitch != pitch) { return; }
m_pitch = pitch;
fluid_synth_cc(m_synth, 1, 101, 0);
fluid_synth_cc(m_synth, 1, 6, 12);
......@@ -97,6 +98,7 @@ void FluidSynthSoundController::setPitch(qint8 pitch)
void FluidSynthSoundController::setVolume(quint8 volume)
{
if (m_volume != volume) { return }
m_volume = volume;
fluid_synth_cc(m_synth, 1, 7, m_volume * 127 / 200);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment