2022-12-05 Fred Gleason <fredg@paravelsystems.com>

* Fixed a bug in the log rendering code that caused voicetracks to
	be faded during the trailing transition.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason 2022-12-05 11:51:48 -05:00
parent a5084d454e
commit 9bae0c81ab
2 changed files with 7 additions and 2 deletions

View File

@ -23742,3 +23742,6 @@
entries to appear in log listings when a new log was created. entries to appear in log listings when a new log was created.
2022-12-03 Fred Gleason <fredg@paravelsystems.com> 2022-12-03 Fred Gleason <fredg@paravelsystems.com>
* Incremented the package version to 4.0.0rc0int4. * Incremented the package version to 4.0.0rc0int4.
2022-12-05 Fred Gleason <fredg@paravelsystems.com>
* Fixed a bug in the log rendering code that caused voicetracks to
be faded during the trailing transition.

View File

@ -2,7 +2,7 @@
// //
// Render a Rivendell log to a single audio object. // Render a Rivendell log to a single audio object.
// //
// (C) Copyright 2017-2021 Fred Gleason <fredg@paravelsystems.com> // (C) Copyright 2017-2022 Fred Gleason <fredg@paravelsystems.com>
// //
// This program is free software; you can redistribute it and/or modify // This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License version 2 as // it under the terms of the GNU General Public License version 2 as
@ -539,8 +539,10 @@ bool RDRenderer::Render(const QString &outfile,RDLogModel *model,RDSettings *s,
sf_writef_float(sf_out,pcm,frames); sf_writef_float(sf_out,pcm,frames);
delete pcm; delete pcm;
pcm=NULL; pcm=NULL;
if(lls.at(i)->source()!=RDLogLine::Tracker) { // Don't fade voicetracks
lls.at(i)->setRamp(lls.at(i+1)->transType(),lls.at(i)->segueGain()); lls.at(i)->setRamp(lls.at(i+1)->transType(),lls.at(i)->segueGain());
} }
}
else { else {
if(i<(lls.size()-1)) { if(i<(lls.size()-1)) {
if(lls.at(i)->type()==RDLogLine::Cart) { if(lls.at(i)->type()==RDLogLine::Cart) {