{"id":13430859,"url":"https://github.com/deeuu/loudness","last_synced_at":"2025-03-16T06:31:29.902Z","repository":{"id":21809222,"uuid":"25131877","full_name":"deeuu/loudness","owner":"deeuu","description":"Audio library for modelling loudness","archived":false,"fork":false,"pushed_at":"2019-08-08T08:33:32.000Z","size":865,"stargazers_count":35,"open_issues_count":0,"forks_count":11,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-08-01T02:27:16.625Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/deeuu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-10-12T20:57:43.000Z","updated_at":"2024-06-27T08:00:19.000Z","dependencies_parsed_at":"2022-08-20T00:00:32.378Z","dependency_job_id":null,"html_url":"https://github.com/deeuu/loudness","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deeuu%2Floudness","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deeuu%2Floudness/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deeuu%2Floudness/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deeuu%2Floudness/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/deeuu","download_url":"https://codeload.github.com/deeuu/loudness/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221656442,"owners_count":16858771,"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":[],"created_at":"2024-07-31T02:00:58.480Z","updated_at":"2024-10-27T09:30:59.474Z","avatar_url":"https://github.com/deeuu.png","language":"C++","readme":"# Loudness\n\nLoudness is a C++ library with Python bindings for modelling perceived loudness. \nThe library consists of processing modules which can be cascaded to form a loudness model.\n\n## Dependencies\n\nTo build the C++ library you will need:\n  - libsndfile1-dev \u003e= 1.0.25\n  - libfftw3-dev \u003e= 3.3.3\n  - zlib1g-dev \u003e= 1.2.8\n\nTo build the Python bindings you will need:\n  - swig \u003e= 3.0.0\n  - python-numpy-dev\n\n## Note\n\nThis project is still in heavy development so is not stable. I am also now only\nsupporting Python 3.5+. Please register an issue at:\n[https://github.com/deeuu/loudness/issues](https://github.com/deeuu/loudness/issues)\n\n## Acknowledgments \n\nThe library interface is based on the fantastic AIM-C:\nhttps://code.google.com/p/aimc/\n\nThe cnpy library for reading numpy arrays in C++:\nhttps://github.com/rogersce/cnpy\n\nRicard Marxer for the loudia audio project:\nhttps://github.com/rikrd/loudia\n\n### Example - Loudness of a 1 kHz tone @ 40 dB SPL according to ANSI S3.4:2007\n~~~\nimport loudness as ln\n\n# All inputs and outputs make use of a SignalBank\ninputBank = ln.SignalBank()\nnSources = 1\nnEars = 1\nnChannels = 1\nnSamples = 1\nfs = 1\n\n# There are 4 dimensions\ninputBank.initialize(nSources, nEars, nChannels, nSamples, fs)\n\n# Set the centre frequency of the first channel\ninputBank.setCentreFreq(0, 1000)\n\n# Set the intensity in normalised units\nlevel = 40\ninputBank.setSample(0, 0, 0, 0, 10.0 ** (level / 10.0))\n\n# The loudness model\nmodel = ln.StationaryLoudnessANSIS342007()\nmodel.initialize(inputBank)\n\n# Now process the input\nmodel.process(inputBank)\n\n# Get the output of this loudness model\nfeature = 'Loudness'\noutputBank = model.getOutput(feature)\n\nprint 'Loudness in sones %0.2f' % outputBank.getSample(0, 0, 0, 0)\n~~~\n","funding_links":[],"categories":["C++","Audio Related Packages"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeeuu%2Floudness","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdeeuu%2Floudness","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeeuu%2Floudness/lists"}