{"id":17091501,"url":"https://github.com/jhurliman/music-interpolation","last_synced_at":"2025-07-24T07:08:13.977Z","repository":{"id":187550414,"uuid":"677062691","full_name":"jhurliman/music-interpolation","owner":"jhurliman","description":"Mix between music tracks using machine learning","archived":false,"fork":false,"pushed_at":"2023-08-16T19:54:36.000Z","size":143,"stargazers_count":10,"open_issues_count":3,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-12T22:37:11.371Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/jhurliman.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-08-10T16:40:37.000Z","updated_at":"2025-03-26T09:11:51.000Z","dependencies_parsed_at":"2025-04-12T22:45:09.129Z","dependency_job_id":null,"html_url":"https://github.com/jhurliman/music-interpolation","commit_stats":null,"previous_names":["jhurliman/music-interpolation"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jhurliman/music-interpolation","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jhurliman%2Fmusic-interpolation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jhurliman%2Fmusic-interpolation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jhurliman%2Fmusic-interpolation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jhurliman%2Fmusic-interpolation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jhurliman","download_url":"https://codeload.github.com/jhurliman/music-interpolation/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jhurliman%2Fmusic-interpolation/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266807142,"owners_count":23987426,"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-07-24T02:00:09.469Z","response_time":99,"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":[],"created_at":"2024-10-14T13:58:52.688Z","updated_at":"2025-07-24T07:08:08.957Z","avatar_url":"https://github.com/jhurliman.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# music-interpolation\n\n\u003e Mix between music tracks using machine learning\n\n## Introduction\n\nThis repository is a sandbox to experiment with machine learning techniques for smoothly transitioning between music tracks.\n\n## Development\n\n1. `git clone https://github.com/jhurliman/music-interpolation.git`\n2. `cd music-interpolation`\n3. Install pipenv if you have not already: `pip install pipenv`\n4. Install dependencies: `pipenv sync --python 3.10 --dev`\n5. Run tests: `pipenv run pytest`\n\n## Usage\n\n```python\nimport librosa\nfrom IPython.display import Audio\nfrom music_interpolation import EncodecInterpolation\n\n# Instantiate the interpolation class, fetching and loading the pre-trained\n# Encodec model\ninterp = EncodecInterpolation()\n\n# Load two audio tracks, resampling to the sampling rate of the Encodec model\n# (defaults to 48kHz)\naudio_a, _ = librosa.load('audio_a.mp3', sr=interp.sampling_rate, mono=False)\naudio_b, _ = librosa.load('audio_b.mp3', sr=interp.sampling_rate, mono=False)\n\n# Transition between two audio tracks using linear interpolation between\n# embedding vectors generated by a pre-trained Encodec model\naudio_c = interp.interpolate(audio_a, audio_b)\nAudio(data=audio_c, rate=interp.sampling_rate)\n```\n\n## Contributing\n\nContributions are welcome! Open a pull request to fix a bug, or open an issue to discuss a new feature or change.\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjhurliman%2Fmusic-interpolation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjhurliman%2Fmusic-interpolation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjhurliman%2Fmusic-interpolation/lists"}