Name | easymix JSON |
Version |
0.0.9
JSON |
| download |
home_page | |
Summary | Simple live and track python audio mixer |
upload_time | 2023-10-04 14:54:35 |
maintainer | |
docs_url | None |
author | flokapi |
requires_python | >=3.7,<4.0 |
license | LGPL-3.0-only |
keywords |
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# Usage
Live Audio Mixer
```python
import easymix as mixer
import time
def liveMix():
mixer.play('01.mp3')
for i in range(5):
mixer.play('02.mp3')
time.sleep(2)
mixer.stop()
```
Compose Audio track
```python
import easymix as mixer
def composeTrack():
track = mixer.Track()
track.addSound('01.mp3', 1.0)
for t in range(5):
track.addSound('02.mp3', t)
track.save('track.mp3')
```
You can also define the sounds as `pydub` audio segments. It's convenient in case you need to apply effects on the sounds before playing, such as volume adjustment.
```python
import pydub
sound01 = pydub.AudioSegment.from_file('01.mp3')
sound01 -= 5 # reduce 5dB
...
mixer.play(sound01)
...
track.addSound(sound01, 1.0)
```
# Setup
Install pip package
```
pip3 install easymix
```
# Known issues
This is only a prototype. Beware of the following issues which require proper investigation:
1. The `pyaudio` package installation fails with Python 3.11.4, but works with Python 3.9.2.
2. The sounds might be played at higher speed than expected (bit rate issue)
Raw data
{
"_id": null,
"home_page": "",
"name": "easymix",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.7,<4.0",
"maintainer_email": "",
"keywords": "",
"author": "flokapi",
"author_email": "flokapi@pm.me",
"download_url": "https://files.pythonhosted.org/packages/36/3e/763a8631dac266a3c921f441812e16885103436f9a3a5b97d05e2d780051/easymix-0.0.9.tar.gz",
"platform": null,
"description": "# Usage\n\nLive Audio Mixer\n\n```python\nimport easymix as mixer\nimport time\n\ndef liveMix():\n mixer.play('01.mp3')\n for i in range(5):\n mixer.play('02.mp3')\n time.sleep(2)\n\n mixer.stop()\n```\n\n\n\nCompose Audio track\n\n```python\nimport easymix as mixer\n\ndef composeTrack():\n track = mixer.Track()\n track.addSound('01.mp3', 1.0)\n for t in range(5):\n track.addSound('02.mp3', t)\n\n track.save('track.mp3')\n```\n\n\n\nYou can also define the sounds as `pydub` audio segments. It's convenient in case you need to apply effects on the sounds before playing, such as volume adjustment.\n\n```python\nimport pydub\n\nsound01 = pydub.AudioSegment.from_file('01.mp3')\n\nsound01 -= 5\t# reduce 5dB\n\n...\nmixer.play(sound01)\n\n...\ntrack.addSound(sound01, 1.0)\n```\n\n\n\n\n\n# Setup\n\nInstall pip package\n\n```\npip3 install easymix\n```\n\n\n\n\n\n# Known issues\n\nThis is only a prototype. Beware of the following issues which require proper investigation:\n\n1. The `pyaudio` package installation fails with Python 3.11.4, but works with Python 3.9.2.\n2. The sounds might be played at higher speed than expected (bit rate issue)\n\n",
"bugtrack_url": null,
"license": "LGPL-3.0-only",
"summary": "Simple live and track python audio mixer",
"version": "0.0.9",
"project_urls": {
"documentation": "https://github.com/flokapi/easymix",
"homepage": "https://github.com/flokapi/easymix",
"repository": "https://github.com/flokapi/easymix"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "a3e73af4e492a42d325ea2f2674fb727675e059df4bcf63aba9cf68bf7327503",
"md5": "2f9d9c5f787841fb95b25871f717cf2c",
"sha256": "efa3a515effbe14c6a87cedf5d0897446253a00878f77e9ef86fe8d607da5059"
},
"downloads": -1,
"filename": "easymix-0.0.9-py3-none-any.whl",
"has_sig": false,
"md5_digest": "2f9d9c5f787841fb95b25871f717cf2c",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.7,<4.0",
"size": 12039,
"upload_time": "2023-10-04T14:54:34",
"upload_time_iso_8601": "2023-10-04T14:54:34.270383Z",
"url": "https://files.pythonhosted.org/packages/a3/e7/3af4e492a42d325ea2f2674fb727675e059df4bcf63aba9cf68bf7327503/easymix-0.0.9-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "363e763a8631dac266a3c921f441812e16885103436f9a3a5b97d05e2d780051",
"md5": "1b7b6551c7a3cae10b80724cd60716e7",
"sha256": "eb54eb879f1cc497af92a076033a59e0d20529347e8bb673ce6668a591e49a3e"
},
"downloads": -1,
"filename": "easymix-0.0.9.tar.gz",
"has_sig": false,
"md5_digest": "1b7b6551c7a3cae10b80724cd60716e7",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.7,<4.0",
"size": 11462,
"upload_time": "2023-10-04T14:54:35",
"upload_time_iso_8601": "2023-10-04T14:54:35.570020Z",
"url": "https://files.pythonhosted.org/packages/36/3e/763a8631dac266a3c921f441812e16885103436f9a3a5b97d05e2d780051/easymix-0.0.9.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-10-04 14:54:35",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "flokapi",
"github_project": "easymix",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "easymix"
}