use of blue.orchestra.GenericInstrument in project blue by kunstmusik.
the class CSDRender method createRenderEndInstrument.
private Instrument createRenderEndInstrument() {
GenericInstrument instr = new GenericInstrument();
String instrText = "event \"e\", 0, 0, 0.1";
instr.setText(instrText);
return instr;
}
use of blue.orchestra.GenericInstrument in project blue by kunstmusik.
the class CeciliaModuleCompilationUnit method generateInstruments.
/**
* @param arrangement
*/
public void generateInstruments(Arrangement arrangement) {
Instrument magicInstrument = getMagicInstrument();
if (magicInstrument != null) {
magicInstrId = arrangement.addInstrument(magicInstrument);
}
for (Iterator iter = instruments.keySet().iterator(); iter.hasNext(); ) {
String key = (String) iter.next();
GenericInstrument instr = (GenericInstrument) instruments.get(key);
instr.setText(setGlobalUnique(instr.getText()));
instr.setText(setFtableUnique(instr.getText()));
instr.setText(replaceCeciliaVariables(instr.getText()));
int newNum = arrangement.addInstrument(instr);
String newId = Integer.toString(newNum);
// System.out.println("Key/ID: " + key + " : " + newId);
instrIDMap.put(key.trim(), newId);
}
}
Aggregations