由Gnumeric乐谱插件加载的功能
项目描述
在电子表格中创作音乐。
如何使用
安装
安装lilypond, fluidsynth, gnumeric,可能还需要其他一些软件。然后
pip2 install sheetmusic sheetmusic-installer gnumeric
Sheetmusic是Gnumeric的插件。您第一次使用它时,可能需要启用插件;转到“工具”菜单,点击“插件...”,然后确保“Sheetmusic”已勾选。
如何使用
Sheetmusic是一系列电子表格函数,用于操作音符。这些音符必须用科学记数法编写;例如,中音C写作“C4”。
某些函数返回多个输出单元格(如和弦)。要运行具有多个输出单元格的电子表格函数,请按控制+Enter而不是仅按Enter。
要播放音乐,请运行
import sheetmusic sheetmusic.init() sheetmusic.play('B2:C2') sheetmusic.play('J1:M33', 'A', 4, 4, 200) # to change tempo
函数参考
Sheetmusic在电子表格中提供了以下函数。
和弦和琶音
I7_arpeggio(base note) I7_chord(base note) II7_arpeggio(base note) II7_chord(base note) III7_arpeggio(base note) III7_chord(base note) III_arpeggio(base note) III_chord(base note) II_arpeggio(base note) II_chord(base note) IV7_arpeggio(base note) IV7_chord(base note) IV_arpeggio(base note) IV_chord(base note) I_arpeggio(base note) I_chord(base note) V7_arpeggio(base note) V7_chord(base note) VI7_arpeggio(base note) VI7_chord(base note) VII7_arpeggio(base note) VII7_chord(base note) VII_arpeggio(base note) VII_chord(base note) VI_arpeggio(base note) VI_chord(base note) V_arpeggio(base note) V_chord(base note) augmented_major_seventh_arpeggio(base note) augmented_major_seventh_chord(base note) augmented_minor_seventh_arpeggio(base note) augmented_minor_seventh_chord(base note) augmented_triad_arpeggio(base note) augmented_triad_chord(base note) diminished_seventh_arpeggio(base note) diminished_seventh_chord(base note) diminished_triad_arpeggio(base note) diminished_triad_chord(base note) dominant7_arpeggio(base note) dominant7_chord(base note) dominant_arpeggio(base note) dominant_chord(base note) dominant_flat_five_arpeggio(base note) dominant_flat_five_chord(base note) dominant_flat_ninth_arpeggio(base note) dominant_flat_ninth_chord(base note) dominant_ninth_arpeggio(base note) dominant_ninth_chord(base note) dominant_seventh_arpeggio(base note) dominant_seventh_chord(base note) dominant_sharp_ninth_arpeggio(base note) dominant_sharp_ninth_chord(base note) dominant_sixth_arpeggio(base note) dominant_sixth_chord(base note) dominant_thirteenth_arpeggio(base note) dominant_thirteenth_chord(base note) eleventh_arpeggio(base note) eleventh_chord(base note) first_inversion_arpeggio(base note) first_inversion_chord(base note) half_diminished_seventh_arpeggio(base note) half_diminished_seventh_chord(base note) hendrix_chord_arpeggio(base note) hendrix_chord_chord(base note) lydian_dominant_seventh_arpeggio(base note) lydian_dominant_seventh_chord(base note) major_ninth_arpeggio(base note) major_ninth_chord(base note) major_seventh_arpeggio(base note) major_seventh_chord(base note) major_sixth_arpeggio(base note) major_sixth_chord(base note) major_thirteenth_arpeggio(base note) major_thirteenth_chord(base note) major_triad_arpeggio(base note) major_triad_chord(base note) mediant7_arpeggio(base note) mediant7_chord(base note) mediant_arpeggio(base note) mediant_chord(base note) minor_eleventh_arpeggio(base note) minor_eleventh_chord(base note) minor_major_seventh_arpeggio(base note) minor_major_seventh_chord(base note) minor_ninth_arpeggio(base note) minor_ninth_chord(base note) minor_seventh_arpeggio(base note) minor_seventh_chord(base note) minor_seventh_flat_five_arpeggio(base note) minor_seventh_flat_five_chord(base note) minor_sixth_arpeggio(base note) minor_sixth_chord(base note) minor_thirteenth_arpeggio(base note) minor_thirteenth_chord(base note) minor_triad_arpeggio(base note) minor_triad_chord(base note) second_inversion_arpeggio(base note) second_inversion_chord(base note) seventh_arpeggio(base note) seventh_chord(base note) sixth_ninth_arpeggio(base note) sixth_ninth_chord(base note) subdominant7_arpeggio(base note) subdominant7_chord(base note) subdominant_arpeggio(base note) subdominant_chord(base note) submediant7_arpeggio(base note) submediant7_chord(base note) submediant_arpeggio(base note) submediant_chord(base note) subtonic7_arpeggio(base note) subtonic7_chord(base note) subtonic_arpeggio(base note) subtonic_chord(base note) supertonic7_arpeggio(base note) supertonic7_chord(base note) supertonic_arpeggio(base note) supertonic_chord(base note) suspended_fourth_ninth_arpeggio(base note) suspended_fourth_ninth_chord(base note) suspended_fourth_triad_arpeggio(base note) suspended_fourth_triad_chord(base note) suspended_second_triad_arpeggio(base note) suspended_second_triad_chord(base note) suspended_seventh_arpeggio(base note) suspended_seventh_chord(base note) suspended_triad_arpeggio(base note) suspended_triad_chord(base note) third_inversion_arpeggio(base note) third_inversion_chord(base note) tonic7_arpeggio(base note) tonic7_chord(base note) tonic_arpeggio(base note) tonic_chord(base note) triad_arpeggio(base note) triad_chord(base note)
音阶
aeolian_scale(base note) chromatic_scale(base note) diatonic_scale(base note) diminished_scale(base note) dorian_scale(base note) harmonic_minor_scale(base note) ionian_scale(base note) locrian_scale(base note) lydian_scale(base note) melodic_minor_scale(base note) mixolydian_scale(base note) natural_minor_scale(base note) phrygian_scale(base note) whole_note_scale(base note)
音程
unison_interval(base note, key) major_unison_interval(base note) minor_unison_interval(base note) augmented_unison_interval(base note) second_interval(base note, key) major_second_interval(base note) minor_second_interval(base note) third_interval(base note, key) major_third_interval(base note) minor_third_interval(base note) fourth_interval(base note, key) major_fourth_interval(base note) minor_fourth_interval(base note) perfect_fourth_interval(base note) fifth_interval(base note, key) major_fifth_interval(base note) minor_fifth_interval(base note) perfect_fifth_interval(base note) sixth_interval(base note, key) major_sixth_interval(base note) minor_sixth_interval(base note) seventh_interval(base note, key) major_seventh_interval(base note) minor_seventh_interval(base note) interval(major|minor, interval:[0-7], base note) octave_down(base note) octave_up(base note)
其他
from_integer(integer) -> scientific note progression(progression, base note) -> [[scientific note]] rep(range, each) -> another range to_integer(scientific note) -> integer
小节
Sheetmusic忽略边界,但建议您在普通乐谱中放置小节的地方放置水平边界。
连音和装饰音
音符在斜体区域内连音。
开发
有用的链接
http://www.hep.by/gnu/gnumeric/sect-extending-python-writing.shtml
https://help.gnome.org/users/gnumeric/stable/sect-extending-python.html.en
http://www.bruunisejs.dk/PythonHacks/rstFiles/500%20Notes%20on%20spreadsheets%20etc.html
这需要Python 2,因为mingus需要Python 2。
项目详情
关闭
sheetmusic-0.0.4.tar.gz 的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | 627a4fe063ac95ed7130345b4bf13e02da77645be2f7a78c986df07fc0c0a3d0 |
|
MD5 | 83aef1982513904a37d714da09eacb45 |
|
BLAKE2b-256 | a2588235f6f6f86e60fa163a4f398857905870178a65aa5642daf975accb4223 |