Exemple #1
0
def test_parse_tandem_label():
    assert humdrum.parse_tandem("*>aria").data == "aria"
Exemple #2
0
def test_parse_tandem_key():
    assert humdrum.parse_tandem("*A-:").data == "Ab"
Exemple #3
0
def test_parse_tandem_transposing_instrument():
    assert humdrum.parse_tandem("*ITrd1c2").data == "d1c2"
Exemple #4
0
def test_parse_tandem_repetition():
    assert humdrum.parse_tandem("*>[aria1,aria2]").data == ["aria1", "aria2"]
Exemple #5
0
def test_parse_tandem_meter():
    assert humdrum.parse_tandem("*M6/8").data == "6/8"
Exemple #6
0
def test_parse_tandem_timebase():
    assert humdrum.parse_tandem("*tb32").data == 32.0
Exemple #7
0
def test_parse_tandem_key_sig_bartok():
    assert humdrum.parse_tandem("*k[B-F#]").data == ["bb", "f#"]
Exemple #8
0
def test_parse_tandem_tempo():
    assert humdrum.parse_tandem("*MM88").data == 88
Exemple #9
0
def test_parse_tandem_key_sig_sharp():
    assert humdrum.parse_tandem("*k[f#c#]").data == 2
Exemple #10
0
def test_parse_tandem_key_sig_flat():
    assert humdrum.parse_tandem("*k[B-E-]").data == -2
Exemple #11
0
def test_parse_tandem_instr_name_default():
    assert humdrum.parse_tandem("*Isoprn").data == "soprn"
Exemple #12
0
def test_parse_tandem_instr_name_user():
    assert humdrum.parse_tandem("*I:violin 1").data == "violin 1"
Exemple #13
0
def test_parse_tandem_instr_group():
    assert humdrum.parse_tandem("*IGsolo").data == "solo"
Exemple #14
0
def test_parse_tandem_instr_class():
    assert humdrum.parse_tandem("*ICvox").data == "vox"
Exemple #15
0
def test_parse_tandem_clef():
    assert humdrum.parse_tandem("*clefG").data == "treble"