A Falcon Pi Player fseq (v2) sequence file parser.
pip install fseq
To use the project:
import fseq
f = open('filename.fseq')
fseq.parse(f)
The parse function returns a Fseq object with the following properties:
file: the underlying file objectversion: a 2-tuple of numbers containing major and minor versionminor_version: the minor version numbermajor_version: the major version numberchannel_count_per_frame: the amount of channels in each framenumber_of_frames: the total number of frames in this sequencestep_time_in_ms: the number of milliseconds between each frameunique_id: a unique indentifiedcompression_type: the compression type used for frames, eithernone,zstd,zlibvariable_headers: an array of 2-tuples containing key-value pairs describing additional headers for the sequence file
To access a single frame data use the get_frame(index) method on the Fseq
object. Use index access to read channel values:
frame = fseq_file.get_frame(index)
value = frame[channel_num]
To run the all tests run:
tox
- Add support for fseq files without compression
- Add support for fseq files with Zlib compression
- Add support for fseq files with sparse ranges
- Add support for writing fseq files
MIT
Federico Bond