music21.converter.qmConverter¶
This is an example of how converter.subConverters.SubConverter can be subclassed in order to parse and write an unsupported format in this case, the format, .qm, consists of a line of letters separated by spaces:
C E G D F
and turns each of them into a quarter note in octave 4 in 4/4.
Consult the code to see how it works. To use, call converter.registerSubconverter(converter.qmConverter.QMConverter).
QMConverter¶
-
class
music21.converter.qmConverter.
QMConverter
(**keywords)¶
QMConverter
bases
QMConverter
read/write properties
Read/write properties inherited from SubConverter
:
QMConverter
methods
-
QMConverter.
parseData
(strData, number=None)¶
-
QMConverter.
parseFile
(filePath, number=None)¶
-
QMConverter.
write
(obj, fmt, fp=None, subformats=None, **keywords)¶
Methods inherited from SubConverter
: