{"id":18616371,"url":"https://github.com/lordmauve/pyfxr","last_synced_at":"2025-04-11T01:31:43.116Z","repository":{"id":62580481,"uuid":"356552790","full_name":"lordmauve/pyfxr","owner":"lordmauve","description":"Sound effects generation for Python, in fast Cython code, compatible with Pygame and Pyglet.","archived":false,"fork":false,"pushed_at":"2024-03-18T07:08:36.000Z","size":141,"stargazers_count":19,"open_issues_count":6,"forks_count":3,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-25T07:12:30.145Z","etag":null,"topics":["gamedev","python","python-game-development","synthesizer"],"latest_commit_sha":null,"homepage":"https://pyfxr.readthedocs.io/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lordmauve.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":"2021-04-10T10:53:38.000Z","updated_at":"2025-02-23T13:56:29.000Z","dependencies_parsed_at":"2024-11-07T03:48:33.206Z","dependency_job_id":null,"html_url":"https://github.com/lordmauve/pyfxr","commit_stats":{"total_commits":46,"total_committers":2,"mean_commits":23.0,"dds":"0.021739130434782594","last_synced_commit":"323ac62b296eb91bbb6a179e93a47449dda42f05"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lordmauve%2Fpyfxr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lordmauve%2Fpyfxr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lordmauve%2Fpyfxr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lordmauve%2Fpyfxr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lordmauve","download_url":"https://codeload.github.com/lordmauve/pyfxr/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248254516,"owners_count":21073100,"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":["gamedev","python","python-game-development","synthesizer"],"created_at":"2024-11-07T03:34:57.577Z","updated_at":"2025-04-11T01:31:41.086Z","avatar_url":"https://github.com/lordmauve.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pyfxr\n\nSound effects generation for Python, compatible with Pygame and Pyglet.\n\n\n## Installation\n\n`pyfxr` is on PyPI and pre-compiled for Mac, Windows and Linux. You can install\nthe library with\n\n```\npip install pyfxr\n```\n\n## Documentation\n\n[Full API documentation](https://pyfxr.readthedocs.io/)\n\n\n## Pygame Usage\n\n```\n# Set mixer to 44kHz mono\npygame.mixer.pre_init(44100, channels=1)\n\n# Generate a sound\ntone = pygame.mixer.Sound(\n    buffer=pyfxr.pluck(duration=1.0, pitch='A4')\n)\n\n# Play it\ntone.play()\n```\n\n## Usage with Pyglet\n\n```\n# Generate a random explosion sound\nexplosion = pyglet.media.StaticSource(pyfxr.explosion())\n\n# Play it\nexplosion.play()\n```\n\n## Usage with sounddevice\n\n```\nimport sounddevice\nimport pyfxr\n\nsounddevice.play(pyfxr.jump(), pyfxr.SAMPLE_RATE)\n```\n\n## GUI\n\nA Pygame GUI is in development, to explore the feature set and create music!\n\nTo install the Pygame-based GUI along with the library, use:\n\n```\npip install pyfxr[gui]\n```\n\nThen you can run the GUI by running `pyfxr`.\n\n![Screenshot](docs/_static/keyboard.png)\n\n![Screenshot](docs/_static/fxr.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flordmauve%2Fpyfxr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flordmauve%2Fpyfxr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flordmauve%2Fpyfxr/lists"}