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 hashes)

Uploaded Source

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