{"id":21176783,"url":"https://github.com/gopuman/musicgen","last_synced_at":"2026-05-16T23:31:06.843Z","repository":{"id":48173068,"uuid":"516249715","full_name":"gopuman/MusicGen","owner":"gopuman","description":null,"archived":false,"fork":false,"pushed_at":"2022-07-22T08:56:05.000Z","size":405,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-14T18:36:25.228Z","etag":null,"topics":["keras","midi","music"],"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/gopuman.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-21T06:21:24.000Z","updated_at":"2023-02-19T07:08:28.000Z","dependencies_parsed_at":"2022-08-31T07:21:26.894Z","dependency_job_id":null,"html_url":"https://github.com/gopuman/MusicGen","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/gopuman/MusicGen","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gopuman%2FMusicGen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gopuman%2FMusicGen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gopuman%2FMusicGen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gopuman%2FMusicGen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gopuman","download_url":"https://codeload.github.com/gopuman/MusicGen/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gopuman%2FMusicGen/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33122065,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-16T18:38:32.183Z","status":"ssl_error","status_checked_at":"2026-05-16T18:38:29.903Z","response_time":115,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["keras","midi","music"],"created_at":"2024-11-20T17:05:12.759Z","updated_at":"2026-05-16T23:31:06.827Z","avatar_url":"https://github.com/gopuman.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MusicGen\nCredits - [How to Generate Music using a LSTM Neural Network in Keras](https://towardsdatascience.com/how-to-generate-music-using-a-lstm-neural-network-in-keras-68786834d4c5) --\u003e [Classical Piano Composer](https://github.com/Skuldur/Classical-Piano-Composer)\n\nThis project allows you to train a neural network to generate midi music files that make use of a single instrument\n\n## Requirements\n* Python 3.x\n* Installing the following packages using pip:\n\t* Music21\n\t* Keras\n\t* Tensorflow\n\t* h5py\n  \n## Usage\n* Place midi files of your choice into the midi_songs directory\n\n* Run the train.py file to train the NN\n\n```\npython3 train.py\n```\n\n* After successfully running train.py, update the path_to_weights_file variable in `gen.py` and run:\n\n```\npython3 gen.py\n```\n\n* Find the results in - `test_output.mid`\n\n## Results\n* I had chosen music of similar genres i.e Superhero/Sci-Fi music\n* Check it out -\u003e [BatAI_unmixed](https://soundcloud.com/gopal-nambiar/batai_unmixed?in=gopal-nambiar/sets/the-bat)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgopuman%2Fmusicgen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgopuman%2Fmusicgen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgopuman%2Fmusicgen/lists"}