Table Of Contents

Previous topic

speect.matrix_float – Floating Point Matrix

Next topic

speect.audio – Waveform Container

speect.track_float – Floating Point Track

class speect.track_float.STrackFloat(*args)

STrackFloat(times, mlist)

A native Speect class for containing an track of floating point values. A track is a class for storing time aligned coefficients. Each row of a track corresponds to a specific time instant. A column of a track is known as a channel, while track rows are knows as frames, for example:

  Times Channel 0 Channel 1 Channel 2
Frame 1 0.131 0.2 2.1 8.6
Frame 2 0.254 5.22 675.32 12.55
Frame 3 0.428 0.453 0.54 9.6

Create a new object, that contains an track of floating point point values.

The call to create the above track one would be:

track = speect.track_float.STrackFloat([0.131, 0.254, 0.428], [[0.2, 2.1, 8.6], [5.22, 675.32, 12.55], [0.453, 0.54, 9.6]])
Parameters:
  • times (list) – A Python list of the time values, floating point.
  • mlist (list) – A Python list of lists containing only floating point values (frames and channels).
Returns:

Newly created STrackFloat object.

Return type:

STrackFloat

STrackFloat.get()

get()

Return a copy of this STrackFloat object as a Python tuple, with the first element being a list of the track times, and the second element being the frame and channel values.

Returns:A tuple, with the first element being a list of the track times, and the second element being the frame and channel values.
Return type:tuple
STrackFloat.row_count

Return a count of the number of rows (frames) in the STrackFloat object.

Returns:Number of rows (frames) in the STrackFloat object.
Return type:int
STrackFloat.col_count

Return a count of the number of columns (channels) in the STrackFloat object.

Returns:Number of columns (channels) in the STrackFloat object.
Return type:int

speect.track_int – Integer Track

class speect.track_int.STrackInt(*args)

STrackInt(times, mlist)

A native Speect class for containing an track of integer values. A track is a class for storing time aligned coefficients. Each row of a track corresponds to a specific time instant. A column of a track is known as a channel, while track rows are knows as frames, for example:

  Times Channel 0 Channel 1 Channel 2
Frame 1 0.131 12 2 8
Frame 2 0.254 52 201 43
Frame 3 0.428 21 134 78

Create a new object, that contains an track of integer values. Note that the time values are still floating point.

The call to create the above track one would be:

track = speect.track_int.STrackInt([0.131, 0.254, 0.428], [[12, 2, 8], [52, 201, 43], [21, 134, 78]])
Parameters:
  • times (list) – A Python list of the time values, floating point.
  • mlist (list) – A Python list of lists containing only integer values (frames and channels).
Returns:

Newly created STrackInt object.

Return type:

STrackInt

STrackInt.get()

get()

Return a copy of this STrackInt object as a Python tuple, with the first element being a list of the track times, and the second element being the frame and channel values.

Returns:A tuple, with the first element being a list of the track times, and the second element being the frame and channel values.
Return type:tuple
STrackInt.row_count

Return a count of the number of rows (frames) in the STrackInt object.

Returns:Number of rows (frames) in the STrackInt object.
Return type:int
STrackInt.col_count

Return a count of the number of columns (channels) in the STrackInt object.

Returns:Number of columns (channels) in the STrackInt object.
Return type:int