Modifier and Type | Field and Description |
---|---|
static byte |
BLOCK_END
Defines an ending point for a block.
|
static byte |
BLOCK_START
Defines a starting point for a block.
|
static byte |
C4
Middle C.
|
static byte |
PLAY_BLOCK
Play a defined block.
|
static byte |
REPEAT
The REPEAT event tag.
|
static byte |
RESOLUTION
The RESOLUTION event tag.
|
static byte |
SET_VOLUME
The SET_VOLUME event tag.
|
static byte |
SILENCE
Silence.
|
static byte |
TEMPO
The TEMPO event tag.
|
static byte |
VERSION
The VERSION attribute tag.
|
Modifier and Type | Method and Description |
---|---|
void |
setSequence(byte[] sequence)
Sets the tone sequence.
|
static final byte VERSION
Value -2 is assigned to VERSION
.
static final byte TEMPO
Value -3 is assigned to TEMPO
.
static final byte RESOLUTION
Value -4 is assigned to RESOLUTION
.
static final byte BLOCK_START
Value -5 is assigned to BLOCK_START
.
static final byte BLOCK_END
Value -6 is assigned to BLOCK_END
.
static final byte PLAY_BLOCK
Value -7 is assigned to PLAY_BLOCK
.
static final byte SET_VOLUME
Value -8 is assigned to SET_VOLUME
.
static final byte REPEAT
Value -9 is assigned to REPEAT
.
static final byte C4
Value 60 is assigned to C4
.
static final byte SILENCE
Value -1 is assigned to SILENCE
.
void setSequence(byte[] sequence)
sequence
- The sequence to set.IllegalArgumentException
- Thrown if the sequence is
null
or invalid.IllegalStateException
- Thrown if the Player
that this control belongs to is in the PREFETCHED or
STARTED state.Copyright (c) 1990, 2012, Oracle and/or its affiliates. All rights reserved.