Search in sources :

Example 6 with NoteParseException

use of blue.soundObject.NoteParseException in project blue by kunstmusik.

the class InversionProcessor method main.

public static void main(String[] args) {
    NoteList n = new NoteList();
    for (int i = 0; i < 10; i++) {
        try {
            n.add(Note.createNote("i1 " + (i * 2) + " 2 3 4"));
        } catch (NoteParseException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
    }
    System.out.println("before: \n\n" + n + "\n\n");
    InversionProcessor ap = new InversionProcessor();
    ap.setPfield("4");
    ap.setVal("1");
    try {
        ap.processNotes(n);
    } catch (NoteProcessorException ex) {
        System.out.println("Exception: " + ex.getMessage());
    }
    System.out.println("after: \n\n" + n + "\n\n");
}
Also used : NoteList(blue.soundObject.NoteList) NoteParseException(blue.soundObject.NoteParseException)

Example 7 with NoteParseException

use of blue.soundObject.NoteParseException in project blue by kunstmusik.

the class LineMultiplyProcessor method main.

public static void main(String[] args) {
    NoteList n = new NoteList();
    for (int i = 0; i < 10; i++) {
        try {
            n.add(Note.createNote("i1 " + i + " 1 3 4"));
        } catch (NoteParseException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
    }
    System.out.println("before: \n\n" + n + "\n\n");
    LineMultiplyProcessor lmp = new LineMultiplyProcessor();
    lmp.setLineMultiplyString("0 0 5 1 9 0");
    try {
        lmp.processNotes(n);
    } catch (NoteProcessorException ex) {
        System.out.println("Exception: " + ex.getMessage());
    }
    System.out.println("after: \n\n" + n + "\n\n");
}
Also used : NoteList(blue.soundObject.NoteList) NoteParseException(blue.soundObject.NoteParseException)

Example 8 with NoteParseException

use of blue.soundObject.NoteParseException in project blue by kunstmusik.

the class TimeWarpProcessor method main.

// UNIT TEST
public static void main(String[] args) {
    NoteList n = new NoteList();
    for (int i = 0; i < 10; i++) {
        try {
            n.add(Note.createNote("i1 " + i + " 1 3 4"));
        } catch (NoteParseException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
    }
    System.out.println("before: \n\n" + n + "\n\n");
    TimeWarpProcessor twp = new TimeWarpProcessor();
    twp.setTimeWarpString("0 60 4 120");
    try {
        twp.processNotes(n);
    } catch (NoteProcessorException ex) {
        System.out.println("Exception: " + ex.getMessage());
    }
    System.out.println("after: \n\n" + n + "\n\n");
}
Also used : NoteList(blue.soundObject.NoteList) NoteParseException(blue.soundObject.NoteParseException)

Example 9 with NoteParseException

use of blue.soundObject.NoteParseException in project blue by kunstmusik.

the class RandomAddProcessor method main.

public static void main(String[] args) {
    NoteList n = new NoteList();
    for (int i = 0; i < 10; i++) {
        try {
            n.add(Note.createNote("i1 " + (i * 2) + " 2 3 4"));
        } catch (NoteParseException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
    }
    System.out.println("before: \n\n" + n + "\n\n");
    RandomAddProcessor rap = new RandomAddProcessor();
    rap.setPfield("4");
    rap.setMin("0f");
    rap.setMax("1.5f");
    try {
        rap.processNotes(n);
    } catch (NoteProcessorException ex) {
        System.out.println("Exception: " + ex.getMessage());
    }
    System.out.println("after: \n\n" + n + "\n\n");
}
Also used : NoteList(blue.soundObject.NoteList) NoteParseException(blue.soundObject.NoteParseException)

Example 10 with NoteParseException

use of blue.soundObject.NoteParseException in project blue by kunstmusik.

the class SubListProcessor method main.

public static void main(String[] args) {
    NoteList n = new NoteList();
    for (int i = 0; i < 10; i++) {
        try {
            n.add(Note.createNote("i1 " + (i * 2) + " 2 " + i + " 4"));
        } catch (NoteParseException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
    }
    System.out.println("before: \n\n" + n + "\n\n");
    SubListProcessor slp = new SubListProcessor();
    slp.setStart("2");
    slp.setEnd("5");
    try {
        slp.processNotes(n);
    } catch (NoteProcessorException ex) {
        System.out.println("Exception: " + ex.getMessage());
    }
    System.out.println("after: \n\n" + n + "\n\n");
}
Also used : NoteList(blue.soundObject.NoteList) NoteParseException(blue.soundObject.NoteParseException)

Aggregations

NoteParseException (blue.soundObject.NoteParseException)28 NoteList (blue.soundObject.NoteList)24 LinePoint (blue.components.lines.LinePoint)3 StringChannel (blue.orchestra.blueSynthBuilder.StringChannel)3 Note (blue.soundObject.Note)3 SoundObjectException (blue.soundObject.SoundObjectException)3 StrBuilder (org.apache.commons.lang3.text.StrBuilder)3 Parameter (blue.automation.Parameter)2 GenericInstrument (blue.orchestra.GenericInstrument)2 File (java.io.File)2 Arrangement (blue.Arrangement)1 BlueData (blue.BlueData)1 CompileData (blue.CompileData)1 GlobalOrcSco (blue.GlobalOrcSco)1 Tables (blue.Tables)1 ParameterNameManager (blue.automation.ParameterNameManager)1 Mixer (blue.mixer.Mixer)1 NoteProcessorException (blue.noteProcessor.NoteProcessorException)1 TempoMapper (blue.noteProcessor.TempoMapper)1 Instrument (blue.orchestra.Instrument)1