MuseScore  3.4
Music composition and notation
Namespaces | Functions | Variables
utils.h File Reference
#include "mscore.h"
#include "interval.h"
Include dependency graph for utils.h:

Go to the source code of this file.

Namespaces

 Ms
 
 

Functions

QRectF Ms::handleRect (const QPointF &pos)
 
int Ms::getStaff (System *system, const QPointF &p)
 
int Ms::pitchKeyAdjust (int step, Key key)
 
int Ms::line2pitch (int line, ClefType clef, Key key)
 
int Ms::y2pitch (qreal y, ClefType clef, qreal _spatium)
 
int Ms::quantizeLen (int len, int raster)
 
QString Ms::pitch2string (int v)
 
void Ms::transposeInterval (int pitch, int tpc, int *rpitch, int *rtpc, Interval interval, bool useDoubleSharpsFlats)
 
int Ms::transposeTpc (int tpc, Interval interval, bool useDoubleSharpsFlats)
 
int Ms::searchInterval (int steps, int semitones)
 
int Ms::chromatic2diatonic (int semitones)
 
int Ms::diatonicUpDown (Key k, int pitch, int steps)
 
int Ms::majorVersion ()
 
int Ms::minorVersion ()
 
int Ms::updateVersion ()
 
bool Ms::compareVersion (QString v1, QString v2)
 Up to 4 digits X.X.X.X Each digit can be double XX.XX.XX.XX return true if v1 < v2. More...
 
Note * Ms::nextChordNote (Note *note)
 
Note * Ms::prevChordNote (Note *note)
 
Segment * Ms::nextSeg1 (Segment *seg, int &track)
 
Segment * Ms::prevSeg1 (Segment *seg, int &track)
 
Note * Ms::searchTieNote (Note *note)
 
Note * Ms::searchTieNote114 (Note *note)
 
int Ms::absStep (int pitch)
 
int Ms::absStep (int tpc, int pitch)
 Compute absolute step. More...
 
int Ms::absStep (int line, ClefType clef)
 
int Ms::relStep (int line, ClefType clef)
 Compute relative step from absolute step which depends on actual clef. More...
 
int Ms::relStep (int pitch, int tpc, ClefType clef)
 
int Ms::pitch2step (int pitch)
 
int Ms::step2pitch (int step)
 
Segment * Ms::skipTuplet (Tuplet *tuplet)
 
std::vector< SymId > Ms::toTimeSigString (const QString &s)
 
Fraction Ms::actualTicks (Fraction duration, Tuplet *tuplet, Fraction timeStretch)
 

Variables

constexpr int Ms::intervalListSize = 26