{"id":13813506,"url":"https://github.com/psobot/SampleScanner","last_synced_at":"2025-05-15T00:33:27.866Z","repository":{"id":65541247,"uuid":"88067968","full_name":"psobot/SampleScanner","owner":"psobot","description":"Convert hardware MIDI instruments into software instruments from the command line.","archived":false,"fork":false,"pushed_at":"2022-10-10T15:42:14.000Z","size":321,"stargazers_count":99,"open_issues_count":11,"forks_count":17,"subscribers_count":11,"default_branch":"master","last_synced_at":"2024-08-04T04:04:13.459Z","etag":null,"topics":["audio","midi","music","python","sampler","vst"],"latest_commit_sha":null,"homepage":null,"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/psobot.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}},"created_at":"2017-04-12T15:31:36.000Z","updated_at":"2024-07-01T04:52:12.000Z","dependencies_parsed_at":"2023-01-28T09:25:11.035Z","dependency_job_id":null,"html_url":"https://github.com/psobot/SampleScanner","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/psobot%2FSampleScanner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/psobot%2FSampleScanner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/psobot%2FSampleScanner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/psobot%2FSampleScanner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/psobot","download_url":"https://codeload.github.com/psobot/SampleScanner/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225319253,"owners_count":17455735,"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":["audio","midi","music","python","sampler","vst"],"created_at":"2024-08-04T04:01:19.804Z","updated_at":"2024-11-19T08:30:41.301Z","avatar_url":"https://github.com/psobot.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# SampleScanner\n[![Build Status](https://travis-ci.org/psobot/SampleScanner.svg?branch=master)](https://travis-ci.org/psobot/SampleScanner)\n\n![SampleScanner Logo](https://cloud.githubusercontent.com/assets/213293/24964018/1dcb4092-1f6e-11e7-8b3b-47704e6c8aeb.png)\n\n\nSampleScanner is a command-line tool to turn MIDI instruments (usually hardware) into virtual (software) instruments automatically. It's similar to [Redmatica's now-discontinued _AutoSampler_](http://www.soundonsound.com/reviews/redmatica-autosampler) software (now part of Apple's [MainStage](https://441k.com/sampling-synths-with-auto-sampler-in-mainstage-3-412deb8f900e)), but open-source and cross-platform.\n\n## Features\n\n - Uses native system integration (via `rtmidi` and `pyAudio`) for compatibility with all audio and MIDI devices\n - Outputs to the open-source [sfz 2.0 sample format](http://ariaengine.com/overview/sfz-format/), playable by [Sforzando](https://www.plogue.com/products/sforzando/) (and others)\n - Optional FLAC compression (on by default) to reduce sample set file size by up to 75%\n - Flexible configuration options and extensive command-line interface\n - Experimental looping algorithm to extend perpetual samples\n - Clipping detection at sample time\n - 100% Python to enable cross-platform compatibility\n - Has been known to work in Windows, Mac OS and Linux\n\n## Installation\n\nRequires a working `python` (version 2.7), `pip`, and `ffmpeg` to be installed on the system.\n\n```\ngit clone git@github.com:psobot/SampleScanner\ncd SampleScanner\npip install -r requirements.txt\n```\n\n## How to run\n\nRun `./samplescanner -h` for a full argument listing:\n\n```contentsof\u003csamplescanner -h\u003e\nusage: samplescanner [-h] [--cc-before [CC_BEFORE [CC_BEFORE ...]]]\n                     [--cc-after [CC_AFTER [CC_AFTER ...]]]\n                     [--program-number PROGRAM_NUMBER] [--low-key LOW_KEY]\n                     [--high-key HIGH_KEY]\n                     [--velocity-levels VELOCITY_LEVELS [VELOCITY_LEVELS ...]]\n                     [--key-skip KEY_RANGE] [--max-attempts MAX_ATTEMPTS]\n                     [--limit LIMIT] [--has-portamento] [--sample-asc]\n                     [--no-flac] [--no-delete] [--loop]\n                     [--midi-port-name MIDI_PORT_NAME]\n                     [--midi-port-index MIDI_PORT_INDEX]\n                     [--midi-channel MIDI_CHANNEL]\n                     [--audio-interface-name AUDIO_INTERFACE_NAME]\n                     [--audio-interface-index AUDIO_INTERFACE_INDEX]\n                     [--sample-rate SAMPLE_RATE] [--print-progress]\n                     output_folder\n\ncreate SFZ files from external audio devices\n\noptional arguments:\n  -h, --help            show this help message and exit\n\nSampling Options:\n  --cc-before [CC_BEFORE [CC_BEFORE ...]]\n                        Send MIDI CC before the program change. Put comma\n                        between CC# and value. Example: --cc 0,127 \"64,65\"\n  --cc-after [CC_AFTER [CC_AFTER ...]]\n                        Send MIDI CC after the program change. Put comma\n                        between CC# and value. Example: --cc 0,127 \"64,65\"\n  --program-number PROGRAM_NUMBER\n                        switch to a program number before recording\n  --low-key LOW_KEY     key to start sampling from (key name, octave number)\n  --high-key HIGH_KEY   key to stop sampling at (key name, octave number)\n  --velocity-levels VELOCITY_LEVELS [VELOCITY_LEVELS ...]\n                        velocity levels (in [1, 127]) to sample\n  --key-skip KEY_RANGE  number of keys covered by one sample\n  --max-attempts MAX_ATTEMPTS\n                        maximum number of tries to resample a note\n  --limit LIMIT         length in seconds of longest sample\n  --has-portamento      play each note once before sampling to avoid\n                        portamento sweeps between notes\n  --sample-asc          sample notes from low to high (default false)\n\nOutput Options:\n  output_folder         name of output folder\n  --no-flac             don't compress output to flac samples\n  --no-delete           leave temporary .aif files in place after flac\n                        compression\n  --loop                attempt to loop sounds (should only be used with\n                        sounds with infinite sustain)\n\nMIDI/Audio IO Options:\n  --midi-port-name MIDI_PORT_NAME\n                        name of MIDI device to use\n  --midi-port-index MIDI_PORT_INDEX\n                        index of MIDI device to use\n  --midi-channel MIDI_CHANNEL\n                        MIDI channel to send messages on\n  --audio-interface-name AUDIO_INTERFACE_NAME\n                        name of audio input device to use\n  --audio-interface-index AUDIO_INTERFACE_INDEX\n                        index of audio input device to use\n  --sample-rate SAMPLE_RATE\n                        sample rate to use. audio interface must support this\n                        rate.\n\nMisc Options:\n  --print-progress      show text-based VU meters in terminal (default false,\n                        can cause audio artifacts)\n```\n\n## Contributors, Copyright and License\n\ntl;dr: SampleScanner is \u0026copy; 2015-2018 [Peter Sobot](https://petersobot.com), and released under the MIT License.\nMany contributors have helped improve SampleScanner, including:\n\n- [Nando Florestan](https://github.com/nandoflorestan)\n- [Mike Verdone](https://github.com/sixohsix)\n\n```contentsof\u003ccat LICENSE\u003e\nThe MIT License\n\nCopyright (c) 2015-2018 Peter Sobot https://petersobot.com github@petersobot.com\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpsobot%2FSampleScanner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpsobot%2FSampleScanner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpsobot%2FSampleScanner/lists"}