Sound
:
object
A sound
Method
public
Sound
.
Constructor
(
duration
,
int
channels
=
null
,
int
samplerate
=
null
)
public
readonly
int
Sound
.
Channels
Channel count
public
virtual
int
object
.
Compare
(
value
)
Compares this object with another and returns (-1, 0, or 1)
public
readonly
double
Sound
.
Duration
Duration in seconds
public
double
[]
Sound
.
GetChannel
(
int
channel
)
Copy a channel into an array
public
virtual
Icon
object
.
GetIcon
Return a icon for this object
public
virtual
object
.
GetLayoutBlock
Return a layout inside a block
public
virtual
object
.
GetLayoutSpan
Return a layout inside a span
public
virtual
object
.
GetLayoutTip
Return a layout for the hint popup
public
double
Sound
.
GetSample
(
int
index
,
int
channel
)
Get a single sample value
public
virtual
object
.
GetSourceReference
Return a source reference for this object
public
virtual
void
object
.
GetTexSource
(
source
)
LaTeX source code for this object
public
void
Sound
.
Mix
(
Sound
sound
,
double
start
=
null
,
double
volume
=
null
,
double
length
=
null
,
double
offset
=
null
)
Merge sound into
public
static
Sound
Sound
.
Read
(
path_or_blob
,
double
volume
=
null
)
Read a WAV file
public
readonly
int
Sound
.
SampleCount
Samples per channel
public
readonly
int
Sound
.
SampleRate
Samples per second
public
void
Sound
.
SetSampleValues
(
value
,
int
index
=
null
,
int
channel
=
null
)
Set the values of a channel
public
bool
Sound
.
Write
(
path
,
double
start
=
null
,
double
volume
=
null
,
double
length
=
null
)
Write a wav file