|
Canorus
0.7
|
#include <musicxmlimport.h>

Public Member Functions | |
| CAMusicXmlImport (QTextStream *stream=0) | |
| CAMusicXmlImport (const QString stream) | |
| virtual | ~CAMusicXmlImport () |
| const QString | readableStatus () |
Private Member Functions | |
| void | initMusicXmlImport () |
| CADocument * | importDocumentImpl () |
| void | readHeader () |
| void | readScorePartwise () |
| void | readScoreTimewise () |
| void | readWork () |
| void | readIdentification () |
| void | readDefaults () |
| void | readPartList () |
| void | readPart () |
| void | readMeasure (QString partId) |
| void | readAttributes (QString partId) |
| void | readNote (QString partId, int) |
| void | readForward (QString partId, int) |
| CAVoice * | addVoiceIfNeeded (QString partId, int staff, int voice) |
Private Attributes | |
| QString | _musicXmlVersion |
| CADocument * | _document |
| QHash< QString, QHash< int, CAVoice * > > | _partMapVoice |
| QHash< QString, QList< CAStaff * > > | _partMapStaff |
| QHash< QString, QHash< int, CAClef * > > | _partMapClef |
| QHash< QString, QHash< int, CAKeySignature * > > | _partMapKeySig |
| QHash< QString, QHash< int, CATimeSignature * > > | _partMapTimeSig |
| QHash< QString, int > | _midiChannel |
| QHash< QString, int > | _midiProgram |
| QHash< QString, QString > | _partName |
| QHash< QString, int > | _divisions |
| CAMusicXmlImport::CAMusicXmlImport | ( | QTextStream * | stream = 0 | ) |
Copyright (c) 2008, Matevž Jekovec, Canorus development team All Rights Reserved. See AUTHORS for a complete list of authors.
Licensed under the GNU GENERAL PUBLIC LICENSE. See LICENSE.GPL for details.
References initMusicXmlImport().

| CAMusicXmlImport::CAMusicXmlImport | ( | const QString | stream | ) |
| CAMusicXmlImport::~CAMusicXmlImport | ( | ) | [virtual] |
| CAVoice * CAMusicXmlImport::addVoiceIfNeeded | ( | QString | partId, |
| int | staff, | ||
| int | voice | ||
| ) | [private] |
References _partMapClef, _partMapKeySig, _partMapStaff, _partMapTimeSig, _partMapVoice, CAStaff::addVoice(), CAVoice::append(), CAVoice::staff(), CAStaff::synchronizeVoices(), and CAStaff::voiceCount().
Referenced by readForward(), and readNote().


| CADocument * CAMusicXmlImport::importDocumentImpl | ( | ) | [private, virtual] |
Opens a MusicXML source in and creates a document out of it. CAMusicXmlImport uses SAX model for reading.
Reimplemented from CAImport.
References _document, _musicXmlVersion, readHeader(), readScorePartwise(), readScoreTimewise(), CAFile::setStatus(), and CAFile::stream().

| void CAMusicXmlImport::initMusicXmlImport | ( | ) | [private] |
| const QString CAMusicXmlImport::readableStatus | ( | ) | [virtual] |
| void CAMusicXmlImport::readAttributes | ( | QString | partId | ) | [private] |
References _divisions, _document, _partMapClef, _partMapKeySig, _partMapStaff, _partMapTimeSig, CASheet::addContext(), CAClef::Bass, CADiatonicKey::genderFromString(), CADiatonicKey::Major, CADocument::sheetAt(), CASheet::staffCount(), and CAClef::Treble.
Referenced by readMeasure().


| void CAMusicXmlImport::readDefaults | ( | ) | [private] |
| void CAMusicXmlImport::readForward | ( | QString | partId, |
| int | divisions | ||
| ) | [private] |
References addVoiceIfNeeded(), CAVoice::append(), CARest::composeRests(), and CAVoice::lastTimeEnd().
Referenced by readMeasure().


| void CAMusicXmlImport::readHeader | ( | ) | [private] |
| void CAMusicXmlImport::readIdentification | ( | ) | [private] |
References _document, CADocument::setComposer(), CADocument::setCopyright(), and CADocument::setPoet().
Referenced by readScorePartwise().


| void CAMusicXmlImport::readMeasure | ( | QString | partId | ) | [private] |
References _divisions, _partMapStaff, CAVoice::append(), CAVoice::lastTimeEnd(), readAttributes(), readForward(), readNote(), CABarline::Single, CAStaff::synchronizeVoices(), CAStaff::voiceAt(), and CAStaff::voiceCount().
Referenced by readPart().


| void CAMusicXmlImport::readNote | ( | QString | partId, |
| int | divisions | ||
| ) | [private] |
References _document, CAVoice::addLyricsContext(), addVoiceIfNeeded(), CAVoice::append(), CADiatonicPitch::diatonicPitchFromString(), CASheet::insertContextAfter(), CAVoice::lyricsContextList(), CAVoice::name(), CARest::Normal, CADiatonicPitch::noteName(), CADiatonicPitch::setAccs(), CADiatonicPitch::setNoteName(), CADocument::sheetAt(), CAVoice::staff(), CANote::StemDown, CANote::StemPreferred, CANote::StemUp, CAMusElement::timeLength(), CAPlayableLength::timeLengthToPlayableLengthList(), and CAMusElement::timeStart().
Referenced by readMeasure().


| void CAMusicXmlImport::readPart | ( | ) | [private] |
References _partMapClef, _partMapKeySig, _partMapStaff, _partMapTimeSig, and readMeasure().
Referenced by readScorePartwise().


| void CAMusicXmlImport::readPartList | ( | ) | [private] |
References _document, _midiChannel, _midiProgram, _partName, and CADocument::addSheet().
Referenced by readScorePartwise().


| void CAMusicXmlImport::readScorePartwise | ( | ) | [private] |
References _document, _midiChannel, _midiProgram, _partMapStaff, readDefaults(), readIdentification(), readPart(), readPartList(), readWork(), CAVoice::setMidiChannel(), CAVoice::setMidiProgram(), CAStaff::voiceAt(), and CAStaff::voiceCount().
Referenced by importDocumentImpl().


| void CAMusicXmlImport::readScoreTimewise | ( | ) | [private] |
References _document.
Referenced by importDocumentImpl().

| void CAMusicXmlImport::readWork | ( | ) | [private] |
References _document, and CADocument::setTitle().
Referenced by readScorePartwise().


QHash<QString, int> CAMusicXmlImport::_divisions [private] |
Referenced by readAttributes(), and readMeasure().
CADocument* CAMusicXmlImport::_document [private] |
QHash<QString, int> CAMusicXmlImport::_midiChannel [private] |
Referenced by readPartList(), and readScorePartwise().
QHash<QString, int> CAMusicXmlImport::_midiProgram [private] |
Referenced by readPartList(), and readScorePartwise().
QString CAMusicXmlImport::_musicXmlVersion [private] |
Referenced by importDocumentImpl().
QHash<QString, QHash<int, CAClef*> > CAMusicXmlImport::_partMapClef [private] |
Referenced by addVoiceIfNeeded(), readAttributes(), and readPart().
QHash<QString, QHash<int, CAKeySignature*> > CAMusicXmlImport::_partMapKeySig [private] |
Referenced by addVoiceIfNeeded(), readAttributes(), and readPart().
QHash<QString, QList<CAStaff*> > CAMusicXmlImport::_partMapStaff [private] |
Referenced by addVoiceIfNeeded(), readAttributes(), readMeasure(), readPart(), and readScorePartwise().
QHash<QString, QHash<int, CATimeSignature*> > CAMusicXmlImport::_partMapTimeSig [private] |
Referenced by addVoiceIfNeeded(), readAttributes(), and readPart().
QHash<QString, QHash<int, CAVoice*> > CAMusicXmlImport::_partMapVoice [private] |
Referenced by addVoiceIfNeeded().
QHash<QString, QString> CAMusicXmlImport::_partName [private] |
Referenced by readPartList().
1.8.0