Esempio n. 1
0
def pitchQuarterLengthUsageWeightedScatter(show=True):

    #from music21 import converter, graph
    from music21.musicxml import testFiles as xml
    from music21.humdrum import testFiles as kern

    mozartStream = converter.parse(
        xml.mozartTrioK581Excerpt)  # @UndefinedVariable
    notes = mozartStream.flat.stripTies()
    g = graph.PlotScatterWeightedPitchSpaceQuarterLength(
        notes, title='Mozart Trio K. 581 Excerpt')
    g.process()

    g = graph.PlotScatterWeightedPitchClassQuarterLength(
        notes, title='Mozart Trio K. 581 Excerpt')
    g.process()

    chopinStream = converter.parse(kern.mazurka6)
    notes = chopinStream.flat.stripTies()
    g = graph.PlotScatterWeightedPitchSpaceQuarterLength(
        notes, title='Chopin Mazurka 6 Excerpt')
    g.process()

    g = graph.PlotScatterWeightedPitchClassQuarterLength(
        notes, title='Chopin Mazurka 6 Excerpt')
    g.process()
Esempio n. 2
0
def messiaen(show=True):
    #messiaen = #converter.parse('d:/docs/research/music21/ismir-2010/messiaen_valeurs_part2.xml')
    #messiaen = converter.parse('/Volumes/xdisc/_sync/_x/libMusicXML/messiaen/messiaen_valeurs_part2.xml')
    mall = converter.parse('/Users/cuthbert/desktop/messiaen_valeurs_2012.xml')
    messiaen = mall[1]
    #messiaen.show()
    notes = messiaen.flat.stripTies()
    g = graph.PlotScatterWeightedPitchSpaceQuarterLength(
        notes, title='Messiaen, Mode de Valeurs', xLog=False)

    if (show is True):
        g.process()