{"id":19320501,"url":"https://github.com/aluriak/syne","last_synced_at":"2025-10-09T20:22:38.985Z","repository":{"id":57472933,"uuid":"140305755","full_name":"Aluriak/syne","owner":"Aluriak","description":"Synesthesia for coders","archived":false,"fork":false,"pushed_at":"2022-04-01T19:57:09.000Z","size":14,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-06T11:39:14.583Z","etag":null,"topics":["python","synesthesia"],"latest_commit_sha":null,"homepage":"","language":"Python","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/Aluriak.png","metadata":{"files":{"readme":"README.mkd","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":"2018-07-09T15:31:50.000Z","updated_at":"2022-04-01T19:55:13.000Z","dependencies_parsed_at":"2022-09-26T17:40:27.078Z","dependency_job_id":null,"html_url":"https://github.com/Aluriak/syne","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aluriak%2Fsyne","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aluriak%2Fsyne/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aluriak%2Fsyne/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aluriak%2Fsyne/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Aluriak","download_url":"https://codeload.github.com/Aluriak/syne/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240421666,"owners_count":19798616,"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":["python","synesthesia"],"created_at":"2024-11-10T01:29:16.205Z","updated_at":"2025-10-09T20:22:33.956Z","avatar_url":"https://github.com/Aluriak.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Syne\nBring concepts of synesthesia in development.\n\nThis package is totally not complete, stable, mature nor definitive.\n\n\n## soundpoints\n\n```python\nfrom syne import soundpoint\n\ndef func():\n    soundpoint()\n    soundpoint(duration=.5)\n    soundpoint()\n\nfunc()\nfunc()\n```\n\nWill play two times the three sounds associated to function func, with a longer middle sound.\n\nThe sounds are chosen following a note scale, and based on the stacktrace,\nmeaning that each calls in function `a` will sound differently between them\nand will be the same for second call.\n\nYou can change the scale with the options:\n\n```python\nfrom syne import soundpoint\nsoundpoint.setopt(scale='C2 major')\n```\n\nSee [examples](examples/soundpoint.py) for more.\n\n\n### soundpoints as an extension of synepoints\nIn fact, soundpoints are implemented following the standard interface of Synepoint metaclass,\nallowing one to define its own way to work on breakpoints.\n\nSo, do you have a programmable smell dispenser ? Robot masseur ? Arduino wired to your radiator ?\nOr maybe your desktop is in an acceleration simulator ?\n\nUse synepoints to make them work with syne and use them for debugging !\n\n\n\n\n\n\n## Watch your collections (non-implemented)\n\nWith syne, you can take a look at your collections\nwith colors instead of values. General rules :\n\n- same objects get the same color\n- close objects get close colors\n\n```python\nfrom syne import syne\n\nsyne([1, 2, 3, 4])\nsyne(['abcd', 'abcd', 'abcde', 'ABCD'])\n```\n\n## Listen to your collections (non-implemented)\nA mix of soundpoints and collection coloration.\n\n## Coloring of sources to detect defects (non-implemented)\nA parenthesis is missing ? A syntax error is raised ?\nInvoke syne on your source file, and get the syntax errors highlighted :\n\n    python -m syne check-source myfile.py\n\n\n\n# Requirements\n- [musthe](https://github.com/gciruelos/musthe), for music theory (see soundpoint)\n- [PyAudio](http://people.csail.mit.edu/hubert/pyaudio/), access to audio\n- [numpy]() to implement some computation operations\n\nTo install these, `make install_deps`.\n\nOther requirements:\n- [pytest](https://pytest.org) for testing\n\nFuture requirements, to investigate:\n- [midi](https://github.com/vishnubob/python-midi)\n- [music21](http://web.mit.edu/music21/), for music theory (alternative to midi and musthe ?)\n- [pyglet](https://bitbucket.org/pyglet/pyglet/wiki/Home), for colored view of collections\n\n\n# FAQ\n\n## Why *syne* ?\n*Syne* is an apocope of [synesthesia](https://en.wikipedia.org/wiki/Synesthesia),\nthe ability to use a sense to feel another.\nAnd its short, else no one would use it.\n\n## Inspiration sources\n- The J language, as described [here](https://prog21.dadgum.com/28.html).\n- the expression «a signal, it's musical»\n- [the new matplotlib colormap justification](https://www.youtube.com/watch?v=xAoljeRJ3lU)\n- [the story of the sound-based dial server debugging]()\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faluriak%2Fsyne","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faluriak%2Fsyne","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faluriak%2Fsyne/lists"}