pymusicbox


Namepymusicbox JSON
Version 0.0.3 PyPI version JSON
download
home_pageNone
SummaryToolkit with music synthesis and analysis tools for python.
upload_time2024-04-19 04:40:06
maintainerMaanas Arora
docs_urlNone
authorMaanas Arora
requires_python>=3.8
licenseMIT License Copyright (c) [year] [fullname] Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
keywords music
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # pymusicbox

A library with toolkits for music synthesis and analysis. This is a work in progress.

## Current Features

- Symbolic language to represent notes and tracks
- Create instruments with sine oscilators and harmonics

## Installation

```pip install pymusicbox```

## Example Usage

```python
from pymusicbox.synth.instrument.oscillator import HarmonicOscillator, HarmonicsConfiguration
from pymusicbox.symbolic.symbols import Note, NoteEvent, Track

track = Track(events=[
  NoteEvent(time=0, note=Note(pitch='C', octave=3, length=1, velocity=100)),
  NoteEvent(time=1, note=Note(pitch='D', octave=3, length=1, velocity=80)),
  NoteEvent(time=2, note=Note(pitch='E', octave=3, length=1, velocity=90)),
  NoteEvent(time=2, note=Note(pitch='A', octave=3, length=1, velocity=100)),
  NoteEvent(time=3, note=Note(pitch='A', octave=3, length=1.8, velocity=110)),
  NoteEvent(time=3, note=Note(pitch='D', octave=2, length=1.8, velocity=110)),
])

harmonics = HarmonicsConfiguration(attack=0.1, decay=0.2, release=0.2, sustain_factor=0.6)
oscillator = HarmonicOscillator(harmonics=harmonics)
audio = oscillator.render_track(track)
audio.write('output.wav')
```

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "pymusicbox",
    "maintainer": "Maanas Arora",
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": null,
    "keywords": "music",
    "author": "Maanas Arora",
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/7d/35/f3545e3260e022332090ab2722fe20a54ae2fdfdebb9ce6ff4fbb003f34c/pymusicbox-0.0.3.tar.gz",
    "platform": null,
    "description": "# pymusicbox\n\nA library with toolkits for music synthesis and analysis. This is a work in progress.\n\n## Current Features\n\n- Symbolic language to represent notes and tracks\n- Create instruments with sine oscilators and harmonics\n\n## Installation\n\n```pip install pymusicbox```\n\n## Example Usage\n\n```python\nfrom pymusicbox.synth.instrument.oscillator import HarmonicOscillator, HarmonicsConfiguration\nfrom pymusicbox.symbolic.symbols import Note, NoteEvent, Track\n\ntrack = Track(events=[\n  NoteEvent(time=0, note=Note(pitch='C', octave=3, length=1, velocity=100)),\n  NoteEvent(time=1, note=Note(pitch='D', octave=3, length=1, velocity=80)),\n  NoteEvent(time=2, note=Note(pitch='E', octave=3, length=1, velocity=90)),\n  NoteEvent(time=2, note=Note(pitch='A', octave=3, length=1, velocity=100)),\n  NoteEvent(time=3, note=Note(pitch='A', octave=3, length=1.8, velocity=110)),\n  NoteEvent(time=3, note=Note(pitch='D', octave=2, length=1.8, velocity=110)),\n])\n\nharmonics = HarmonicsConfiguration(attack=0.1, decay=0.2, release=0.2, sustain_factor=0.6)\noscillator = HarmonicOscillator(harmonics=harmonics)\naudio = oscillator.render_track(track)\naudio.write('output.wav')\n```\n",
    "bugtrack_url": null,
    "license": "MIT License  Copyright (c) [year] [fullname]  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:  The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.  THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.",
    "summary": "Toolkit with music synthesis and analysis tools for python.",
    "version": "0.0.3",
    "project_urls": {
        "Repository": "https://github.com/MaanasArora/pymusicbox"
    },
    "split_keywords": [
        "music"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "fc90dad14a90833ba12c3a2a84478fdf336bdd627105d5194e6323a723cf8827",
                "md5": "2cb9ffe8b30333b61c3853995a7b5e90",
                "sha256": "26470ad25962179881cf9176315225cdb45f62d53b5967da89cb1845983134fd"
            },
            "downloads": -1,
            "filename": "pymusicbox-0.0.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "2cb9ffe8b30333b61c3853995a7b5e90",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 6715,
            "upload_time": "2024-04-19T04:40:05",
            "upload_time_iso_8601": "2024-04-19T04:40:05.741913Z",
            "url": "https://files.pythonhosted.org/packages/fc/90/dad14a90833ba12c3a2a84478fdf336bdd627105d5194e6323a723cf8827/pymusicbox-0.0.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "7d35f3545e3260e022332090ab2722fe20a54ae2fdfdebb9ce6ff4fbb003f34c",
                "md5": "1409f356443a3c19810e2d3d0851495a",
                "sha256": "576485dedce5cb49b04f8618c4080510216437ec30a56d4c6a793885e9c531fa"
            },
            "downloads": -1,
            "filename": "pymusicbox-0.0.3.tar.gz",
            "has_sig": false,
            "md5_digest": "1409f356443a3c19810e2d3d0851495a",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 5781,
            "upload_time": "2024-04-19T04:40:06",
            "upload_time_iso_8601": "2024-04-19T04:40:06.811946Z",
            "url": "https://files.pythonhosted.org/packages/7d/35/f3545e3260e022332090ab2722fe20a54ae2fdfdebb9ce6ff4fbb003f34c/pymusicbox-0.0.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-04-19 04:40:06",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "MaanasArora",
    "github_project": "pymusicbox",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "pymusicbox"
}
        
Elapsed time: 0.40863s