Search in sources :

Example 1 with Field

use of blue.soundObject.jmask.Field in project blue by kunstmusik.

the class JMask method generateNotes.

public NoteList generateNotes(double renderStart, double renderEnd) throws SoundObjectException {
    Field temp = new Field(field);
    Random rnd = seedUsed ? new Random(seed) : new Random();
    NoteList nl = temp.generateNotes(this.getSubjectiveDuration(), rnd);
    try {
        ScoreUtilities.applyNoteProcessorChain(nl, this.npc);
    } catch (NoteProcessorException e) {
        throw new SoundObjectException(this, e);
    }
    ScoreUtilities.applyTimeBehavior(nl, this.getTimeBehavior(), this.getSubjectiveDuration(), this.getRepeatPoint());
    ScoreUtilities.setScoreStart(nl, startTime);
    return nl;
}
Also used : Field(blue.soundObject.jmask.Field) NoteProcessorException(blue.noteProcessor.NoteProcessorException) Random(java.util.Random)

Aggregations

NoteProcessorException (blue.noteProcessor.NoteProcessorException)1 Field (blue.soundObject.jmask.Field)1 Random (java.util.Random)1