{"id":15908909,"url":"https://github.com/dnouri/midi2sc","last_synced_at":"2025-04-03T00:42:44.870Z","repository":{"id":3320750,"uuid":"4363769","full_name":"dnouri/midi2sc","owner":"dnouri","description":"Control SuperCollider Synths with MIDI","archived":false,"fork":false,"pushed_at":"2012-05-17T22:50:09.000Z","size":104,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-08T15:13:39.438Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dnouri.png","metadata":{"files":{"readme":"README.rst","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":"2012-05-17T22:47:39.000Z","updated_at":"2016-10-18T05:28:09.000Z","dependencies_parsed_at":"2022-08-28T01:02:28.890Z","dependency_job_id":null,"html_url":"https://github.com/dnouri/midi2sc","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dnouri%2Fmidi2sc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dnouri%2Fmidi2sc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dnouri%2Fmidi2sc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dnouri%2Fmidi2sc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dnouri","download_url":"https://codeload.github.com/dnouri/midi2sc/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246916741,"owners_count":20854511,"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":[],"created_at":"2024-10-06T14:41:02.832Z","updated_at":"2025-04-03T00:42:44.846Z","avatar_url":"https://github.com/dnouri.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"=======\nmidi2sc\n=======\n\nInstallation\n============\n\nYou can install ``midi2sc`` with ``easy_install``::\n\n  $ easy_install midi2sc\n\nHowever, you also need to install pkaudio_ and its dependencies.\n\n.. _pkaudio: http://trac2.assembla.com/pkaudio\n\nYou can use subversion to check out a known good version of pkaudio\nfrom SVN like so::\n\n  svn co http://subversion.assembla.com/svn/pkaudio/ -r13\n\nThen, run ``python setup.py install`` inside the pkaudio directory to\ninstall pkaudio.\n\nUsage\n=====\n\n``midi2sc`` allows you to assign MIDI controllers to SuperCollider_\n``SynthDefs``.\n\n.. _SuperCollider: http://supercollider.sourceforge.net\n\nConfiguration\n-------------\n\nAn example configuration::\n\n  [SOSkick]\n  midi_channel = 01\n  001 = amp_mul=            AbsoluteControl(min=0.0, max=1.27, start_vel=100.0)\n  106 = mod_freq=           IDC(min=2.0, max=20.0, steps=50, value=2.0)\n  107 = mod_index=          IDC(min=2.0, max=20.0, steps=50, value=2.0)\n  108 = beater_noise_level= IDC(min=2.0, max=20.0, steps=50, value=18.0)\n  109 = decay=              IDC(min=0.05, max=1.0, steps=70, value=0.3)\n  noteon_args = out=18\n\nThis configuration will create and assign 7 controls: one of type\n``AbsoluteControl``, four of type ``IDC`` (IncDecControl).  The two\ncontrols implicitly created are a ``NoteOnControl`` and a\n``NoteOffControl``.\n\nThe ``001`` midi controller is usually the modulation wheel.  Here\nit's bound to the ``amp_mul`` argument of an ``SOSkick`` SynthDef.\n``min`` is the value sent to the SuperCollider Synth when the wheel is\nat its lowest position, ``max`` the value at its highest position.\n\nThe ``106`` midi controller is bound to an endless encoder that sends\nrelative values between ``01 to 64`` for increment and ``127 to 065``\nfor decrement.  There's 50 ``steps`` between the ``min`` and ``max``\nvalue.  And the value at which we start is ``2.0``.\n\nSuperCollider\n-------------\n\nThis is how a SynthDef could look like that uses the configuration\nfrom before::\n\n  SynthDef(\"SOSkick\", {\n\n    arg out = 0, freq = 50, mod_freq = 6.5, mod_index = 19.5,\n    decay = 0.1, amp = 0.8, beater_noise_level = 0.001, amp_mul = 1.0;\n    \n    var x;\n    // ...\n    Out.ar(out, x);\n  });\n\nMake sure you have your SuperCollider server up and SynthDefs loaded\nbefore you start ``midi2sc``.\n\nStarting midi2sc\n----------------\n\nOn the command-line, ``midi2sc`` is run like this::\n\n  $ midi2sc\n\nThis assumes that you have a ``midi2sc.ini`` configuration file in the\ncurrent working directory.  You can also provide this filename as an\noption on the command-line.  Refer to the built-in help for more\noptions::\n\n  $ midi2sc --help\n\n``midi2sc`` will ask you for a MIDI port to bind to, and then it'll\nstart a GUI that shows all sliders and finally drop you into an\ninteractive shell with access to variables like dictionary of control\n``handlers`` and the ``save_presets`` and ``load_presets`` functions.\nTo save presets (values from all controllers) from a file on the\nPython shell and then load them again later, you write::\n\n  \u003e\u003e\u003e save_presets('presets1.pickle', midi_in)\n  \u003e\u003e\u003e # ... time passes\n  \u003e\u003e\u003e load_presets('presets0.pickle', midi_in)\n\nYou can also load a new ``midi2sc.ini`` configuration::\n\n  \u003e\u003e\u003e handlers.update(configure.read('midi2sc2.ini'))\n\nScreenshot\n----------\n\n.. image:: http://danielnouri.org/media/midi2sc-01.png\n   :alt: midi2sc's GUI together with Seq24\n\nDevelopment Status\n==================\n\n``midi2sc`` is somewhat mature, and I use it.  At the same time it's a\nbig hack and probably not thread-safe.\n\nChange Log\n----------\n\n0.1 - 2009-06-30\n````````````````\n\n  - First release.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdnouri%2Fmidi2sc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdnouri%2Fmidi2sc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdnouri%2Fmidi2sc/lists"}