com.vwp.sound.mod.modplay
Class Scope

java.lang.Object
  extended by com.vwp.sound.mod.modplay.Scope

public final class Scope
extends java.lang.Object

Some fake ascii scopes... It doesn't really consider the actual volume of each channel, it just has a trigger and a gradual falloff.


Field Summary
 com.vwp.sound.mod.modplay.Scope.EventDispatcher dispatcher
           
 
Constructor Summary
Scope(int channels, int delay)
          create a scope with channels channels.
 
Method Summary
 java.lang.String getAllChannels()
          get a string representation of the scopes.
 char getChannel(int channel)
          get the character representing the current intencity value of a channel.
 void next()
          decrease the intensity value in all scopes.
 void poke(int channel)
          "poke" a channel, causing it's intensity value to be set to the max.
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dispatcher

public com.vwp.sound.mod.modplay.Scope.EventDispatcher dispatcher
Constructor Detail

Scope

public Scope(int channels,
             int delay)
create a scope with channels channels. The delay value is necessary in cases where there is a noticable delay from the audio data is sent to the sound system until it appears at the speakers. 200ms seems to be a appropriate value for the java sound system (in addition to any buffers in the program itself of course).

Parameters:
channels -
delay -
Method Detail

next

public void next()
decrease the intensity value in all scopes.


poke

public void poke(int channel)
"poke" a channel, causing it's intensity value to be set to the max.

Parameters:
channel -

getChannel

public char getChannel(int channel)
get the character representing the current intencity value of a channel.

Parameters:
channel -
Returns:

getAllChannels

public java.lang.String getAllChannels()
get a string representation of the scopes.

Returns:

stop

public void stop()