{"id":23383371,"url":"https://github.com/sweetcase-production/pcfl","last_synced_at":"2025-04-08T09:44:59.272Z","repository":{"id":210490673,"uuid":"717429692","full_name":"sweetcase-production/pcfl","owner":"sweetcase-production","description":"Piano Compensator for FLstudio","archived":false,"fork":false,"pushed_at":"2023-12-04T07:22:18.000Z","size":57,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-03-16T16:39:54.749Z","etag":null,"topics":["flstudio","midi","music","python-library"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/pcfl","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/sweetcase-production.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}},"created_at":"2023-11-11T13:18:04.000Z","updated_at":"2024-10-03T00:49:13.000Z","dependencies_parsed_at":"2023-12-03T05:31:48.994Z","dependency_job_id":"6ea20275-50c4-40ad-9532-118bf811f3de","html_url":"https://github.com/sweetcase-production/pcfl","commit_stats":null,"previous_names":["skywinz/pcfl"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sweetcase-production%2Fpcfl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sweetcase-production%2Fpcfl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sweetcase-production%2Fpcfl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sweetcase-production%2Fpcfl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sweetcase-production","download_url":"https://codeload.github.com/sweetcase-production/pcfl/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247816844,"owners_count":21001051,"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":["flstudio","midi","music","python-library"],"created_at":"2024-12-21T22:20:17.448Z","updated_at":"2025-04-08T09:44:59.237Z","avatar_url":"https://github.com/sweetcase-production.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pcfl\n\n![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/skywinz/pcfl/test-ubuntu.yml?label=test-ubuntu)\n![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/skywinz/pcfl/test-windows.yml?label=test-windows)\n[![CI](https://github.com/skywinz/pcfl/actions/workflows/ci.yml/badge.svg)](https://github.com/skywinz/pcfl/actions/workflows/ci.yml)\n![PyPI - Python Version](https://img.shields.io/pypi/pyversions/pcfl?logo=python\u0026logoColor=white)\n![PyPI - Version](https://img.shields.io/pypi/v/pcfl)\n![GitHub](https://img.shields.io/github/license/skywinz/pcfl)\n\n\n\n\n\n* MuseScore4에서 FL Studio에 피아노 페달(CC64)이 포함된 미디파일을 임포트할 때, 페달 사이의 간격을 벌려 정상적으로 임포트를 하게 하는\n전처리 라이브러리 및 프로그램 입니다.\n* 페달이 연속으로 붙어있는 미디파일을 FL Studio에 임포트 하면 그 두 개의 페달이 하나로 합쳐저 불협화음을 발생시킵니다.\n* PCFL는 이를 막기 위해 두 페달 사이의 간격을 3 ticks 정도 벌립니다.\n* [이전 구현체](https://github.com/skywinz/pcfl-legacy)에서는 Musescore3까지만 대응할 수 있고 Musescore4 부터 대응이 불가능 하여 새 구현체를 구현하게 되었습니다.\n\n\n## Installation (As User)\n```shell\n$ pip install pcfl\n```\n\n## Installation (As Dev)\n```shell\n$ git clone https://github.com/skywinz/pcfl.git\n$ poetry install\n```\n\n## Usage\n### As CLI\n```shell\n$ python -m pcfl -f input.mid -o output.mid\n```\n\n### As Library\n```python\nimport mido\nfrom pcfl import pcfl, pcfl_by_file\n\n# 파일을 사용할 경우\noutput_filepath = pcfl_by_file(\"input.mid\", \"output.mid\")\n\n# mido.MidiFile을 사용할 경우\nmidi = mido.MidiFile(\"input.mid\")\npcfl(midi)\n```\n\n### ThirdParty\n* [mido](https://github.com/mido/mido)\n  * 이전 legacy 버전에서 사용했던 [music21](https://github.com/cuthbertLab/music21)대신 mido를 사용했습니다.\n  * 기본 midi R/W 말고도 많은 분석 툴까지 포함되어 상당히 무거운 music21과는 달리 mido는 단순히 midi 데이터를 R/W하는 데만 집중되어 있어 훨씬 가볍습니다.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsweetcase-production%2Fpcfl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsweetcase-production%2Fpcfl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsweetcase-production%2Fpcfl/lists"}