Skip to content

Commit

Permalink
fix(blueLive): do not generate e-statement as it now appears to halt …
Browse files Browse the repository at this point in the history
…Csound with BlueLive
  • Loading branch information
kunstmusik committed Nov 27, 2023
1 parent 083926b commit 56feb19
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
3 changes: 3 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ information.

* Show parameter name in the popup for setting visibility of parameters

* BlueLive:

* Do not generate e-statement when generating CSD for BlueLive

## [2.9.1] - 2023-09-10

Expand Down
12 changes: 7 additions & 5 deletions blue-ui-core/src/main/java/blue/ui/core/render/CSDRender.java
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ protected synchronized CsdRenderResult generateCSDForBlueLiveImpl(

appendCsInstruments(compileData, data, udos, arrangement, globalOrcSco, score,
mixer, true);
appendCsScore(globalSco, ftables, generatedNotes, totalDur, score);
appendCsScore(score, globalSco, ftables, generatedNotes, totalDur, false);

score.append("</CsoundSynthesizer>");

Expand Down Expand Up @@ -418,7 +418,7 @@ protected CsdRenderResult generateCSDImpl(BlueData data,

appendCsInstruments(compileData, data, udos, arrangement, globalOrcSco, csd, mixer,
isRealTime);
appendCsScore(globalSco, ftables, generatedNotes, totalDur, csd);
appendCsScore(csd, globalSco, ftables, generatedNotes, totalDur, true);

csd.append("</CsoundSynthesizer>");

Expand Down Expand Up @@ -605,8 +605,8 @@ private void appendProjectInfo(BlueData data, StrBuilder score) {
score.append(";\n\n");
}

private void appendCsScore(String globalSco, String ftables,
NoteList generatedNotes, double totalDur, StrBuilder score) {
private void appendCsScore(StrBuilder score, String globalSco, String ftables,
NoteList generatedNotes, double totalDur, boolean useEStatement) {

score.append("<CsScore>\n\n");
score.append(ftables).append("\n");
Expand All @@ -619,7 +619,9 @@ private void appendCsScore(String globalSco, String ftables,
} else {
score.append("f0 ").append(totalDur).append("\n");
}
score.append("e\n\n");
if(useEStatement) {
score.append("e\n\n");
}
score.append("</CsScore>\n\n");
}

Expand Down

0 comments on commit 56feb19

Please sign in to comment.