MuseScore  3.4
Music composition and notation
Public Member Functions | List of all members
Ms::GuitarPro2 Class Reference

#include <importgtp.h>

Inheritance diagram for Ms::GuitarPro2:
Inheritance graph
[legend]
Collaboration diagram for Ms::GuitarPro2:
Collaboration graph
[legend]

Public Member Functions

 GuitarPro2 (MasterScore *s, int v)
 
virtual bool read (QFile *)
 
- Public Member Functions inherited from Ms::GuitarPro1
 GuitarPro1 (MasterScore *s, int v)
 
- Public Member Functions inherited from Ms::GuitarPro
void setTempo (int n, Measure *measure)
 
void initGuitarProDrumset ()
 
 GuitarPro (MasterScore *, int v)
 
virtual ~GuitarPro ()
 
QString error (GuitarProError n) const
 

Additional Inherited Members

- Public Types inherited from Ms::GuitarPro
enum  GuitarProError : char { GuitarProError::GP_NO_ERROR, GuitarProError::GP_UNKNOWN_FORMAT, GuitarProError::GP_EOF, GuitarProError::GP_BAD_NUMBER_OF_STRINGS }
 
- Public Attributes inherited from Ms::GuitarPro
std::vector< std::string > tunings
 
QString title
 
QString subtitle
 
QString artist
 
QString album
 
QString composer
 
QString transcriber
 
QString instructions
 
QStringList comments
 
GpTrack channelDefaults [GP_MAX_TRACK_NUMBER *2]
 
int staves
 
int measures
 
QList< GpBarbars
 
- Protected Member Functions inherited from Ms::GuitarPro1
bool readNote (int string, Note *note)
 
virtual int readBeatEffects (int track, Segment *)
 
- Protected Member Functions inherited from Ms::GuitarPro
void skip (qint64 len)
 
void read (void *p, qint64 len)
 
int readUChar ()
 
int readChar ()
 
QString readPascalString (int)
 
QString readWordPascalString ()
 
QString readBytePascalString ()
 
int readInt ()
 
QString readDelphiString ()
 
void readVolta (GPVolta *, Measure *)
 
virtual void readBend (Note *)
 
virtual bool readMixChange (Measure *measure)
 
void readLyrics ()
 
void readChannels ()
 
void setTuplet (Tuplet *tuplet, int tuple)
 
void setupTupletStyle (Tuplet *tuplet)
 
Fraction len2fraction (int len)
 
void addDynamic (Note *, int d)
 
void createMeasures ()
 
void applyBeatEffects (Chord *, int beatEffects)
 
void readTremoloBar (int track, Segment *)
 
void readChord (Segment *seg, int track, int numStrings, QString name, bool gpHeader)
 
void restsForEmptyBeats (Segment *seg, Measure *measure, ChordRest *cr, Fraction &l, int track, const Fraction &tick)
 
void createSlur (bool hasSlur, int staffIdx, ChordRest *cr)
 
void createOttava (bool hasOttava, int track, ChordRest *cr, QString value)
 
void createSlide (int slide, ChordRest *cr, int staffIdx, Note *note=nullptr)
 
void createCrecDim (int staffIdx, int track, const Fraction &tick, bool crec)
 
TextaddTextToNote (QString, Align, Note *)
 
void addPalmMute (Note *)
 
void addLetRing (Note *)
 
void addVibrato (Note *, Vibrato::Type type=Vibrato::Type::GUITAR_VIBRATO)
 
void addTap (Note *)
 
void addSlap (Note *)
 
void addPop (Note *)
 
void createTuningString (int strings, int tuning[])
 
- Protected Attributes inherited from Ms::GuitarPro
std::list< Note * > slideList
 
int version
 
int key { 0 }
 
Segmentlast_segment { nullptr }
 
Measurelast_measure { nullptr }
 
int last_tempo { -1 }
 
QMap< int, QList< GPFermata > * > fermatas
 
std::vector< Ottava * > ottava
 
Hairpin ** hairpins
 
MasterScorescore
 
QFile * f
 
int curPos
 
int previousTempo
 
int previousDynamic
 
std::vector< int > ottavaFound
 
std::vector< QString > ottavaValue
 
std::map< int, std::pair< int, bool > > tempoMap
 
int tempo
 
QMap< int, int > slides
 
GPLyrics gpLyrics
 
int slide
 
int voltaSequence
 
QTextCodec * _codec { 0 }
 
Slur ** slurs { nullptr }
 
std::vector< PalmMute * > _palmMutes
 
std::vector< LetRing * > _letRings
 
std::vector< Vibrato * > _vibratos
 
- Static Protected Attributes inherited from Ms::GuitarPro
static const uchar EFFECT_BEND = 0x1
 
static const uchar EFFECT_STACATTO = 0x1
 
static const uchar EFFECT_HAMMER = 0x2
 
static const uchar EFFECT_PALM_MUTE = 0x2
 
static const uchar EFFECT_TREMOLO = 0x4
 
static const uchar EFFECT_LET_RING = 0x8
 
static const uchar EFFECT_SLIDE_OLD = 0x4
 
static const uchar EFFECT_SLIDE = 0x8
 
static const uchar EFFECT_GRACE = 0x10
 
static const uchar EFFECT_ARTIFICIAL_HARMONIC = 0x10
 
static const uchar EFFECT_TRILL = 0x20
 
static const uchar EFFECT_GHOST = 0x01
 
static const uchar ARPEGGIO_UP = 0xa
 
static const uchar ARPEGGIO_DOWN = 0x2
 
static const uchar NOTE_GHOST = 0x04
 
static const uchar NOTE_DEAD = 0x20
 
static const uchar NOTE_DYNAMIC = 0x10
 
static const uchar NOTE_FRET = 0x20
 
static const uchar NOTE_FINGERING = 0x80
 
static const uchar NOTE_MARCATO = 0x02
 
static const uchar NOTE_SFORZATO = 0x40
 
static const uchar NOTE_SLUR = 0x8
 
static const uchar NOTE_APPOGIATURA = 0x02
 
static const uchar BEAT_VIBRATO_TREMOLO = 0x02
 
static const uchar BEAT_FADE = 0x10
 
static const uchar BEAT_EFFECT = 0x20
 
static const uchar BEAT_TREMOLO = 0x04
 
static const uchar BEAT_ARPEGGIO = 0x40
 
static const uchar BEAT_STROKE_DIR = 0x02
 
static const uchar BEAT_DOTTED = 0x01
 
static const uchar BEAT_PAUSE = 0x40
 
static const uchar BEAT_TUPLET = 0x20
 
static const uchar BEAT_LYRICS = 0x4
 
static const uchar BEAT_EFFECTS = 0x8
 
static const uchar BEAT_MIX_CHANGE = 0x10
 
static const uchar BEAT_CHORD = 0x2
 
static const uchar SCORE_TIMESIG_NUMERATOR = 0x1
 
static const uchar SCORE_TIMESIG_DENOMINATOR = 0x2
 
static const uchar SCORE_REPEAT_START = 0x4
 
static const uchar SCORE_REPEAT_END = 0x8
 
static const uchar SCORE_MARKER = 0x20
 
static const uchar SCORE_VOLTA = 0x10
 
static const uchar SCORE_KEYSIG = 0x40
 
static const uchar SCORE_DOUBLE_BAR = 0x80
 
static const int SHIFT_SLIDE = 1
 
static const int LEGATO_SLIDE = 2
 
static const int SLIDE_OUT_DOWN = 4
 
static const int SLIDE_OUT_UP = 8
 
static const int SLIDE_IN_ABOVE = 16
 
static const int SLIDE_IN_BELOW = 32
 
static const int MAX_PITCH = 127
 
static const char *const errmsg []
 

Constructor & Destructor Documentation

◆ GuitarPro2()

Ms::GuitarPro2::GuitarPro2 ( MasterScore s,
int  v 
)
inline

Member Function Documentation

◆ read()

bool Ms::GuitarPro2::read ( QFile *  fp)
virtual

Reimplemented from Ms::GuitarPro1.


The documentation for this class was generated from the following files: