首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > Python > 高质量的图形库的Python写的乐谱

高质量的图形库的Python写的乐谱

  • 资源大小:146.92 kB
  • 上传时间:2021-06-29
  • 下载次数:0次
  • 浏览次数:1次
  • 资源积分:1积分
  • 标      签: python 图形 高质量 乐谱

资 源 简 介

python-realbook library python-realbook is an high quality music score drawing library for creating Real Book style sheet music. It uses Cairo as drawing backend. Features High quality score drawing Realbook-style chord writing Support: node, chords, symbols irealbook:// format parser (http://irealbook.net/) To do: * Code cleanup * Add documentation and examples * irealbook parser debugging * Writing notes support Examples A simple score ``` import cairo from realbook import MusicScore Create a new MusicScore score = MusicScore() score.title = "Title" score.author = "Author" score.tempo = "Swing" s = score.add_staff() m = s.addmeasure(section="A", stopbarline="final") m.add_chord(0, "C") # print to pdf w, h = (8.27100, 11.69100) surface = cairo.PDFSurface("score.pdf", w, h) cr = cairo.Context(surface) score.draw(cr, w,

文 件 列 表

python-realbook_0.1-r1
realbook
ttf
parser

相 关 资 源

您 可 能 感 兴 趣 的

同 类 别 推 荐

VIP VIP
0.215246s