Example #1
0
def test_multipitch_midi():
    plt.figure()

    ref_t, ref_p = load_ragged_time_series("tests/data/multipitch/ref01.txt")
    est_t, est_p = load_ragged_time_series("tests/data/multipitch/est01.txt")

    # Plot pitches on a midi scale with note tickers
    mir_eval.display.multipitch(ref_t, ref_p, midi=True, alpha=0.5, label="Reference")
    mir_eval.display.multipitch(est_t, est_p, midi=True, alpha=0.5, label="Estimate")

    plt.legend()
Example #2
0
def test_multipitch_midi():
    plt.figure()

    ref_t, ref_p = load_ragged_time_series('data/multipitch/ref01.txt')
    est_t, est_p = load_ragged_time_series('data/multipitch/est01.txt')

    # Plot pitches on a midi scale with note tickers
    mir_eval.display.multipitch(ref_t, ref_p, midi=True,
                                alpha=0.5, label='Reference')
    mir_eval.display.multipitch(est_t, est_p, midi=True,
                                alpha=0.5, label='Estimate')

    plt.legend()
Example #3
0
def test_multipitch_hz_unvoiced():
    plt.figure()

    times, pitches = load_ragged_time_series('data/multipitch/est01.txt')

    # Plot pitches on a midi scale with note tickers
    mir_eval.display.multipitch(times, pitches, midi=False, unvoiced=True)
Example #4
0
def test_multipitch_hz_voiced():
    plt.figure()

    times, pitches = load_ragged_time_series('data/multipitch/est01.txt')

    mir_eval.display.multipitch(times, pitches, midi=False, unvoiced=False)