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: |
|
|---|---|
| Returns: | Newly created STrackFloat object. |
| Return type: | STrackFloat |
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 |
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 |
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 |
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: |
|
|---|---|
| Returns: | Newly created STrackInt object. |
| Return type: | STrackInt |
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 |
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 |
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 |