Support resampled playrate changes for non stretched playback

This commit is contained in:
xenakios
2018-08-20 15:49:51 +03:00
parent d0f912ba1f
commit 8d008e5d2e
6 changed files with 29 additions and 3 deletions

View File

@ -119,7 +119,7 @@ PaulstretchpluginAudioProcessorEditor::PaulstretchpluginAudioProcessorEditor(Pau
m_parcomps.push_back(nullptr);
}
}
//m_parcomps[cpi_dryplayrate]->getSlider()->setSkewFactorFromMidPoint(1.0);
//addAndMakeVisible(&m_specvis);
m_wave_container->addAndMakeVisible(&m_zs);
m_zs.RangeChanged = [this](Range<double> r)
@ -375,6 +375,9 @@ void PaulstretchpluginAudioProcessorEditor::resized()
xoffs += div;
m_parcomps[cpi_soundend]->setBounds(xoffs, yoffs, div - 1, 24);
yoffs += 25;
xoffs = 1;
m_parcomps[cpi_dryplayrate]->setBounds(xoffs, yoffs, getWidth() - 2, 24);
yoffs += 25;
int remain_h = getHeight() - 1 - yoffs;
m_spec_order_ed.setBounds(1, yoffs, getWidth() - 2, remain_h / 9 * 1);
m_wavefilter_tab.setBounds(1, m_spec_order_ed.getBottom() + 1, getWidth() - 2, remain_h / 9 * 8);