uk.org.toot.synth.channels.example2
Class Example2SynthChannel.Example2Voice

java.lang.Object
  extended by uk.org.toot.synth.PolyphonicSynthChannel.AbstractVoice
      extended by uk.org.toot.synth.channels.example2.Example2SynthChannel.Example2Voice
All Implemented Interfaces:
PolyphonicSynthChannel.Voice
Enclosing class:
Example2SynthChannel

public class Example2SynthChannel.Example2Voice
extends PolyphonicSynthChannel.AbstractVoice


Constructor Summary
Example2SynthChannel.Example2Voice(int pitch, int velocity, int sampleRate)
           
 
Method Summary
 boolean mix(AudioBuffer buffer)
           
 void setSampleRate(int rate)
           
 
Methods inherited from class uk.org.toot.synth.PolyphonicSynthChannel.AbstractVoice
getPitch, isReleased, release, stop
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Example2SynthChannel.Example2Voice

public Example2SynthChannel.Example2Voice(int pitch,
                                          int velocity,
                                          int sampleRate)
Method Detail

setSampleRate

public void setSampleRate(int rate)

mix

public boolean mix(AudioBuffer buffer)
Specified by:
mix in interface PolyphonicSynthChannel.Voice
Overrides:
mix in class PolyphonicSynthChannel.AbstractVoice


Copyright © 2004, 2005, 2006, 2007 Steve Taylor. All Rights Reserved.