{"id":13862447,"url":"https://github.com/tripathiarpan20/midiformers","last_synced_at":"2025-07-14T12:30:42.028Z","repository":{"id":44361012,"uuid":"509673483","full_name":"tripathiarpan20/midiformers","owner":"tripathiarpan20","description":"Applying Transformers to MIDI  music for various tasks","archived":false,"fork":false,"pushed_at":"2022-09-03T08:49:36.000Z","size":720,"stargazers_count":46,"open_issues_count":1,"forks_count":5,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-08-05T06:05:47.471Z","etag":null,"topics":["ai-music-generator","deep-learning","music","music-composition"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tripathiarpan20.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-07-02T06:05:47.000Z","updated_at":"2024-06-20T03:44:47.000Z","dependencies_parsed_at":"2023-01-17T20:01:02.343Z","dependency_job_id":null,"html_url":"https://github.com/tripathiarpan20/midiformers","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/tripathiarpan20%2Fmidiformers","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tripathiarpan20%2Fmidiformers/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tripathiarpan20%2Fmidiformers/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tripathiarpan20%2Fmidiformers/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tripathiarpan20","download_url":"https://codeload.github.com/tripathiarpan20/midiformers/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225974466,"owners_count":17553958,"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-generator","deep-learning","music","music-composition"],"created_at":"2024-08-05T06:01:44.520Z","updated_at":"2024-11-22T22:31:08.558Z","avatar_url":"https://github.com/tripathiarpan20.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# MIDIformers\n\n## Table of Contents\n- [MIDIformers](#midiformers)\n  - [Table of Contents](#table-of-contents)\n  - [DeepMixer \u003ca name=\"deepmixer\"\u003e\u003c/a\u003e](#deepmixer-)\n    - [Installation \u003ca name=\"deepmixerinstall\"\u003e\u003c/a\u003e](#installation-)\n    - [Notebook \u003ca name=\"deepmixernotebook\"\u003e\u003c/a\u003e](#notebook-)\n    - [Output samples \u003ca name=\"deepmixeroutsamples\"\u003e\u003c/a\u003e](#output-samples-)\n  - [Support](#support)\n\n## DeepMixer \u003ca name=\"deepmixer\"\u003e\u003c/a\u003e \n\nThe project involves the usage of the open-source [MusicBERT](https://github.com/microsoft/muzic/tree/main/musicbert) model to perform mask prediction tasks for MIDI task with customizability.\n\n### Installation \u003ca name=\"deepmixerinstall\"\u003e\u003c/a\u003e \n\n```\ngit clone https://github.com/tripathiarpan20/midiformers.git\ncd midiformers/DeepMixer/models/musicbert\n./setup.sh\n```\n\n### Notebook \u003ca name=\"deepmixernotebook\"\u003e\u003c/a\u003e \nThe live version of Colab notebook utilising the scripts in `DeepMixer/models/musicbert` can be accessed from this link : \n\n\u003ca href=\"https://colab.research.google.com/gist/tripathiarpan20/159ad4330086f4934e5b0a093eb2434b/-archived-musicbert_mask_prediction_latest_multiprogram.ipynb\"\u003e\n\u003cimg src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"Image\" style=\"display: block; margin: 0 auto\" /\u003e\n\u003c/a\u003e\n\nThe notebook supports customisability on top of the original MusicBERT codebase, like masking chosen percentage of random notes from either whole MIDI stream/ notes from selected instruments based on user preference. \n\nOther features include: \n\n- [x] Option to leaving notes from the beginning `min_bar_mask` masks out of the masking pool to provide more initial context for mask prediction.  \n- [x] Prediction modes with trade-off between speed and quality of predictions.\n- [x] Sampling strategies like Temperature, Top-k and Nuclues (Top-p) added for mask predictions. \n- [x] Filtering invalid prediction for more consistent results.  \n- [x] Song segment selection and multi-program/ins masking. \n\n### Output samples \u003ca name=\"deepmixeroutsamples\"\u003e\u003c/a\u003e \nSome of the samples from the above notebook along with the reference pieces can be found in a [Drive folder](https://colab.research.google.com/drive/1pPFn-HhH7nZvfbWQlwEne7mm1uc2adOV?usp=sharing) , the songs are copyrighted by the respective owners.\n\nA few of our favorites are embedded below:  \n\n* Shock (Attack on Titan):\n    - Original \u0026 Remix: \n\nhttps://user-images.githubusercontent.com/42506819/178094976-a5763a31-70bf-4a17-b9e9-1255c0b9a1f0.mp4\n\n    \n\n\nhttps://user-images.githubusercontent.com/42506819/178094989-441471d2-78ce-4b6a-8e88-bd01aeab810e.mp4\n\n\n* Bohemian Rhapsody (Queen):\n    - Original \u0026 Remix: \n    \n \n\nhttps://user-images.githubusercontent.com/42506819/178095093-1e1192bc-76e5-4027-b733-d63bed9ac206.mp4\n\n\n\nhttps://user-images.githubusercontent.com/42506819/178095109-b9a38d56-3b69-4169-9ed1-3eb82a47276a.mp4\n\n\n* Unforgiven 2 (Metallica): \n    - Original \u0026 Remix: \n    \n\n\nhttps://user-images.githubusercontent.com/42506819/178095316-6d19c803-3407-4bbd-81e1-0dc476b680d6.mp4\n\n\n\nhttps://user-images.githubusercontent.com/42506819/178095326-f6961d98-c574-4ee2-8d27-27efead79409.mp4\n\n\n## Support\n\nThere are many ways to support a project - starring⭐️ the GitHub repo is just one.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftripathiarpan20%2Fmidiformers","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftripathiarpan20%2Fmidiformers","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftripathiarpan20%2Fmidiformers/lists"}