|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectlejos.nxt.Sound
public class Sound
NXT sound routines. Only playTone() works.
| Method Summary | |
|---|---|
static void |
beep()
Beeps once - not yet implemented. |
static void |
beepSequence()
Downward tones - not yet implemented. |
static void |
buzz()
Low buzz - not yet implemented. |
static void |
playTone(int aFrequency,
int aDuration)
Plays a tone, given its frequency and duration. |
static void |
systemSound(boolean aQueued,
int aCode)
Play a system sound - not yet implemented. |
static void |
twoBeeps()
Beeps twice - not yet implemented. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait |
| Method Detail |
|---|
public static void systemSound(boolean aQueued,
int aCode)
| aCode | Resulting Sound |
|---|---|
| 0 | short beep |
| 1 | double beep |
| 2 | descending arpeggio |
| 3 | ascending arpeggio |
| 4 | long, low beep |
| 5 | quick ascending arpeggio |
public static void beep()
public static void twoBeeps()
public static void beepSequence()
public static void buzz()
public static void playTone(int aFrequency,
int aDuration)
aFrequency - The frequency of the tone in Hertz (Hz).aDuration - The duration of the tone, in centiseconds. Value is truncated at 256 centiseconds.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||