Tools to help researchers work with Dunya and CompMusic

MTG, updated 🕥 2022-06-22 04:08:44

pycompmusic

Introduction

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.

Authors

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.

License

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]

Installation

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

Documentation

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.

API Quick reference

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.

Issues

Bump numpy from 1.19.5 to 1.22.0

opened on 2022-06-22 04:08:44 by dependabot[bot]

Bumps numpy from 1.19.5 to 1.22.0.

Release notes

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 a TypeError.

(gh-19539)

Expired deprecations for loads, ndfromtxt, and mafromtxt in npyio

numpy.loads was deprecated in v1.15, with the recommendation that users use pickle.loads instead. ndfromtxt and mafromtxt were both deprecated in v1.17 - users should use numpy.genfromtxt instead with the appropriate value for the usemask parameter.

(gh-19615)

... (truncated)

Commits


Dependabot compatibility score

Dependabot 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.


Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) - `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language - `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language - `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language - `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/MTG/pycompmusic/network/alerts).

Bump ipython from 7.7.0 to 7.16.3

opened on 2022-01-21 20:40:08 by dependabot[bot]

Bumps ipython from 7.7.0 to 7.16.3.

Commits


Dependabot compatibility score

Dependabot 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.


Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) - `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language - `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language - `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language - `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/MTG/pycompmusic/network/alerts).

Jingju get_* functions not working

opened on 2021-01-20 12:14:26 by genisplaja

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.

Traceback error

opened on 2020-09-25 19:20:02 by samayou

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("") recordings = dunya.makam.get_recordings()

after the execution after the execution of the code we had the following error :

Traceback (most recent call last): File "", line 1, in File "/home/sama/Downloads/pycompmusic-master/compmusic/dunya/makam.py", line 28, in get_recordings return compmusic.dunya.conn._get_paged_json("api/makam/recording", **args) File "/home/sama/Downloads/pycompmusic-master/compmusic/dunya/conn.py", line 57, in _get_paged_json res = _dunya_url_query(nxt, extra_headers=extra_headers) File "/home/sama/Downloads/pycompmusic-master/compmusic/dunya/conn.py", line 77, in _dunya_url_query raise HTTPError(e) compmusic.dunya.conn.HTTPError: 401 Client Error: Unauthorized for url: https://dunya.compmusic.upf.edu/api/makam/recording

Split algorithms out of pycompmusic

opened on 2019-05-13 11:00:13 by miguelgcasado

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)?

Music Technology Group - Universitat Pompeu Fabra

Software tools developed by the MTG

GitHub Repository