Skip to main content

A program that using re module to analyze music score (simplified score).使用re模块解析曲谱(简谱)的程序。

Project description

music_score - 使用re模块解析曲谱(简谱),winsound模块播放声音的程序。

包含的函数 Functions:

music():

使用re模块解析曲谱的生成器
notation:一段简谱
duration:一个音符播放的时间

示例代码:

import music_score,winsound
# 曲谱
my_music="123 3 3 345 5 5  54321"
for freq,duration in music_score.music(my_music,250):
    winsound.Beep(freq,duration)

github上的源程序: https://github.com/qfcy/Python/blob/main/music.py

作者 Author: 七分诚意 qq:3076711200

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

music-score-1.1.3.tar.gz (2.7 kB view details)

Uploaded Source

File details

Details for the file music-score-1.1.3.tar.gz.

File metadata

  • Download URL: music-score-1.1.3.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.7.8

File hashes

Hashes for music-score-1.1.3.tar.gz
Algorithm Hash digest
SHA256 bd85188d3c5932933e6ef77eb6461ae00cde3e0ce27cda0f49a10ee99db4d7ae
MD5 6e591a8bc9abebdfd2b05bf03b32e12a
BLAKE2b-256 27001bfa06574076a37ce0aa44f0078e8c25126dc8753cb8ac325b52e536f75b

See more details on using hashes here.

Supported by

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