org.rubato.rubettes.bigbang.view.player
Class BigBangPlayer

java.lang.Object
  extended by org.rubato.rubettes.bigbang.view.player.BigBangPlayer

public class BigBangPlayer
extends java.lang.Object


Field Summary
static int BASE_A4
           
static double DEFAULT_ADVANCE
           
static int INITIAL_BPM
           
static int MAX_BPM
           
 int MAX_NUMBER_OF_THREADS
           
static int MIN_BPM
           
static int SAMPLE_RATE
           
static java.lang.String[] WAVEFORMS
           
 
Constructor Summary
BigBangPlayer()
           
 
Method Summary
 void addToSynth(com.jsyn.unitgen.UnitGenerator generator)
           
 void changeVelocity(int velocity)
           
 double convertToSymbolicDuration(double synthDuration)
           
 double convertToSynthDuration(double symbolicDuration)
           
 double getCurrentSymbolicTime()
           
 double getCurrentSynthTime()
           
 double getLastOffset()
           
 double getLoopDuration()
           
 double getLoopOnset()
           
static java.lang.String[] getMidiOutDeviceNames()
           
 double getRecommendedAmplitude()
           
 java.lang.String getSelectedMidiOutDeviceName()
           
 com.jsyn.unitgen.UnitOscillator getSpecificOscillator()
           
 com.jsyn.Synthesizer getSynth()
           
 boolean isLooping()
           
 boolean isPlaying()
           
 void pressMidiKey(int channel, int pitch, int velocity, boolean recording)
           
 void releaseMidiKey(int channel, int pitch, boolean recording)
           
 void removeFromSynthAndStop(com.jsyn.unitgen.UnitGenerator generator)
           
 void setIsLooping(boolean isLooping)
           
 void setMidiOutDevice(java.lang.String outDeviceName)
           
 void setPlaybackPosition(double playbackPosition)
           
 void setScore(JSynScore score)
           
 void setSynthActive(boolean synthActive)
           
 void setTempo(int bpm)
           
 void setWaveform(java.lang.String waveform)
           
 void startSynth()
           
 void stopPlaying()
           
 void togglePlayMode()
           
 void transposeAllScoreVersionsByOctave(boolean up)
           
 void updatePerformances()
          reschedules the score this is playing right now (good in case of object state changes)
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MIN_BPM

public static final int MIN_BPM
See Also:
Constant Field Values

MAX_BPM

public static final int MAX_BPM
See Also:
Constant Field Values

INITIAL_BPM

public static final int INITIAL_BPM
See Also:
Constant Field Values

BASE_A4

public static final int BASE_A4
See Also:
Constant Field Values

SAMPLE_RATE

public static final int SAMPLE_RATE
See Also:
Constant Field Values

DEFAULT_ADVANCE

public static final double DEFAULT_ADVANCE
See Also:
Constant Field Values

MAX_NUMBER_OF_THREADS

public final int MAX_NUMBER_OF_THREADS
See Also:
Constant Field Values

WAVEFORMS

public static final java.lang.String[] WAVEFORMS
Constructor Detail

BigBangPlayer

public BigBangPlayer()
Method Detail

setMidiOutDevice

public void setMidiOutDevice(java.lang.String outDeviceName)

startSynth

public void startSynth()

addToSynth

public void addToSynth(com.jsyn.unitgen.UnitGenerator generator)

removeFromSynthAndStop

public void removeFromSynthAndStop(com.jsyn.unitgen.UnitGenerator generator)

setScore

public void setScore(JSynScore score)

updatePerformances

public void updatePerformances()
reschedules the score this is playing right now (good in case of object state changes)


setSynthActive

public void setSynthActive(boolean synthActive)

setIsLooping

public void setIsLooping(boolean isLooping)

isLooping

public boolean isLooping()

setTempo

public void setTempo(int bpm)

setPlaybackPosition

public void setPlaybackPosition(double playbackPosition)

getCurrentSynthTime

public double getCurrentSynthTime()

getCurrentSymbolicTime

public double getCurrentSymbolicTime()

getLoopOnset

public double getLoopOnset()

getLoopDuration

public double getLoopDuration()

getSynth

public com.jsyn.Synthesizer getSynth()

convertToSynthDuration

public double convertToSynthDuration(double symbolicDuration)

convertToSymbolicDuration

public double convertToSymbolicDuration(double synthDuration)

togglePlayMode

public void togglePlayMode()

pressMidiKey

public void pressMidiKey(int channel,
                         int pitch,
                         int velocity,
                         boolean recording)

releaseMidiKey

public void releaseMidiKey(int channel,
                           int pitch,
                           boolean recording)

transposeAllScoreVersionsByOctave

public void transposeAllScoreVersionsByOctave(boolean up)

changeVelocity

public void changeVelocity(int velocity)

isPlaying

public boolean isPlaying()

stopPlaying

public void stopPlaying()

getLastOffset

public double getLastOffset()

setWaveform

public void setWaveform(java.lang.String waveform)

getSpecificOscillator

public com.jsyn.unitgen.UnitOscillator getSpecificOscillator()

getRecommendedAmplitude

public double getRecommendedAmplitude()

getSelectedMidiOutDeviceName

public java.lang.String getSelectedMidiOutDeviceName()

getMidiOutDeviceNames

public static java.lang.String[] getMidiOutDeviceNames()