{"id":13862274,"url":"https://github.com/s-omranpour/DeepMusic","last_synced_at":"2025-07-14T11:33:10.170Z","repository":{"id":62567446,"uuid":"364711972","full_name":"s-omranpour/DeepMusic","owner":"s-omranpour","description":"A python package for high level musical data manipulation and preprocessing, making data ready to be fed to a neural network.","archived":false,"fork":false,"pushed_at":"2022-01-19T20:34:47.000Z","size":459,"stargazers_count":40,"open_issues_count":0,"forks_count":5,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-11-11T04:11:50.634Z","etag":null,"topics":["ai-music","deep-learning","midi","miditoolkit","music","python","symbolic-music"],"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/s-omranpour.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":"2021-05-05T21:37:47.000Z","updated_at":"2024-11-01T07:17:55.000Z","dependencies_parsed_at":"2022-11-03T18:54:21.197Z","dependency_job_id":null,"html_url":"https://github.com/s-omranpour/DeepMusic","commit_stats":null,"previous_names":["s-omranpour/deepnote"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/s-omranpour%2FDeepMusic","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/s-omranpour%2FDeepMusic/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/s-omranpour%2FDeepMusic/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/s-omranpour%2FDeepMusic/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/s-omranpour","download_url":"https://codeload.github.com/s-omranpour/DeepMusic/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225974397,"owners_count":17553943,"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":["ai-music","deep-learning","midi","miditoolkit","music","python","symbolic-music"],"created_at":"2024-08-05T06:01:40.936Z","updated_at":"2024-11-22T22:30:52.338Z","avatar_url":"https://github.com/s-omranpour.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"*** A newer version of Deepmusic package with more features and better interface is available at the `multitrack` branch. However, it is still under development ***\n\n\n# DeepMusic\nDeepMusic is a high level python package with following features:\n - supporting different formats like MIDI, REMI, Compound Word and pianoroll. [1, 2]\n - representing musical data in a very simple but useful way for high level music theoretic manipulations.\n - preprocessing musical data in order to feed them to neural networks (chord extraction, quantization and numericalization).\n - supporting metrics used for evaluating generated sequences. [3, 4]\n\n## Install\n\n\n### With pip\n`pip install deepmusic`\n\n\n### From source\n```\ngit clone https://github.com/s-omranpour/DeepMusic\ncd DeepMusic\npip install .\n```\n\n\n## Usage\n```python\nfrom deepmusic import MusicRepr\n\n## reading a midi file\nseq = MusicRepr.from_file('test.mid')\n\n## displaying first 10 events\nprint(seq[:10])\n\n## export to remi representation\nremi = seq.to_remi(ret='token')\n\n## export to compound word representation\ncp = seq.to_cp()\nprint(cp.shape) ## (num_events, 8)\n\n## splitting song's bars\nbars = seq.get_bars()\nprint(len(bars))\n```\n\n\nfor more details please see `examples`.\n\n\n\n## References\n[1] Pop Music Transformer: Beat-based Modeling and Generation of Expressive Pop Piano Compositions, Yu-Siang Huang, Yi-Hsuan Yang\n\n[2] Compound Word Transformer: Learning to Compose Full-Song Musicover Dynamic Directed Hypergraphs, Wen-Yi Hsiao, Jen-Yu Liu, Yin-Cheng Yeh, Yi-Hsuan Yang\n\n[3] The Jazz Transformer on the Front Line: Exploring the Shortcomings of AI-composed Music through Quantitative Measures, Shih-Lun Wu, Yi-Hsuan Yang\n\n[4] [https://github.com/slSeanWU/MusDr](https://github.com/slSeanWU/MusDr)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fs-omranpour%2FDeepMusic","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fs-omranpour%2FDeepMusic","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fs-omranpour%2FDeepMusic/lists"}