use of blue.orchestra.blueSynthBuilder.BSBCompilationUnit in project blue by kunstmusik.
the class ObjectBuilder method generateForCSD.
@Override
public NoteList generateForCSD(CompileData compileData, double startTime, double endTime) throws SoundObjectException {
BSBCompilationUnit bsbCompilationUnit = new BSBCompilationUnit();
graphicInterface.setupForCompilation(bsbCompilationUnit);
NoteList nl = generateNotes(bsbCompilationUnit, startTime, endTime);
return nl;
}
use of blue.orchestra.blueSynthBuilder.BSBCompilationUnit in project blue by kunstmusik.
the class Effect method generateUDO.
public UserDefinedOpcode generateUDO(OpcodeList udoList) {
HashMap udoReplacementValues = UDOUtilities.appendUserDefinedOpcodes(opcodeList, udoList);
UserDefinedOpcode udo = new UserDefinedOpcode();
BSBCompilationUnit bsbUnit = new BSBCompilationUnit();
graphicInterface.setupForCompilation(bsbUnit);
StrBuilder buffer = new StrBuilder();
buffer.append(getXinText()).append("\n");
buffer.append(bsbUnit.replaceBSBValues(code)).append("\n");
buffer.append(getXoutText()).append("\n");
String udoCode = buffer.toString();
if (udoReplacementValues != null) {
udoCode = TextUtilities.replaceOpcodeNames(udoReplacementValues, udoCode);
}
udo.codeBody = udoCode;
udo.inTypes = getSigTypes(numIns);
udo.outTypes = getSigTypes(numOuts);
return udo;
}
Aggregations