MuseScore  3.4
Music composition and notation
Classes | Namespaces | Functions | Variables
importmidi_lyrics.cpp File Reference
#include "importmidi_lyrics.h"
#include "importmidi_inner.h"
#include "importmidi_fraction.h"
#include "importmidi_chord.h"
#include "importmidi_operations.h"
#include "libmscore/box.h"
#include "libmscore/element.h"
#include "libmscore/measurebase.h"
#include "libmscore/score.h"
#include "libmscore/staff.h"
#include "libmscore/text.h"
#include "midi/midifile.h"
#include "mscore/preferences.h"
#include <set>
Include dependency graph for importmidi_lyrics.cpp:

Classes

struct  Ms::MidiLyrics::BestTrack
 

Namespaces

 Ms
 
 
 Ms::MidiLyrics
 

Functions

bool Ms::MidiLyrics::isMetaText (const std::string &text)
 
bool Ms::MidiLyrics::isLyricText (const std::string &text)
 
bool Ms::MidiLyrics::isLyricEvent (const MidiEvent &e)
 
std::multimap< ReducedFraction, std::string > Ms::MidiLyrics::extractLyricsFromTrack (const MidiTrack &track, int division, bool isDivisionInTps)
 
BestTrack Ms::MidiLyrics::findBestTrack (const QList< MTrack > &tracks, const std::multimap< ReducedFraction, std::string > &lyricTrack, const std::set< int > &usedTracks)
 
bool Ms::MidiLyrics::isTitlePrefix (const QString &text)
 
void Ms::MidiLyrics::addTitleToScore (Score *score, const QString &string, int textCounter)
 
QString Ms::MidiLyrics::removeSlashes (const QString &text)
 
std::string Ms::MidiLyrics::removeSlashes (const std::string &text)
 
void Ms::MidiLyrics::addTitleIfAny (const std::multimap< ReducedFraction, std::string > &lyricTrack, Score *score)
 
void Ms::MidiLyrics::addLyricsToScore (const std::multimap< ReducedFraction, std::string > &lyricTrack, const std::vector< std::pair< ReducedFraction, ReducedFraction >> &matchedLyricTimes, const Staff *staffAddTo)
 
void Ms::MidiLyrics::extractLyricsToMidiData (const MidiFile *mf)
 
void Ms::MidiLyrics::setInitialLyricsFromMidiData (const QList< MTrack > &tracks)
 
std::vector< std::pair< ReducedFraction, ReducedFraction > > Ms::MidiLyrics::findMatchedLyricTimes (const std::multimap< ReducedFraction, MidiChord > &chords, const std::multimap< ReducedFraction, std::string > &lyricTrack)
 
void Ms::MidiLyrics::setLyricsFromOperations (const QList< MTrack > &tracks)
 
void Ms::MidiLyrics::setLyricsToScore (QList< MTrack > &tracks)
 
QList< std::string > Ms::MidiLyrics::makeLyricsListForUI ()
 

Variables

const std::string Ms::MidiLyrics::META_PREFIX = "@"
 
const std::string Ms::MidiLyrics::TEXT_PREFIX = "@T"