Compare commits

..

No commits in common. "cefab85dabcbee7ede26808a880b0265e5817472" and "390ffb2253bae00a32a2c6c596293a76a2ee9b28" have entirely different histories.

5 changed files with 18 additions and 45 deletions

View File

@ -398,26 +398,22 @@ SurroundStrip::fast_update ()
}
std::shared_ptr<SurroundReturn> sur = _route->surround_return ();
float loud = sur->integrated_loudness();
if (loud > -90) {
char buf[32];
sprintf(buf, "%3.1f", loud);
_lufs_label.set_markup (string_compose ("<span size=\"large\" weight=\"bold\">%1</span>", buf));
} else {
_lufs_label.set_markup ("-");
}
//these 2 text meters should only be updated while rolling or exporting
if (_route->session().transport_rolling()) {
float loud = sur->integrated_loudness();
if (loud > -90) {
char buf[32];
sprintf(buf, "%3.1f", loud);
_lufs_label.set_markup (string_compose ("<span size=\"large\" weight=\"bold\">%1</span>", buf));
} else {
_lufs_label.set_markup ("-");
}
float dbtp = sur->max_dbtp();
if (dbtp > -90) {
char buf[32];
sprintf(buf, "%3.1f", dbtp);
_dbtp_label.set_markup (string_compose ("<span size=\"large\" weight=\"bold\">%1</span>", buf));
} else {
_dbtp_label.set_markup ("-");
}
float dbtp = sur->max_dbtp();
if (dbtp > -90) {
char buf[32];
sprintf(buf, "%3.1f", dbtp);
_dbtp_label.set_markup (string_compose ("<span size=\"large\" weight=\"bold\">%1</span>", buf));
} else {
_dbtp_label.set_markup ("-");
}
}

View File

@ -39,7 +39,6 @@ public:
void reset ();
float integrated_loudness () const;
float momentary () const;
float max_momentary () const;
float dbtp () const;
@ -75,8 +74,6 @@ private:
uint32_t _pow_idx;
float _thresh_rel;
float _momentary_l;
float _maxloudn_M;
float _integrated;
float _dbtp;

View File

@ -76,8 +76,6 @@ public:
/* a value <= -200 indicates that no data is available */
float integrated_loudness () const;
float max_momentary () const;
float momentary () const;
float max_dbtp () const;
samplecnt_t signal_latency () const;

View File

@ -173,8 +173,6 @@ LUFSMeter::run (float const** data, uint32_t n_samples)
const float sum_m = sumfrag (4); // 400ms
const float loudness_m = -0.691f + 10.f * log10f (sum_m);
_momentary_l = loudness_m;
_maxloudn_M = std::max<float> (_maxloudn_M, loudness_m);
/* observe 400ms window every 100ms */
@ -258,12 +256,6 @@ LUFSMeter::integrated_loudness () const
return _integrated;
}
float
LUFSMeter::momentary () const
{
return _momentary_l;
}
float
LUFSMeter::max_momentary () const
{

View File

@ -277,7 +277,9 @@ SurroundReturn::run (BufferSet& bufs, samplepos_t start_sample, samplepos_t end_
_surround_bufs.get_audio (19).data (meter_offset)
};
_lufs_meter.run (data, meter_nframes);
if (_rolling && (!_exporting || _export_end >= end_sample)) {
_lufs_meter.run (data, meter_nframes);
}
}
void
@ -393,18 +395,6 @@ SurroundReturn::finalize_export ()
_export_start = _export_end = 0;
}
float
SurroundReturn::momentary () const
{
return _lufs_meter.momentary ();
}
float
SurroundReturn::max_momentary () const
{
return _lufs_meter.max_momentary ();
}
float
SurroundReturn::integrated_loudness () const
{