{"id":19998228,"url":"https://github.com/nwoeanhinnogaehr/scpy","last_synced_at":"2026-01-19T09:34:30.291Z","repository":{"id":86311525,"uuid":"59534088","full_name":"nwoeanhinnogaehr/ScPy","owner":"nwoeanhinnogaehr","description":"Python in a SuperCollider UGen","archived":false,"fork":false,"pushed_at":"2016-09-11T16:10:06.000Z","size":2431,"stargazers_count":4,"open_issues_count":2,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-04T14:46:55.583Z","etag":null,"topics":["audio","audio-effect","live-coding","numpy","python","supercollider","ugens"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nwoeanhinnogaehr.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":"2016-05-24T02:31:32.000Z","updated_at":"2020-08-01T17:15:49.000Z","dependencies_parsed_at":"2023-03-13T09:44:41.248Z","dependency_job_id":null,"html_url":"https://github.com/nwoeanhinnogaehr/ScPy","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nwoeanhinnogaehr/ScPy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nwoeanhinnogaehr%2FScPy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nwoeanhinnogaehr%2FScPy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nwoeanhinnogaehr%2FScPy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nwoeanhinnogaehr%2FScPy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nwoeanhinnogaehr","download_url":"https://codeload.github.com/nwoeanhinnogaehr/ScPy/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nwoeanhinnogaehr%2FScPy/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28565001,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-19T08:53:44.001Z","status":"ssl_error","status_checked_at":"2026-01-19T08:52:40.245Z","response_time":67,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["audio","audio-effect","live-coding","numpy","python","supercollider","ugens"],"created_at":"2024-11-13T05:07:51.665Z","updated_at":"2026-01-19T09:34:30.285Z","avatar_url":"https://github.com/nwoeanhinnogaehr.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ScPy\nThis project lets you embed Python code inside of SuperCollider programs, enabling the use of more computationally intensive vector operations in realtime than would be possible with SuperCollider alone.\n\nFor all the details, read [the paper](doc/paper.pdf).\n\n## build\nYou need Python 3, NumPy, make, and g++ or clang++.\n\nIf your SuperCollider extensions dir is not `~/.local/share/SuperCollider/Extensions`, you will have to set `SC_EXT_DIR` appropriately before building.\n```\n$ cd ugen\n$ make install\n```\n\nIf you are using Ubuntu you might have to do the following:\n```\n$ cd ugen\n$ make ubuntuinstall\n```\n\nAs we have had linking issues with python on Ubuntu 16.04.\n\n## run\nCheck out the [examples](examples).\n\nThis was tested with SuperCollider \u003e=3.6.6 and Python 3.5.2.\n\nUsing the latest SuperCollider allows you to do larger FFTs.\n\nIf you run into problems, please file an issue!\n\n## docs\n\nThe interface:\n\n```\nPy(code, args=(), doneAction=0)\nPyOnce(code, args=(), doneAction=2)\nPyFile(filename, args=(), doneAction=0)\nPyOnceFile(filename, args=(), doneAction=2)\n```\nWhere:\n\n* code is a `String` containing Python code, or filename is a `String` containing the name of a Python file.\n* args is an `Event` mapping from Python variable names to SuperCollider values/variables.\n* doneAction is a `DoneAction` which is performed after the code runs once.\n\nThe `Once` versions are different in that they are not UGens, but rather run the code immediately. They have the doneAction argument set such that they terminate after running the Python code once.\n\nAll NumPy functions are imported for you automatically. Variables defined at the top level in a Python block are accessible globally in other Python blocks. Some additional useful things which are accessible are defined in [ugen/python/api.py](ugen/python/api.py).\n\nCurrently supported SuperCollider types and corresponding Python types:\n\n* `Float` -\u003e `float`\n* `UGen` -\u003e `ndarray of float`\n* `Buffer` -\u003e `ndarray of float`\n* `FFT` -\u003e `ndarray of complex`\n* `Array` -\u003e `list`\n\n## Contributors\n\n    ScPy python embedded in supercollider\n    Copyright (C) 2016 Noah Weninger, Abram Hindle\n\n    This program is free software: you can redistribute it and/or modify\n    it under the terms of the GNU General Public License as published by\n    the Free Software Foundation, either version 3 of the License, or\n    (at your option) any later version.\n\n    This program is distributed in the hope that it will be useful,\n    but WITHOUT ANY WARRANTY; without even the implied warranty of\n    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n    GNU General Public License for more details.\n\n    You should have received a copy of the GNU General Public License\n    along with this program.  If not, see \u003chttp://www.gnu.org/licenses/\u003e.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnwoeanhinnogaehr%2Fscpy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnwoeanhinnogaehr%2Fscpy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnwoeanhinnogaehr%2Fscpy/lists"}