edu.berkeley.guir.ptk.apps.audio
Class AudioGuitarApp
java.lang.Object
edu.berkeley.guir.ptk.PTK
edu.berkeley.guir.ptk.PeripheralDisplay
edu.berkeley.guir.ptk.apps.audio.AudioGuitarApp
- All Implemented Interfaces:
- PEventReceiver
- public class AudioGuitarApp
- extends PeripheralDisplay
Takes audio input and uses two PhidgetServoOutput objects to play notes on a
physical guitar. The louder the input, the faster the guitar plucking
(controlled by AudioPluckerOutput), and the higher the frequency (controlled
by AudioTunerOutput). This is the distributed version of the application.
- Author:
- dey, Tara
|
Field Summary |
static java.lang.String |
MY_ID
|
static int |
MY_PORT
|
|
Constructor Summary |
AudioGuitarApp(java.lang.String id,
java.lang.String ip,
int port)
|
|
Method Summary |
void |
buildUI()
Build any user interface components necessary, such as JFrames or hardware. |
void |
initialize()
Override this method to initalize peripheral display elements: abstractors,
notification setters, transitions, outputs. |
static void |
main(java.lang.String[] args)
|
| Methods inherited from class edu.berkeley.guir.ptk.PeripheralDisplay |
checkInterruptibility, checkInterruptibility, finalize, makeAggregateConnection_distributed, makeAggregateConnection_nondistributed, makeConnection_distributed, makeConnection_nondistributed, makeConnection, makeConnection, makeConnection, makeConnection, makeConnection, makeConnection, makeConnection, makeConnection, makeConnection, makeConnection, makeConnection, makeConnection, makeConnection, makeConnection, makeConnection, makeConnection, makeConnection, makeConnection, makeConnection, makeConnection, makeConnection, makeConnection, makeConnection, makeConnection, makeConnection, makeConnection, makeConnection, makeConnection, makeConnection, makeConnection, makeConnection, makeConnection, makeConnection, makeConnection, makeConnection, makeConnection, makeConnection, makeConnection, makeConnection, makeConnection, makeConnection, makeConnection, makeConnection, makeConnection, makeConnection, makeConnection, makeConnection, makeConnection, makeConnection, makeConnection, makeConnection, makeConnection, makeConnection, makeConnection, makeConnection, makeConnection, makeConnection, makeConnection, makeConnection, makeConnection, makeConnection, makeConnection, makeConnection, makeConnection, makeConnection, makeConnection, makeConnection, makeConnection, makeConnection, makeConnection, makeConnection, makeConnection, receive |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MY_PORT
public static final int MY_PORT
- See Also:
- Constant Field Values
MY_ID
public static final java.lang.String MY_ID
- See Also:
- Constant Field Values
AudioGuitarApp
public AudioGuitarApp(java.lang.String id,
java.lang.String ip,
int port)
main
public static void main(java.lang.String[] args)
initialize
public void initialize()
- Description copied from class:
PeripheralDisplay
- Override this method to initalize peripheral display elements: abstractors,
notification setters, transitions, outputs. Calls one of the
makeConnection methods to connect the initialized elements and to start the
application.
- Specified by:
initialize in class PeripheralDisplay
buildUI
public void buildUI()
- Description copied from class:
PeripheralDisplay
- Build any user interface components necessary, such as JFrames or hardware.
- Specified by:
buildUI in class PeripheralDisplay