{"id":18423483,"url":"https://github.com/thejoin95/image-to-music","last_synced_at":"2025-10-09T02:24:36.546Z","repository":{"id":50437876,"uuid":"195237412","full_name":"TheJoin95/image-to-music","owner":"TheJoin95","description":"Generate midi files from image","archived":false,"fork":false,"pushed_at":"2019-09-03T13:03:00.000Z","size":40803,"stargazers_count":16,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-08T16:54:53.506Z","etag":null,"topics":["img2midi","img2mp3","javascript","midi","python","rgb2midi","threejs"],"latest_commit_sha":null,"homepage":"https://thejoin95.github.io/image-to-music/index.html","language":"JavaScript","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/TheJoin95.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":"2019-07-04T12:27:19.000Z","updated_at":"2023-04-11T18:13:08.000Z","dependencies_parsed_at":"2022-08-27T03:50:24.871Z","dependency_job_id":null,"html_url":"https://github.com/TheJoin95/image-to-music","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/TheJoin95/image-to-music","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheJoin95%2Fimage-to-music","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheJoin95%2Fimage-to-music/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheJoin95%2Fimage-to-music/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheJoin95%2Fimage-to-music/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TheJoin95","download_url":"https://codeload.github.com/TheJoin95/image-to-music/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheJoin95%2Fimage-to-music/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274717431,"owners_count":25336891,"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","status":"online","status_checked_at":"2025-09-11T02:00:13.660Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["img2midi","img2mp3","javascript","midi","python","rgb2midi","threejs"],"created_at":"2024-11-06T04:37:27.659Z","updated_at":"2025-10-09T02:24:31.527Z","avatar_url":"https://github.com/TheJoin95.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Music-generator-midi\n\nDemo here: https://thejoin95.github.io/image-to-music/index.html\n\nThis little experiment is made in Python and Three.js.\nThe three.js base was made by a girl, but I could not find the link to the her repo anymore. I'm sorry.\n\n## Generate Midi music from image\nThe img2mid script take in input some images and produce a midi file.\n\nThe music is made by a combination of colors: given a portion (pixel) of the image it's calculated the avg color and assigned to a midi note.\nThe duration of a not is given by the brightness of the pixel portion. More bright, the duration is up to 4s and the min is around 0.25s.\n\nThe drum's notes are given by the darkest colors (grey, dark brown and black).\n\n\nI also tried to map the various colors to the light spectrum and then converted them into notes, but without success.\n\nSometimes the \"songs\" are shorter than other or sometimes they are \"cringe\".. it is almost a random sequence of notes.\n\nAll the midi files will be converted into a mp3 file, for web compability.\n\n## Art Gallery\nThe Art Gallery idea came up since some images are paintings.\nI used a premade box from a girl then I customized everything with some colors, pattern and audio.\n\nIf someone find her repo, please, contact me so I can give her the reference.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthejoin95%2Fimage-to-music","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthejoin95%2Fimage-to-music","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthejoin95%2Fimage-to-music/lists"}