{"id":26716481,"url":"https://github.com/ronnyandersson/zignal","last_synced_at":"2025-07-13T23:09:18.703Z","repository":{"id":57478318,"uuid":"51716964","full_name":"ronnyandersson/zignal","owner":"ronnyandersson","description":"Python audio signal processing library","archived":false,"fork":false,"pushed_at":"2025-01-28T14:27:10.000Z","size":280,"stargazers_count":23,"open_issues_count":0,"forks_count":8,"subscribers_count":1,"default_branch":"develop","last_synced_at":"2025-06-21T09:17:50.688Z","etag":null,"topics":["audio","audio-signal-processing","digital-signal-processing","filters","maximum-length-sequences","measurements","mls","python-library","signal-processing","sound"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ronnyandersson.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2016-02-14T22:20:18.000Z","updated_at":"2025-01-28T14:27:14.000Z","dependencies_parsed_at":"2024-05-06T09:39:11.902Z","dependency_job_id":"a35460ad-0a70-4427-b22c-bc202a9f8dd2","html_url":"https://github.com/ronnyandersson/zignal","commit_stats":{"total_commits":59,"total_committers":4,"mean_commits":14.75,"dds":0.0847457627118644,"last_synced_commit":"3e8bd88fcaa83ac71b05e1bcf737b812c2fc72e2"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/ronnyandersson/zignal","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ronnyandersson%2Fzignal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ronnyandersson%2Fzignal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ronnyandersson%2Fzignal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ronnyandersson%2Fzignal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ronnyandersson","download_url":"https://codeload.github.com/ronnyandersson/zignal/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ronnyandersson%2Fzignal/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265218750,"owners_count":23729528,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["audio","audio-signal-processing","digital-signal-processing","filters","maximum-length-sequences","measurements","mls","python-library","signal-processing","sound"],"created_at":"2025-03-27T15:27:43.906Z","updated_at":"2025-07-13T23:09:18.669Z","avatar_url":"https://github.com/ronnyandersson.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# zignal\n\nThis is a python audio signal processing library.\n\n## Example usage\n\n    \u003e\u003e\u003e import zignal\n    \u003e\u003e\u003e\n    \u003e\u003e\u003e x = zignal.Sinetone(fs=44100, f0=997, duration=0.1, gaindb=-20)\n    \u003e\u003e\u003e print(x)\n    =======================================\n    classname        : Sinetone\n    sample rate      : 44100.0 [Hz]\n    channels         : 1\n    duration         : 0.100 [s]\n    datatype         : float64\n    samples per ch   : 4410\n    data size        : 0.034 [Mb]\n    has comment      : no\n    peak             : [ 0.1]\n    RMS              : [ 0.0707]\n    crestfactor      : [ 1.4147]\n    -----------------:---------------------\n    frequency        : 997.0 [Hz]\n    phase            : 0.0 [deg]\n    -----------------:---------------------\n\n    \u003e\u003e\u003e x.fade_out(millisec=10)\n    \u003e\u003e\u003e x.convert_to_float(targetbits=32)\n    \u003e\u003e\u003e x.write_wav_file(\"sinetone.wav\")\n    \u003e\u003e\u003e x.plot()\n    \u003e\u003e\u003e x.plot_fft()\n    \u003e\u003e\u003e\n    \u003e\u003e\u003e f = zignal.filters.biquads.RBJ(filtertype=\"peak\", gaindb=-6, f0=997, Q=0.707, fs=96000)\n    \u003e\u003e\u003e print(f)\n    =======================================\n    classname        : RBJ\n    sample rate      : 96000.0 [Hz]\n    feedforward  (B) : [ 0.96949457 -1.87369167  0.90819329]\n    feedback     (A) : [ 1.         -1.87369167  0.87768787]\n    number of zeros  : 2\n    number of poles  : 2\n    minimum phase?   : Yes\n    -----------------:---------------------\n    stable?          : Yes\n    type             : peak\n    gain             : -6.00 [dB]\n    f0               : 997.0 [Hz]\n    Q                : 0.7070\n\n    \u003e\u003e\u003e f.plot_mag_phase()\n    \u003e\u003e\u003e f.plot_pole_zero()\n    \u003e\u003e\u003e\n\nSee the examples folder for more examples. Also check out the sister project\n[zoundcard](https://github.com/ronnyandersson/zoundcard) which can play audio\non a soundcard.\n\n## Requirements\n\nThis library relies on numpy, scipy and matplotlib. It is recommended to create\na virtual environment and let pip install the dependencies automatically.\n\n    python3 -m venv \u003cname-of-virtualenv\u003e\n    . \u003cname-of-virtualenv\u003e/bin/activate\n    pip install zignal\n\n## Local development\n\nCreate a python3 virtualenv and install from the local source code to make the\nzignal library editable.\n\n    python3 -m venv venv_dev\n    . venv_dev/bin/activate\n    pip install --editable .[dev]\n\nBy running `make` it is now possible to run isort, flake8 and also all the unit\ntests. They can also be executed directly from the command line, see the\nMakefile for the full commands to run.\n\n## Build a release\n\n    python3 -m venv venv_build\n    . ./venv_build/bin/activate\n    pip install --upgrade pip build\n    python3 -m build\n\n## Design goals\n\n1.  Readability over efficiency. This is a python library for development and\n    understanding of audio signal processing.\n2.  The initial goal is to write the functionality in pure python, with the use\n    of numpy, scipy and matplotlib. See rule 1. If efficiency becomes an issue\n    a c/c++ library might be implemented but the pure python code must remain\n    the default choice.\n3.  Design for non real-time processing. Functionality to do real-time\n    processing can be added if it does not break rule 1.\n4.  Self documentation. The code should aim to be well documented, in the\n    source code itself.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fronnyandersson%2Fzignal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fronnyandersson%2Fzignal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fronnyandersson%2Fzignal/lists"}