Skip to main content

简单的音频淡入淡出处理库

Project description


musicfader库

一个基于Pygame和Librosa的音频淡入淡出处理库。

主要功能

1. 为音频文件添加平滑的淡入效果
2. 为音频文件添加平滑的淡出效果
3. 自动获取音频文件时长
4. 支持多种音频格式
5. 支持后台线程执行,不阻塞主线程

使用方法

python
from musicfader import MusicFader

获取音频时长
duration = MusicFader.getAudioDuration('your_audio.mp3')

创建淡入淡出器
fader = MusicFader(fadeDuration=3.0, musicDuration=duration)

淡入淡出音频
fader.fadeInOut('your_audio.mp3')

安装
bash
pip install musicfader

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

musicfader-1.0.1.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

musicfader-1.0.1-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file musicfader-1.0.1.tar.gz.

File metadata

  • Download URL: musicfader-1.0.1.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.7.5

File hashes

Hashes for musicfader-1.0.1.tar.gz
Algorithm Hash digest
SHA256 dd84113777f1e9bd5aa175745983bc47b7c4a23b90c273e75b2a0a66e9c8d99f
MD5 7f7c28b6c770407778ecc03c71d88865
BLAKE2b-256 26c9b5603a1b9a8747a826640ad6efb65a64f6e2d8146863fee5d7da9ca5ffc1

See more details on using hashes here.

File details

Details for the file musicfader-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: musicfader-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 4.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.7.5

File hashes

Hashes for musicfader-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 43675d85bd53a11c089ba2366cf8aa70ff2b487fb11011bb61316ba0dcd28e69
MD5 112ddd66f78e384ae23dc62c3ff21da4
BLAKE2b-256 21dcc400d87c8d14bcdc21051bc7e408c7b8eefc674ee122e2fd8870f6a0c352

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page