diff --git a/lib/ton.jar b/lib/ton.jar index 716940e0..36c3c6b8 100644 Binary files a/lib/ton.jar and b/lib/ton.jar differ diff --git a/processing-library/ton/applications/AppAlgorithmicComposition00Modulo/AppAlgorithmicComposition00Modulo.pde b/processing-library/ton/applications/AppAlgorithmicComposition00Modulo/AppAlgorithmicComposition00Modulo.pde index 57fb3006..0d263748 100644 --- a/processing-library/ton/applications/AppAlgorithmicComposition00Modulo/AppAlgorithmicComposition00Modulo.pde +++ b/processing-library/ton/applications/AppAlgorithmicComposition00Modulo/AppAlgorithmicComposition00Modulo.pde @@ -12,16 +12,8 @@ void settings() { } void setup() { - background(255); - /* set ADSR parameters for current instrument */ - Instrument mInstrument = Ton.instrument(); - mInstrument.attack(0.01f); - mInstrument.decay(0.1f); - mInstrument.sustain(0.0f); - mInstrument.release(0.01f); - mInstrument.osc_type(Instrument.TRIANGLE); + Ton.instrument().osc_type(Instrument.TRIANGLE); Beat.start(this, 120 * 4); - Ton.instrument().osc_type(Instrument.SAWTOOTH); } void draw() { @@ -41,13 +33,13 @@ void beat(int pBeat) { if (pBeat % 32 == 0) { Ton.note_on(Note.NOTE_A4, 80); } else if (pBeat % 8 == 0) { - Ton.note_on(Note.NOTE_A3, 100); + Ton.note_on(Note.NOTE_A3, 110); } else if (pBeat % 2 == 0) { Ton.note_on(Note.NOTE_A2 + (pBeat % 4) * 3, 120); } else if (pBeat % 11 == 0) { - Ton.note_on(Note.NOTE_C4, 100); + Ton.note_on(Note.NOTE_C4, 90, 0.05f); } else if (pBeat % 13 == 0) { - Ton.note_on(Note.NOTE_C5, 100); + Ton.note_on(Note.NOTE_C5, 100, 0.1f); } else { mPlaying = false; } diff --git a/processing-library/ton/applications/AppAlgorithmicComposition01Loops/AppAlgorithmicComposition01Loops.pde b/processing-library/ton/applications/AppAlgorithmicComposition01Loops/AppAlgorithmicComposition01Loops.pde index 0c18b5af..5e0e26f3 100644 --- a/processing-library/ton/applications/AppAlgorithmicComposition01Loops/AppAlgorithmicComposition01Loops.pde +++ b/processing-library/ton/applications/AppAlgorithmicComposition01Loops/AppAlgorithmicComposition01Loops.pde @@ -22,6 +22,7 @@ void settings() { } void setup() { + noStroke(); mBeatA = BeatEvent.create(120); mBeatB = BeatEvent.create(140); mBeatC = BeatEvent.create(160); @@ -35,7 +36,6 @@ void setup() { void draw() { background(255); - noStroke(); fill(0); if (mLoopA.playing) { ellipse(width * 0.25f, height * 0.5f, width * 0.15f, width * 0.15f); diff --git a/processing-library/ton/applications/AppAlgorithmicComposition02VisualModel/AppAlgorithmicComposition02VisualModel.pde b/processing-library/ton/applications/AppAlgorithmicComposition02VisualModel/AppAlgorithmicComposition02VisualModel.pde index 9cb7b10c..f3b20371 100644 --- a/processing-library/ton/applications/AppAlgorithmicComposition02VisualModel/AppAlgorithmicComposition02VisualModel.pde +++ b/processing-library/ton/applications/AppAlgorithmicComposition02VisualModel/AppAlgorithmicComposition02VisualModel.pde @@ -4,16 +4,117 @@ import netP5.*; import oscP5.*; import ddf.minim.*; import com.jsyn.unitgen.*; -//@todo(record from mic) -//@todo(position circle) + +final ArrayList mControllers = new ArrayList(); + +final int NUM_OF_CONTROLLERS = 1; void settings() { size(640, 480); } void setup() { + for (int i = 0; i < NUM_OF_CONTROLLERS; i++) { + CircleController c = new CircleController(); + c.position.set(random(width), random(height)); + c.radius = random(20, 120); + c.speed = random(0, 5); + mControllers.add(c); + } + DSP.dumpAudioDevices(); + DSP.start(this); } void draw() { background(255); + final float mDelta = 1.0f / frameRate; + noFill(); + stroke(0); + DSP.draw_buffer(g, width, height); + for (CircleController c : mControllers) { + c.draw(); + c.update(mDelta); + } +} + +void mouseDragged() { + CircleController c = getCircleController(); + if (c != null) { + c.position.set(mouseX, mouseY); + } +} + +void keyPressed() { + CircleController c = getCircleController(); + if (c != null) { + switch (key) { + case '+': + c.radius += 10; + break; + case '-': + c.radius -= 10; + c.radius = c.radius < 10 ? 10 : c.radius; + break; + case '.': + c.speed += 0.5f; + break; + case ',': + c.speed -= 0.5f; + break; + } + } +} + +CircleController getCircleController() { + for (CircleController c : mControllers) { + if (PVector.dist(c.position, new PVector().set(mouseX, mouseY)) - 10 < c.radius) { + return c; + } + } + return null; +} + +void audioblock(float[] pOutputSamples) { + for (int i = 0; i < pOutputSamples.length; i++) { + for (CircleController c : mControllers) { + pOutputSamples[i] += c.process(); + } + pOutputSamples[i] /= mControllers.size(); + pOutputSamples[i] = Ton.clamp(pOutputSamples[i], -1.0f, 1.0f); + } +} + +class CircleController { + final PVector position = new PVector(); + final PVector pointer = new PVector(); + float radius = 100.0f; + float counter = 0.0f; + float speed = 3.0f; + +final Sampler mSampler; + CircleController() { + byte[] mData = SampleDataSNARE.data; + mSampler = new Sampler(); + mSampler.load(mData); + mSampler.loop(true); + mSampler.set_speed(1); + } + float process() { + return mSampler.process(); + } + void update(float pDelta) { + counter += pDelta * speed; + pointer.x = sin(counter) * radius + position.x; + pointer.y = cos(counter) * radius + position.y; + mSampler.set_speed(map(pointer.x, 0, width, 0, 32)); + mSampler.set_amplitude(map(pointer.y, 0, height, 0.0f, 0.9f)); + } + void draw() { + noFill(); + stroke(0); + ellipse(position.x, position.y, radius * 2, radius * 2); + noStroke(); + fill(0); + ellipse(pointer.x, pointer.y, 10, 10); + } } diff --git a/processing-library/ton/applications/AppAlgorithmicComposition03Grammar/AppAlgorithmicComposition03Grammar.pde b/processing-library/ton/applications/AppAlgorithmicComposition03Grammar/AppAlgorithmicComposition03Grammar.pde index 3c36cd74..8cc6a2d3 100644 --- a/processing-library/ton/applications/AppAlgorithmicComposition03Grammar/AppAlgorithmicComposition03Grammar.pde +++ b/processing-library/ton/applications/AppAlgorithmicComposition03Grammar/AppAlgorithmicComposition03Grammar.pde @@ -6,12 +6,12 @@ import ddf.minim.*; import com.jsyn.unitgen.*; final String mInput = "RADIO, LIVE TRANSMISSION.\n" + - "RADIO, LIVE TRANSMISSION.\n" + - "LISTEN TO THE SILENCE, LET IT RING ON.\n" + - "EYES, DARK GREY LENSES FRIGHTENED OF THE SUN.\n" + - "WE WOULD HAVE A FINE TIME LIVING IN THE NIGHT,\n" + - "LEFT TO BLIND DESTRUCTION,\n" + - "WAITING FOR OUR SIGHT."; + "RADIO, LIVE TRANSMISSION.\n" + + "LISTEN TO THE SILENCE, LET IT RING ON.\n" + + "EYES, DARK GREY LENSES FRIGHTENED OF THE SUN.\n" + + "WE WOULD HAVE A FINE TIME LIVING IN THE NIGHT,\n" + + "LEFT TO BLIND DESTRUCTION,\n" + + "WAITING FOR OUR SIGHT."; final int mBaseNote = Note.NOTE_C3; @@ -35,9 +35,10 @@ void settings() { } void setup() { - Beat.start(this, 240); textFont(createFont("Helvetica-Bold", 10)); - Ton.instrument(1).osc_type(Instrument.TRIANGLE); + Ton.instrument(1).osc_type(Instrument.SAWTOOTH); + Ton.instrument(2).osc_type(Instrument.SINE); + Beat.start(this, 240); } void draw() { @@ -65,7 +66,9 @@ void beat(int pBeatCount) { Ton.note_off(); } Ton.instrument(1); - Ton.note_on(Note.NOTE_C3, 75, 0.3f); + Ton.note_on(Note.NOTE_C2, 15, 0.05f); + Ton.instrument(2); + Ton.note_on(Note.NOTE_C2, 100, 0.15f); } void grammar(char c) { diff --git a/processing-library/ton/applications/AppAlgorithmicComposition04FunctionSineWaves/AppAlgorithmicComposition04FunctionSineWaves.pde b/processing-library/ton/applications/AppAlgorithmicComposition04FunctionSineWaves/AppAlgorithmicComposition04FunctionSineWaves.pde index 8bae39a0..ff1edc5f 100644 --- a/processing-library/ton/applications/AppAlgorithmicComposition04FunctionSineWaves/AppAlgorithmicComposition04FunctionSineWaves.pde +++ b/processing-library/ton/applications/AppAlgorithmicComposition04FunctionSineWaves/AppAlgorithmicComposition04FunctionSineWaves.pde @@ -16,9 +16,9 @@ static final int INSTRUMENT_FLUTE = 1; static final int INSTRUMENT_NOISE = 2; final int[] mBaseSequence = {0, O, X, 0, - X, X, 0, X, - X, 0, X, X, - 7, O, X, 12}; + X, X, 0, X, + X, 0, X, X, + 7, O, X, 12}; float mTime; @@ -30,8 +30,7 @@ void setup() { Beat.start(this, 240); Ton.instrument(INSTRUMENT_BASE).osc_type(Instrument.TRIANGLE); Ton.instrument(INSTRUMENT_FLUTE).osc_type(Instrument.SAWTOOTH); - ArrayList m = (ArrayList) Ton.instruments(); - m.set(INSTRUMENT_NOISE, new InstrumentJSynOscillator((ToneEngineJSyn) Ton.instance(), INSTRUMENT_NOISE)); + Ton.replace_instrument(InstrumentJSynOscillator.class, INSTRUMENT_NOISE); Ton.instrument(INSTRUMENT_NOISE).osc_type(Instrument.NOISE); Ton.instrument(INSTRUMENT_NOISE).note_on(1, 127); Ton.instrument(INSTRUMENT_NOISE).sustain(1.0f); @@ -46,10 +45,18 @@ void draw() { void beat(int pBeatCount) { playBaseSequence(pBeatCount); - if (pBeatCount % 2 == 0) { - playMelody(pBeatCount / 2 - 1, 1.0f); + playMelodyWithEcho(pBeatCount); +} + +void playMelodyWithEcho(int pBeatCount) { + if (pBeatCount % 4 == 0) { + playMelody(pBeatCount / 4, 1.0f); + } else if (pBeatCount % 4 == 1) { + playMelody(pBeatCount / 4, 0.5f); + } else if (pBeatCount % 4 == 2) { + playMelody(pBeatCount / 4, 0.25f); } else { - playMelody(pBeatCount / 2, 0.33f); + playMelody(pBeatCount / 4, 0.125f); } } diff --git a/processing-library/ton/applications/AppAlgorithmicComposition05FunctionDSPGymnastics/AppAlgorithmicComposition05FunctionDSPGymnastics.pde b/processing-library/ton/applications/AppAlgorithmicComposition05FunctionDSPFormula/AppAlgorithmicComposition05FunctionDSPFormula.pde similarity index 81% rename from processing-library/ton/applications/AppAlgorithmicComposition05FunctionDSPGymnastics/AppAlgorithmicComposition05FunctionDSPGymnastics.pde rename to processing-library/ton/applications/AppAlgorithmicComposition05FunctionDSPFormula/AppAlgorithmicComposition05FunctionDSPFormula.pde index 3a271f21..b2d02f9e 100644 --- a/processing-library/ton/applications/AppAlgorithmicComposition05FunctionDSPGymnastics/AppAlgorithmicComposition05FunctionDSPGymnastics.pde +++ b/processing-library/ton/applications/AppAlgorithmicComposition05FunctionDSPFormula/AppAlgorithmicComposition05FunctionDSPFormula.pde @@ -7,7 +7,7 @@ import com.jsyn.unitgen.*; final float mFreq = 220.0f; -AudioFormula mFormula = new AudioFormulaMouse(); +AudioFormula mFormula = new MAudioFormulaAwayAndAway(); int mCounter = 0; @@ -35,12 +35,9 @@ void draw() { void keyPressed() { switch (key) { case '1': - mFormula = new AudioFormulaMouse(); - break; - case '2': mFormula = new AudioFormulaKnisterKnister(); break; - case '3': + case '2': mFormula = new MAudioFormulaAwayAndAway(); break; } @@ -54,16 +51,6 @@ void audioblock(float[] pOutputSamples) { interface AudioFormula { float render(int pCounter); } -class AudioFormulaMouse implements AudioFormula { - -float render(int pCounter) { - float mFreqMouse = mFreq + map(mouseX, 0, width, 0, mFreq); - float mAmpMouse = map(mouseY, 0, height, 0, 0.75f); - float mSample = sin(2 * PI * mFreqMouse * pCounter / DSP.sample_rate()); - mSample *= mAmpMouse; - return mSample; - } -} class AudioFormulaKnisterKnister implements AudioFormula { float render(int pCounter) { diff --git a/processing-library/ton/library/ton.jar b/processing-library/ton/library/ton.jar index 716940e0..36c3c6b8 100644 Binary files a/processing-library/ton/library/ton.jar and b/processing-library/ton/library/ton.jar differ diff --git a/processing-library/ton/reference/allclasses-frame.html b/processing-library/ton/reference/allclasses-frame.html index 3150953c..23614cba 100644 --- a/processing-library/ton/reference/allclasses-frame.html +++ b/processing-library/ton/reference/allclasses-frame.html @@ -11,16 +11,18 @@

All Classes

diff --git a/processing-library/ton/reference/allclasses-noframe.html b/processing-library/ton/reference/allclasses-noframe.html index f66a6808..ce5078db 100644 --- a/processing-library/ton/reference/allclasses-noframe.html +++ b/processing-library/ton/reference/allclasses-noframe.html @@ -11,16 +11,18 @@

All Classes

diff --git a/processing-library/ton/reference/constant-values.html b/processing-library/ton/reference/constant-values.html index 54a99d20..a6373163 100644 --- a/processing-library/ton/reference/constant-values.html +++ b/processing-library/ton/reference/constant-values.html @@ -695,7 +695,7 @@

de.hfkbremen.*

public static final int NUMBERS_OF_INSTRUMENTS -12 +16 diff --git a/processing-library/ton/reference/de/hfkbremen/ton/DSP.html b/processing-library/ton/reference/de/hfkbremen/ton/DSP.html index 073c41fa..e6d11e73 100644 --- a/processing-library/ton/reference/de/hfkbremen/ton/DSP.html +++ b/processing-library/ton/reference/de/hfkbremen/ton/DSP.html @@ -317,20 +317,6 @@

DSP

Method Detail

- - - -
    -
  • -

    audioblock

    -
    public void audioblock(float[][] pOutputSamples,
    -                       float[][] pInputSamples)
    -
    -
    Specified by:
    -
    audioblock in interface AudioBufferRenderer
    -
    -
  • -
@@ -451,7 +437,7 @@

flip

-
    +
    • draw_buffer

      public static void draw_buffer(processing.core.PGraphics g,
      @@ -459,6 +445,20 @@ 

      draw_buffer

      int pHeight)
    + + + +
      +
    • +

      audioblock

      +
      public void audioblock(float[][] pOutputSamples,
      +                       float[][] pInputSamples)
      +
      +
      Specified by:
      +
      audioblock in interface AudioBufferRenderer
      +
      +
    • +
diff --git a/processing-library/ton/reference/de/hfkbremen/ton/Instrument.html b/processing-library/ton/reference/de/hfkbremen/ton/Instrument.html index 23aa3c05..e4788bc4 100644 --- a/processing-library/ton/reference/de/hfkbremen/ton/Instrument.html +++ b/processing-library/ton/reference/de/hfkbremen/ton/Instrument.html @@ -17,7 +17,7 @@ catch(err) { } //--> -var methods = {"i0":6,"i1":10,"i2":10,"i3":6,"i4":6,"i5":6,"i6":6,"i7":10,"i8":10,"i9":6,"i10":6,"i11":6,"i12":6,"i13":6,"i14":6,"i15":10,"i16":10,"i17":10,"i18":6,"i19":6,"i20":6,"i21":6,"i22":6,"i23":6,"i24":10,"i25":10}; +var methods = {"i0":6,"i1":10,"i2":10,"i3":6,"i4":6,"i5":6,"i6":6,"i7":10,"i8":10,"i9":6,"i10":6,"i11":6,"i12":6,"i13":6,"i14":6,"i15":10,"i16":10,"i17":10,"i18":6,"i19":6,"i20":6,"i21":6,"i22":6,"i23":6,"i24":6,"i25":10,"i26":10}; var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],4:["t3","Abstract Methods"],8:["t4","Concrete Methods"]}; var altColor = "altColor"; var rowColor = "rowColor"; @@ -264,35 +264,39 @@

Method Summary

ID()  -abstract void -lfo_amp(float pLFOAmp)  +abstract boolean +isPlaying()  abstract void -lfo_freq(float pLFOFreq)  +lfo_amp(float pLFOAmp)  abstract void -note_off()  +lfo_freq(float pLFOFreq)  abstract void -note_on(float pFreq, - float pAmp)  +note_off()  abstract void -osc_type(int pOsc)  +note_on(int note, + int velocity)  abstract void -pitch_bend(float freq_offset)  +osc_type(int pOsc)  +abstract void +pitch_bend(float freq_offset)  + + void release(float pRelease)  - + void sustain(float pSustain)  @@ -659,14 +663,23 @@

note_off

public abstract void note_off()
- + -
    +
    • note_on

      -
      public abstract void note_on(float pFreq,
      -                             float pAmp)
      +
      public abstract void note_on(int note,
      +                             int velocity)
      +
    • +
    + + + +
      +
    • +

      isPlaying

      +
      public abstract boolean isPlaying()
    diff --git a/processing-library/ton/reference/de/hfkbremen/ton/InstrumentJSyn.html b/processing-library/ton/reference/de/hfkbremen/ton/InstrumentJSyn.html index 69f26581..398c3aad 100644 --- a/processing-library/ton/reference/de/hfkbremen/ton/InstrumentJSyn.html +++ b/processing-library/ton/reference/de/hfkbremen/ton/InstrumentJSyn.html @@ -17,7 +17,7 @@ catch(err) { } //--> -var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10,"i16":10}; +var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10,"i16":10,"i17":10}; var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]}; var altColor = "altColor"; var rowColor = "rowColor"; @@ -214,28 +214,32 @@

    Method Summary

    get_osc_type()  -void -lfo_amp(float pLFOAmp)  +boolean +isPlaying()  void -lfo_freq(float pLFOFreq)  +lfo_amp(float pLFOAmp)  void -note_off()  +lfo_freq(float pLFOFreq)  void -note_on(float pFreq, - float pAmp)  +note_off()  void -osc_type(int pOsc)  +note_on(int note, + int velocity)  void +osc_type(int pOsc)  + + +void pitch_bend(float freq_offset)  @@ -493,17 +497,30 @@

    note_off

- + -
    +
    • note_on

      -
      public void note_on(float pFreq,
      -                    float pAmp)
      +
      public void note_on(int note,
      +                    int velocity)
      +
      +
      Specified by:
      +
      note_on in class Instrument
      +
      +
    • +
    + + + + diff --git a/processing-library/ton/reference/de/hfkbremen/ton/InstrumentJSynOscillator.html b/processing-library/ton/reference/de/hfkbremen/ton/InstrumentJSynOscillator.html index 9903b72d..02f375db 100644 --- a/processing-library/ton/reference/de/hfkbremen/ton/InstrumentJSynOscillator.html +++ b/processing-library/ton/reference/de/hfkbremen/ton/InstrumentJSynOscillator.html @@ -232,8 +232,8 @@

    Method Summary

    void -note_on(float pFreq, - float pAmp)  +note_on(int note, + int velocity)  void @@ -257,7 +257,7 @@

    Method Summary

    Methods inherited from class de.hfkbremen.ton.InstrumentJSyn

    -get_amplitude, get_frequency +get_amplitude, get_frequency, isPlaying
- + diff --git a/processing-library/ton/reference/de/hfkbremen/ton/InstrumentJSynOscillatorADSR.html b/processing-library/ton/reference/de/hfkbremen/ton/InstrumentJSynOscillatorADSR.html index 432d36fa..db5672cc 100644 --- a/processing-library/ton/reference/de/hfkbremen/ton/InstrumentJSynOscillatorADSR.html +++ b/processing-library/ton/reference/de/hfkbremen/ton/InstrumentJSynOscillatorADSR.html @@ -237,8 +237,8 @@

Method Summary

void -note_on(float pFreq, - float pAmp)  +note_on(int note, + int velocity)  void @@ -270,7 +270,7 @@

Method Summary

Methods inherited from class de.hfkbremen.ton.InstrumentJSyn

-get_amplitude, get_frequency +get_amplitude, get_frequency, isPlaying - + diff --git a/processing-library/ton/reference/de/hfkbremen/ton/InstrumentJSynOscillatorADSRFilterLFO.html b/processing-library/ton/reference/de/hfkbremen/ton/InstrumentJSynOscillatorADSRFilterLFO.html index 60fc7795..8da63cde 100644 --- a/processing-library/ton/reference/de/hfkbremen/ton/InstrumentJSynOscillatorADSRFilterLFO.html +++ b/processing-library/ton/reference/de/hfkbremen/ton/InstrumentJSynOscillatorADSRFilterLFO.html @@ -222,14 +222,14 @@

Method Summary

Methods inherited from class de.hfkbremen.ton.InstrumentJSynOscillatorADSR

-amplitude, attack, decay, frequency, get_osc_type, note_off, note_on, osc_type, pitch_bend, release, sustain, trigger +amplitude, attack, decay, frequency, get_osc_type, note_off, note_on, osc_type, pitch_bend, release, sustain, trigger - + -
    +
    • note_on

      -
      public void note_on(float pFrequency,
      -                    float pAmplitude)
      +
      public void note_on(int note,
      +                    int velocity)
      +
      +
      Specified by:
      +
      note_on in class Instrument
      +
      +
    • +
    + + + + diff --git a/processing-library/ton/reference/de/hfkbremen/ton/MidiOut.html b/processing-library/ton/reference/de/hfkbremen/ton/MidiOut.html index 2fd5fcde..38cbc608 100644 --- a/processing-library/ton/reference/de/hfkbremen/ton/MidiOut.html +++ b/processing-library/ton/reference/de/hfkbremen/ton/MidiOut.html @@ -48,7 +48,7 @@
+ + + +
    +
  • +

    create_instrument

    +
    public static <T extends Instrument> T create_instrument(java.lang.Class<T> pInstrumentClass,
    +                                                         int pID)
    +
  • +
@@ -476,12 +542,23 @@

run

-
    + + + + +
      +
    • +

      clamp

      +
      public static float clamp(float pValue,
      +                          float pMin,
      +                          float pMax)
      +
    • +
diff --git a/processing-library/ton/reference/de/hfkbremen/ton/TonEvent.html b/processing-library/ton/reference/de/hfkbremen/ton/TonEvent.html index f1189f05..644c8cc4 100644 --- a/processing-library/ton/reference/de/hfkbremen/ton/TonEvent.html +++ b/processing-library/ton/reference/de/hfkbremen/ton/TonEvent.html @@ -41,7 +41,7 @@ @@ -194,23 +194,6 @@

Field Summary

- -
    -
  • - - -

    Constructor Summary

    - - - - - - - - -
    Constructors 
    Constructor and Description
    ToneEngine() 
    -
  • -
- -
    -
  • - - -

    Constructor Detail

    - - - -
      -
    • -

      ToneEngine

      -
      public ToneEngine()
      -
    • -
    -
  • -
  • Method Detail

    - - - -
      -
    • -

      createEngine

      -
      public static ToneEngine createEngine()
      -
    • -
    - - - -
      -
    • -

      createEngine

      -
      public static ToneEngine createEngine(java.lang.String... pName)
      -
    • -
    - - - -
      -
    • -

      createInstrumentsGUI

      -
      public static controlP5.ControlP5 createInstrumentsGUI(processing.core.PApplet p,
      -                                                       ToneEngine pToneEngine)
      -
    • -
    - - - -
      -
    • -

      createInstrumentsGUI

      -
      public static controlP5.ControlP5 createInstrumentsGUI(processing.core.PApplet p,
      -                                                       ToneEngine pToneEngine,
      -                                                       int... mInstruments)
      -
    • -
    - - - -
      -
    • -

      updateGUI

      -
      public static void updateGUI(controlP5.ControlP5 cp5,
      -                             Instrument mInstrument,
      -                             int pField)
      -
    • -
    - - - -
      -
    • -

      updateGUI

      -
      public static void updateGUI(controlP5.ControlP5 cp5,
      -                             Instrument mInstrument)
      -
    • -
    • note_on

      -
      public abstract void note_on(int note,
      -                             int velocity,
      -                             float duration)
      +
      public final void note_on(int note,
      +                          int velocity,
      +                          float duration)
      play a note
      Parameters:
      @@ -714,12 +624,81 @@

      instrument

      -
        +
        • instruments

          public abstract java.util.ArrayList<? extends Instrument> instruments()
        + + + +
          +
        • +

          replace_instrument

          +
          public abstract void replace_instrument(Instrument pInstrument)
          +
        • +
        + + + +
          +
        • +

          createEngine

          +
          public static ToneEngine createEngine()
          +
        • +
        + + + +
          +
        • +

          createEngine

          +
          public static ToneEngine createEngine(java.lang.String... pName)
          +
        • +
        + + + +
          +
        • +

          createInstrumentsGUI

          +
          public static controlP5.ControlP5 createInstrumentsGUI(processing.core.PApplet p,
          +                                                       ToneEngine pToneEngine)
          +
        • +
        + + + +
          +
        • +

          createInstrumentsGUI

          +
          public static controlP5.ControlP5 createInstrumentsGUI(processing.core.PApplet p,
          +                                                       ToneEngine pToneEngine,
          +                                                       int... mInstruments)
          +
        • +
        + + + +
          +
        • +

          updateGUI

          +
          public static void updateGUI(controlP5.ControlP5 cp5,
          +                             Instrument mInstrument,
          +                             int pField)
          +
        • +
        + + + +
          +
        • +

          updateGUI

          +
          public static void updateGUI(controlP5.ControlP5 cp5,
          +                             Instrument mInstrument)
          +
        • +
    • @@ -774,13 +753,13 @@

      instruments

    • Summary: 
    • Nested | 
    • Field | 
    • -
    • Constr | 
    • +
    • Constr | 
    • Method
    diff --git a/processing-library/ton/reference/de/hfkbremen/ton/ToneEngineJSyn.html b/processing-library/ton/reference/de/hfkbremen/ton/ToneEngineJSyn.html index 1cdb216a..98e5eea6 100644 --- a/processing-library/ton/reference/de/hfkbremen/ton/ToneEngineJSyn.html +++ b/processing-library/ton/reference/de/hfkbremen/ton/ToneEngineJSyn.html @@ -48,7 +48,7 @@