Skip to content

Commit bfce5de

Browse files
committed
fix: always-on instrument notes did not account for mixer extra time
1 parent 1af278d commit bfce5de

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

ChangeLog.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ information.
4040

4141
### FIX
4242

43+
* Fixed always-on instruments to play for the full global duration including mixer extra render time, preventing premature cutoff of reverb tails and other effect decay
44+
4345
* Redid filechooser manager to hold on to Filechoosers so that they will
4446
maintain last state (i.e., last file or folder selected) between uses
4547

blue-ui-core/src/main/java/blue/ui/core/render/CSDRender.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -342,11 +342,11 @@ protected CsdRenderResult generateCSDImpl(BlueData data,
342342
String noteStr;
343343
if (StringUtils.isNumeric(sourceId)) {
344344
int instrId = arrangement.addInstrumentAtEnd(instrument);
345-
noteStr = "i" + instrId + " 0 " + totalDur;
345+
noteStr = "i" + instrId + " 0 " + globalDur;
346346
} else {
347347
String instrId = sourceId + "_alwaysOn";
348348
arrangement.addInstrumentWithId(instrument, instrId, false);
349-
noteStr = "i \"" + instrId + "\" 0 " + totalDur;
349+
noteStr = "i \"" + instrId + "\" 0 " + globalDur;
350350
}
351351
try {
352352
Note n = Note.createNote(noteStr);

0 commit comments

Comments
 (0)