Search in sources :

Example 16 with GenericInstrument

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;
}
Also used : GenericInstrument(blue.orchestra.GenericInstrument)

Example 17 with GenericInstrument

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);
    }
}
Also used : GenericInstrument(blue.orchestra.GenericInstrument) Instrument(blue.orchestra.Instrument) Iterator(java.util.Iterator) GenericInstrument(blue.orchestra.GenericInstrument)

Aggregations

GenericInstrument (blue.orchestra.GenericInstrument)17 LinePoint (blue.components.lines.LinePoint)4 StrBuilder (org.apache.commons.lang3.text.StrBuilder)4 Instrument (blue.orchestra.Instrument)3 Iterator (java.util.Iterator)3 BufferedReader (java.io.BufferedReader)2 IOException (java.io.IOException)2 Arrangement (blue.Arrangement)1 TransferableInstrument (blue.TransferableInstrument)1 Parameter (blue.automation.Parameter)1 Line (blue.components.lines.Line)1 Channel (blue.mixer.Channel)1 BlueSynthBuilder (blue.orchestra.BlueSynthBuilder)1 StringChannel (blue.orchestra.blueSynthBuilder.StringChannel)1 NoteParseException (blue.soundObject.NoteParseException)1 OpcodeList (blue.udo.OpcodeList)1 UserDefinedOpcode (blue.udo.UserDefinedOpcode)1 Point (java.awt.Point)1 FileReader (java.io.FileReader)1 InputStreamReader (java.io.InputStreamReader)1