#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 |
| |
| int | _tempoBpm |
| |
◆ CAMusicXmlImport() [1/2]
| 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() [2/2]
| CAMusicXmlImport::CAMusicXmlImport |
( |
const QString |
stream | ) |
|
◆ ~CAMusicXmlImport()
| CAMusicXmlImport::~CAMusicXmlImport |
( |
| ) |
|
|
virtual |
◆ addStavesIfNeeded()
| void CAMusicXmlImport::addStavesIfNeeded |
( |
QString |
partId, |
|
|
int |
staves |
|
) |
| |
|
private |
◆ addVoiceIfNeeded()
| CAVoice * CAMusicXmlImport::addVoiceIfNeeded |
( |
QString |
partId, |
|
|
int |
staff, |
|
|
int |
voice |
|
) |
| |
|
private |
Assures that the given partId and staff contains at least voice number of voices. Adds new voices, if needed and adds any clefs, key signatures or time signatures in the buffer to the new voice.
References _partMapClef, _partMapKeySig, _partMapStaff, _partMapTimeSig, _partMapVoice, CAStaff::addVoice(), CAVoice::append(), CAVoice::staff(), CAStaff::synchronizeVoices(), and CAStaff::voiceList().
Referenced by readForward(), and readNote().
◆ importDocumentImpl()
| CADocument * CAMusicXmlImport::importDocumentImpl |
( |
| ) |
|
|
protectedvirtual |
◆ initMusicXmlImport()
| void CAMusicXmlImport::initMusicXmlImport |
( |
| ) |
|
|
private |
◆ readableStatus()
| const QString CAMusicXmlImport::readableStatus |
( |
| ) |
|
|
virtual |
◆ readAttributes()
| void CAMusicXmlImport::readAttributes |
( |
QString |
partId | ) |
|
|
private |
◆ readDefaults()
| void CAMusicXmlImport::readDefaults |
( |
| ) |
|
|
private |
◆ readForward()
| void CAMusicXmlImport::readForward |
( |
QString |
partId, |
|
|
int |
divisions |
|
) |
| |
|
private |
◆ readHeader()
| void CAMusicXmlImport::readHeader |
( |
| ) |
|
|
private |
◆ readIdentification()
| void CAMusicXmlImport::readIdentification |
( |
| ) |
|
|
private |
◆ readMeasure()
| void CAMusicXmlImport::readMeasure |
( |
QString |
partId | ) |
|
|
private |
◆ readNote()
| void CAMusicXmlImport::readNote |
( |
QString |
partId, |
|
|
int |
divisions |
|
) |
| |
|
private |
References _document, _tempoBpm, CAVoice::addLyricsContext(), CAMusElement::addMark(), addVoiceIfNeeded(), CAVoice::append(), CANote::diatonicPitch(), CADiatonicPitch::diatonicPitchFromString(), CANote::getChord(), CAVoice::lyricsContextList(), CAPlayableLength::musicLength(), CAVoice::name(), CARest::Normal, CADiatonicPitch::noteName(), CAVoice::previousNote(), CAPlayableLength::Quarter, CADiatonicPitch::setAccs(), CADiatonicPitch::setNoteName(), CANote::setTieEnd(), CANote::setTieStart(), CADocument::sheetList(), CASlur::SlurPreferred, CAVoice::staff(), CASlur::TieType, CAMusElement::timeLength(), CAPlayableLength::timeLengthToPlayableLengthList(), CAMusElement::timeStart(), and CAPlayableLength::Undefined.
Referenced by readMeasure().
◆ readPart()
| void CAMusicXmlImport::readPart |
( |
| ) |
|
|
private |
◆ readPartList()
| void CAMusicXmlImport::readPartList |
( |
| ) |
|
|
private |
◆ readScorePartwise()
| void CAMusicXmlImport::readScorePartwise |
( |
| ) |
|
|
private |
References _document, _midiChannel, _midiProgram, _partMapStaff, readDefaults(), readIdentification(), readPart(), readPartList(), readWork(), CADocument::setTitle(), and CAStaff::voiceList().
Referenced by importDocumentImpl().
◆ readScoreTimewise()
| void CAMusicXmlImport::readScoreTimewise |
( |
| ) |
|
|
private |
◆ readSound()
| void CAMusicXmlImport::readSound |
( |
QString |
partId | ) |
|
|
private |
◆ readWork()
| void CAMusicXmlImport::readWork |
( |
| ) |
|
|
private |
◆ _divisions
| QHash<QString, int> CAMusicXmlImport::_divisions |
|
private |
◆ _document
◆ _midiChannel
| QHash<QString, int> CAMusicXmlImport::_midiChannel |
|
private |
◆ _midiProgram
| QHash<QString, int> CAMusicXmlImport::_midiProgram |
|
private |
◆ _musicXmlVersion
| QString CAMusicXmlImport::_musicXmlVersion |
|
private |
◆ _partMapClef
| QHash<QString, QHash<int, CAClef*> > CAMusicXmlImport::_partMapClef |
|
private |
◆ _partMapKeySig
| QHash<QString, QHash<int, CAKeySignature*> > CAMusicXmlImport::_partMapKeySig |
|
private |
◆ _partMapStaff
| QHash<QString, QList<CAStaff*> > CAMusicXmlImport::_partMapStaff |
|
private |
◆ _partMapTimeSig
| QHash<QString, QHash<int, CATimeSignature*> > CAMusicXmlImport::_partMapTimeSig |
|
private |
◆ _partMapVoice
| QHash<QString, QHash<int, CAVoice*> > CAMusicXmlImport::_partMapVoice |
|
private |
◆ _partName
| QHash<QString, QString> CAMusicXmlImport::_partName |
|
private |
◆ _tempoBpm
| int CAMusicXmlImport::_tempoBpm |
|
private |
The documentation for this class was generated from the following files: