Skip to main content

Loose bindings to the FluCoMa command line

Project description

python-flucoma

run tests automatically each push

Very loose functional programming bindings from Python3 to FluCoMa CLI tools.

You will need to download the command line versions and put them somewhere in your path.

They can be downloaded from here or compiled from source.

With these bindings I tried to replicate the buffer based behaviour that is present across their supported CCE's instead of any magic to produce a 'native' feel to the code. Instead, functions are bound to fluid processes which return where the outputs are. It is then you're job to collect the results.

A basic novelty slice call is something like:

from flucoma import fluid
from flucoma.utils import get_slices
from pathlib import Path

source = Path("~/Desktop/ec1.wav").expanduser().resolve()

ns = fluid.noveltyslice(source, threshold=0.1)
idx = get_buffer(ns)

print(idx)

or for a more complex example chaining together the output of one process as the input of the next.

from flucoma import fluid
from flucoma.utils import get_slices


mfcc = fluid.mfcc(source, 
    fftsettings = [2048, -1, -1],
    startframe = start,
    numframes = length
)

stats = get_buffer(
    fluid.stats(mfcc,
        numderivs = 1
    ), "numpy" # get_buffer() can return numpy arrays too
)

print(stats)

There are more comprehensive examples in the examples directory of this repo.


Can be installed by any of the methods:

  1. pip install python-flucoma
  2. pip install git+https://github.com/jamesb93/python-flucoma
  3. Cloning this repo, cd and call pip install .

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

python-flucoma-1.0.5.tar.gz (7.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

python_flucoma-1.0.5-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

Details for the file python-flucoma-1.0.5.tar.gz.

File metadata

  • Download URL: python-flucoma-1.0.5.tar.gz
  • Upload date:
  • Size: 7.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.3

File hashes

Hashes for python-flucoma-1.0.5.tar.gz
Algorithm Hash digest
SHA256 07744784468fbd031bda8dde1bb5703e9f2abd64f4e09bd2a9031097e1c76204
MD5 83b7f0f17573bc64c990e07eda45fa43
BLAKE2b-256 4887a1bbd429815f328c042c262b8285df13d345af5c521f9484a06804a08b4c

See more details on using hashes here.

File details

Details for the file python_flucoma-1.0.5-py3-none-any.whl.

File metadata

  • Download URL: python_flucoma-1.0.5-py3-none-any.whl
  • Upload date:
  • Size: 6.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.3

File hashes

Hashes for python_flucoma-1.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 4d695678c7511eed8ea8c53b4f86435a87c0ebc5864d321dc8c4d3743f5bda82
MD5 d530a47f58db37e00b2661b58c78ec41
BLAKE2b-256 ea2c75d813c0cb6d8a7882849221607f8cbf81d3ede7bfc32213038543cf2d57

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page