#include <musicxmlimport.h>
|
| 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 |
( |
| ) |
|
|
privatevirtual |
| 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 |
| void CAMusicXmlImport::readHeader |
( |
| ) |
|
|
private |
| void CAMusicXmlImport::readIdentification |
( |
| ) |
|
|
private |
| 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 |
| void CAMusicXmlImport::readPartList |
( |
| ) |
|
|
private |
| 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 |
| void CAMusicXmlImport::readWork |
( |
| ) |
|
|
private |
| QHash<QString, int> CAMusicXmlImport::_divisions |
|
private |
| QHash<QString, int> CAMusicXmlImport::_midiChannel |
|
private |
| QHash<QString, int> CAMusicXmlImport::_midiProgram |
|
private |
| QString CAMusicXmlImport::_musicXmlVersion |
|
private |
| QHash<QString, QHash<int, CAClef*> > CAMusicXmlImport::_partMapClef |
|
private |
| QHash<QString, QHash<int, CAKeySignature*> > CAMusicXmlImport::_partMapKeySig |
|
private |
| QHash<QString, QList<CAStaff*> > CAMusicXmlImport::_partMapStaff |
|
private |
| QHash<QString, QHash<int, CATimeSignature*> > CAMusicXmlImport::_partMapTimeSig |
|
private |
| QHash<QString, QHash<int, CAVoice*> > CAMusicXmlImport::_partMapVoice |
|
private |
| QHash<QString, QString> CAMusicXmlImport::_partName |
|
private |
The documentation for this class was generated from the following files: