Python tools for analysing and working with audio.
This repository contains utilities and algorithms for use in the Dunya project (https://github.com/MTG/dunya, https://dunya.compmusic.upf.edu), but is separate to make it easier to develop.
Dunya and pycompmusic have been developed by a number of people in the CompMusic project. For a list of contributors see the AUTHORS file. Dunya includes methods and techniques developed as part of CompMusic. For a list of publications see https://compmusic.upf.edu/node/4.
Dunya is Copyright 2013-2019 Music Technology Group - Universitat Pompeu Fabra
Dunya is released under the terms of the GNU Affero General Public License (v3 or later). See the COPYING file for more information.
If you would prefer to get a (non FOSS) commercial license, please contact us at [email protected]
This library is designed for python 3.4+, and python 2 is not longer supported. However, for previous releases we support python 2 on a best-effort basis.
It is recommended to install pycompmusic and dependencies into a virtualenv. Do it like this:
virtualenv -p python3 env
source env/bin/activate
python setup.py install
If you want to be able to edit files and have the changes be reflected, then install compmusic like this instead
pip install -e .
Now you can install the rest of the dependencies:
pip install -r requirements.txt
There are sphinx docs available in the docs
directory. Install sphinx to be able to build them
pip install sphinx
to build the docs run
make html
from the root directory.
In order to use the api is required to have a user in dunya. You can register on dunya through the web: https://dunya.compmusic.upf.edu/social/register/ . Once your account is active you can start using the api, for example you can get the information of all the recording of the makam collections with this url: https://dunya.compmusic.upf.edu/api/makam/recording
In this repository you can find the code to access the API with python. For example to access the recording in the makam collection:
from compmusic import dunya
dunya.set_token("<your_token>")
recordings = dunya.makam.get_recordings()
In order to get your API token you have to log in to dunya (https://dunya.compmusic.upf.edu/social/login/) and then go to your profile: https://dunya.compmusic.upf.edu/social/profile/ where you will find your token.
Bumps numpy from 1.19.5 to 1.22.0.
Sourced from numpy's releases.
v1.22.0
NumPy 1.22.0 Release Notes
NumPy 1.22.0 is a big release featuring the work of 153 contributors spread over 609 pull requests. There have been many improvements, highlights are:
- Annotations of the main namespace are essentially complete. Upstream is a moving target, so there will likely be further improvements, but the major work is done. This is probably the most user visible enhancement in this release.
- A preliminary version of the proposed Array-API is provided. This is a step in creating a standard collection of functions that can be used across application such as CuPy and JAX.
- NumPy now has a DLPack backend. DLPack provides a common interchange format for array (tensor) data.
- New methods for
quantile
,percentile
, and related functions. The new methods provide a complete set of the methods commonly found in the literature.- A new configurable allocator for use by downstream projects.
These are in addition to the ongoing work to provide SIMD support for commonly used functions, improvements to F2PY, and better documentation.
The Python versions supported in this release are 3.8-3.10, Python 3.7 has been dropped. Note that 32 bit wheels are only provided for Python 3.8 and 3.9 on Windows, all other wheels are 64 bits on account of Ubuntu, Fedora, and other Linux distributions dropping 32 bit support. All 64 bit wheels are also linked with 64 bit integer OpenBLAS, which should fix the occasional problems encountered by folks using truly huge arrays.
Expired deprecations
Deprecated numeric style dtype strings have been removed
Using the strings
"Bytes0"
,"Datetime64"
,"Str0"
,"Uint32"
, and"Uint64"
as a dtype will now raise aTypeError
.(gh-19539)
Expired deprecations for
loads
,ndfromtxt
, andmafromtxt
in npyio
numpy.loads
was deprecated in v1.15, with the recommendation that users usepickle.loads
instead.ndfromtxt
andmafromtxt
were both deprecated in v1.17 - users should usenumpy.genfromtxt
instead with the appropriate value for theusemask
parameter.(gh-19615)
... (truncated)
4adc87d
Merge pull request #20685 from charris/prepare-for-1.22.0-releasefd66547
REL: Prepare for the NumPy 1.22.0 release.125304b
wipc283859
Merge pull request #20682 from charris/backport-204165399c03
Merge pull request #20681 from charris/backport-20954f9c45f8
Merge pull request #20680 from charris/backport-20663794b36f
Update armccompiler.pyd93b14e
Update test_public_api.py7662c07
Update init.py311ab52
Update armccompiler.pyDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase
.
Bumps ipython from 7.7.0 to 7.16.3.
d43c7c7
release 7.16.35fa1e40
Merge pull request from GHSA-pq7m-3gw7-gq5x8df8971
back to dev9f477b7
release 7.16.2138f266
bring back release helper from master branch5aa3634
Merge pull request #13341 from meeseeksmachine/auto-backport-of-pr-13335-on-7...bcae8e0
Backport PR #13335: What's new 7.16.28fcdcd3
Pin Jedi to <0.17.2.2486838
release 7.16.120bdc6f
fix conda buildDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase
.
Hello,
I am trying to retrieve the entire available content in the Dunya's Jingju collection but some of the functions listed here in the documentation: https://dunya.compmusic.upf.edu/docs/jingju.html are not working.
I can retrieve the artists using compmusic.dunya.jingju.get_artists()
, but the functions compmusic.dunya.jingju.get_recordings()
and compmusic.dunya.jingju.get_releases()
are returning an empty list []
.
I have tried to run these functions in different collections and they actually work, so I think this problem is just for the Jingju collection.
In this repository https://github.com/MTG/pycompmusic you can find the code to access the API with python. For example to access the recording in the makam collection:
from compmusic import dunya
dunya.set_token("
after the execution after the execution of the code we had the following error :
Traceback (most recent call last):
File "
As talked last time discussing about the structure of dunya/pycompmusic, it was arranged to separate the algorithms and extractors from pycompmusic, locating them in dunya. This way we would just leave pycompmusic for acces API.
Regarding dunya structure, what would be the best place to move algorithms (compmusic/extractors)?
Software tools developed by the MTG
GitHub Repository