salu133445 / muspy

A toolkit for symbolic music generation
https://salu133445.github.io/muspy/
MIT License
427 stars 49 forks source link

Example for extracting Chord object #6

Closed ruathudo closed 2 years ago

ruathudo commented 3 years ago

Hi, I see the Chord class in the documentation but not sure how to use them with provided dataset. For example, in wikifonia dataset, it is marked with chord support. Can you give a simple example how to extract the chords information for that dataset? Thanks.

salu133445 commented 3 years ago

Hi, parsing chords from a MusicXML file has not been implemented yet.

salu133445 commented 3 years ago

Somewhat relevant - maybe we should make Chord.pitches and Chord.pitches_str sets?

ruathudo commented 3 years ago

This sounds great. Also when parsing the notes, can we keep the silent notes available?

salu133445 commented 3 years ago

This sounds great. Also when parsing the notes, can we keep the silent notes available?

You mean notes with zero velocity? If so, that would be tricky - note-ons with zero velocity are usually considered equivalent to note-offs.

salu133445 commented 2 years ago

I am closing this issue as there have been no updates for months.