public class ScopePlayer extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ScopePlayer.Type
Types of events.
|
| Constructor and Description |
|---|
ScopePlayer(String sampleFile,
ScopePlayer.Type type,
int maxVoices,
float relativeAmplitude,
String eventFilter)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getEventFilter() |
int |
getMAX_VOICES() |
float |
getRelativeAmplitude() |
String |
getSampleFile() |
ScopePlayer.Type |
getType() |
void |
play(double amplitude)
Play a sample from this player's folder.
|
public ScopePlayer(String sampleFile, ScopePlayer.Type type, int maxVoices, float relativeAmplitude, String eventFilter) throws org.openbase.jul.exception.InstantiationException
sampleFile - Folder with all samples which can be randomly chosen by
this player.type - Behavior type of this player.maxVoices - relativeAmplitude - eventFilter - org.openbase.jul.exception.InstantiationExceptionScopePlayer.Typepublic void play(double amplitude)
amplitude - Volume from 0 to 1. If an invalid value is given, it
will be set to 1.public String getSampleFile()
public ScopePlayer.Type getType()
public int getMAX_VOICES()
public float getRelativeAmplitude()
public String getEventFilter()
Copyright © 2014–2017 openbase.org. All rights reserved.