Move code to cpp file. Readme change.
This commit is contained in:
parent
c7f5636634
commit
c9b287dc13
@ -979,3 +979,20 @@ double MySlider::valueToProportionOfLength(double x)
|
|||||||
return m_range->convertTo0to1(x);
|
return m_range->convertTo0to1(x);
|
||||||
return Slider::valueToProportionOfLength(x);
|
return Slider::valueToProportionOfLength(x);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
PerfMeterComponent::PerfMeterComponent(PaulstretchpluginAudioProcessor * p)
|
||||||
|
: m_proc(p)
|
||||||
|
{}
|
||||||
|
|
||||||
|
void PerfMeterComponent::paint(Graphics & g)
|
||||||
|
{
|
||||||
|
g.fillAll(Colours::grey);
|
||||||
|
double amt = m_proc->getPreBufferingPercent();
|
||||||
|
g.setColour(Colours::green);
|
||||||
|
int w = amt * getWidth();
|
||||||
|
g.fillRect(0, 0, w, getHeight());
|
||||||
|
g.setColour(Colours::white);
|
||||||
|
g.drawRect(0, 0, getWidth(), getHeight());
|
||||||
|
g.setFont(10.0f);
|
||||||
|
g.drawText("PREBUFFER", 0, 0, getWidth(), getHeight(), Justification::centred);
|
||||||
|
}
|
||||||
|
@ -78,19 +78,8 @@ private:
|
|||||||
class PerfMeterComponent : public Component
|
class PerfMeterComponent : public Component
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
PerfMeterComponent(PaulstretchpluginAudioProcessor* p) : m_proc(p) {}
|
PerfMeterComponent(PaulstretchpluginAudioProcessor* p);
|
||||||
void paint(Graphics& g) override
|
void paint(Graphics& g) override;
|
||||||
{
|
|
||||||
g.fillAll(Colours::grey);
|
|
||||||
double amt = m_proc->getPreBufferingPercent();
|
|
||||||
g.setColour(Colours::green);
|
|
||||||
int w = amt * getWidth();
|
|
||||||
g.fillRect(0, 0, w, getHeight());
|
|
||||||
g.setColour(Colours::white);
|
|
||||||
g.drawRect(0, 0, getWidth(), getHeight());
|
|
||||||
g.setFont(10.0f);
|
|
||||||
g.drawText("PREBUFFER", 0, 0, getWidth(), getHeight(), Justification::centred);
|
|
||||||
}
|
|
||||||
PaulstretchpluginAudioProcessor* m_proc = nullptr;
|
PaulstretchpluginAudioProcessor* m_proc = nullptr;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -44,8 +44,8 @@ History :
|
|||||||
provide the file name of the source of audio file, so audio clip/event/item specific audio won't be imported)
|
provide the file name of the source of audio file, so audio clip/event/item specific audio won't be imported)
|
||||||
-Removed an unnecessary level of buffering (doesn't reduce latency but should help a bit with CPU usage)
|
-Removed an unnecessary level of buffering (doesn't reduce latency but should help a bit with CPU usage)
|
||||||
-Added About window
|
-Added About window
|
||||||
02-01-2018 1.0.0 preview 5
|
02-02-2018 1.0.0 preview 5
|
||||||
-Added buttons to enable/disable spectral processing steps
|
-Added buttons to enable/disable spectral processing modules
|
||||||
-Restored ability to set capture buffer length (via the settings menu)
|
-Restored ability to set capture buffer length (via the settings menu)
|
||||||
-Seek to play range beginning when audio file imported
|
-Seek to play range beginning when audio file imported
|
||||||
-No longer seeks to beginning of play range when changing FFT size
|
-No longer seeks to beginning of play range when changing FFT size
|
||||||
|
Loading…
Reference in New Issue
Block a user