Coder Social home page Coder Social logo

carlosholivan / musicaiz Goto Github PK

View Code? Open in Web Editor NEW
154.0 5.0 16.0 5.49 MB

A python framework for symbolic music generation, evaluation and analysis

Home Page: https://carlosholivan.github.io/musicaiz

License: GNU Affero General Public License v3.0

Python 100.00%
audio deep-learning machine-learning music music-generation python symbolic mir music-information-retrieval

musicaiz's Introduction

I'm Carlos, a PhD student in Machine Learning and Music

Statistical data

GitHub stats

top languages

Languages and Framewroks:

Others (basic user):

Contact info:

musicaiz's People

Contributors

aibeatz-dm avatar carlosholivan avatar soniarubiollamas avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

musicaiz's Issues

Installation errors with pip

Hi Carlos,

Thanks for the great library! I was trying today to install it with the following command:

!pip install musicaiz

And I got this error:

Looking in indexes: https://pypi.org/simple, https://us-python.pkg.dev/colab-wheels/public/simple/
Collecting musicaiz
  Using cached musicaiz-0.1.1.tar.gz (143 kB)
  Installing build dependencies ... done
  error: subprocess-exited-with-error
  
  × Getting requirements to build wheel did not run successfully.
  │ exit code: 1
  ╰─> See above for output.
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  Getting requirements to build wheel ... error
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

I am using Google Colab. I had the same problem if I try to clone it and then run pip install -e .

Best regards,

Juan Carlos

Problems importing MMMTokenizerArguments

Hi,

I was trying to use the examples of the README file. Howevere, I am having this problem:

from musicaiz.tokenizers import MMMTokenizer, MMMTokenizerArguments

---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
[<ipython-input-8-0bffbe238ff0>](https://localhost:8080/#) in <module>
----> 1 from musicaiz.tokenizers import MMMTokenizer, MMMTokenizerArguments
      2 from musicaiz.datasets import JSBChorales

ImportError: cannot import name 'MMMTokenizerArguments' from 'musicaiz.tokenizers' (/usr/local/lib/python3.8/dist-packages/musicaiz/tokenizers/__init__.py)

---------------------------------------------------------------------------
NOTE: If your import is failing due to a missing package, you can
manually install dependencies using either !pip or !apt.

To view examples of installing some common dependencies, click the
"Open Examples" button below.
---------------------------------------------------------------------------

Datasets create empty samples

Hi Carlos,

I created a dataset using Musicaiz. I used the provided code:

from musicaiz.tokenizers import MMMTokenizer, MMMTokenizerArguments
from musicaiz.datasets import JSBChorales

# Tokenize a dataset in musicaiz
output_path = "./BachChorales_4Bar_128"

args = MMMTokenizerArguments(
    prev_tokens="",
    windowing=True,
    time_unit="HUNDRED_TWENTY_EIGHT",
    num_programs=None,
    shuffle_tracks=True,
    track_density=True,
    window_size=4,
    hop_length=2,
    time_sig=False,
    velocity=False,
)
dataset = JSBChorales()
dataset.tokenize(
    dataset_path="/path/JSBChoralesDataset",
    output_path=output_path,
    output_file="token-sequences",
    args=args,
    tokenize_split="all"
)

When reviewing the dataset, I noticed that there were some empty lines:

image

You can also check it out in Hugging Face.

I am unsure about why this is happening. I could not install the repo locally now to debug it, but maybe it has to do with the mmm tokenizer? Line 174:

tokens += "\n".

I am happy to create a PR if I find the problem. But I wanted to create the issue first 😃

Thanks again for the great library.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.