Code Monkey home page Code Monkey logo

python-fseq's Introduction

python-fseq

A Falcon Pi Player fseq (v2) sequence file parser.

Installation

pip install fseq

Usage

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 object
  • version: a 2-tuple of numbers containing major and minor version
  • minor_version: the minor version number
  • major_version: the major version number
  • channel_count_per_frame: the amount of channels in each frame
  • number_of_frames: the total number of frames in this sequence
  • step_time_in_ms: the number of milliseconds between each frame
  • unique_id: a unique indentified
  • compression_type: the compression type used for frames, either none, zstd, zlib
  • variable_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]

Development

To run the all tests run:

tox

TODO

  • 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

License

MIT

Author

Federico Bond

python-fseq's People

Contributors

federicobond avatar wsmlby avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

python-fseq's Issues

fseq not found

pip install fseq

ERROR: Could not find a version that satisfies the requirement fseq
ERROR: No matching distribution found for fseq

is their manual installation or lib?
i tried with manual installation

got this eror
ModuleNotFoundError: No module named 'zstandard'

already installed that lib (pip install zstandard)

Thanks!

Thanks for making this.

Do you know of any higher level tools?
I'd like to play fseq files and broadcast audio using PiFmRds and Falcon Pi Player doesn't seem to allow this.

I'm guessing you made this for a similar reason?

fseqIntermediate file parsing

I'm sorry to bother you. At present, I can only get the header file by using the analysis of fseq, but I can't get the following meaning. Would it be convenient for you to leave an email? Thank you very much. At the same time, I have a strong learning ability. If you are my teacher, I will give you an unexpected surprise. Thank you!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.