uk.org.toot.synth
Class PolyphonicSynthChannel.AbstractVoice

java.lang.Object
  extended by uk.org.toot.synth.PolyphonicSynthChannel.AbstractVoice
All Implemented Interfaces:
PolyphonicSynthChannel.Voice
Direct Known Subclasses:
Example2SynthChannel.Example2Voice, Example3SynthChannel.Example3Voice
Enclosing class:
PolyphonicSynthChannel

public abstract class PolyphonicSynthChannel.AbstractVoice
extends java.lang.Object
implements PolyphonicSynthChannel.Voice


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

Constructor Detail

PolyphonicSynthChannel.AbstractVoice

public PolyphonicSynthChannel.AbstractVoice(int pitch,
                                            int velocity)
Method Detail

getPitch

public int getPitch()
Specified by:
getPitch in interface PolyphonicSynthChannel.Voice

release

public void release()
Specified by:
release in interface PolyphonicSynthChannel.Voice

isReleased

public boolean isReleased()
Specified by:
isReleased in interface PolyphonicSynthChannel.Voice

stop

public void stop()
Specified by:
stop in interface PolyphonicSynthChannel.Voice

mix

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


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