MuseScore  3.4
Music composition and notation
Public Member Functions | Private Member Functions | Private Attributes | List of all members
Ms::Swing::SwingDetector Class Reference
Collaboration diagram for Ms::Swing::SwingDetector:
Collaboration graph
[legend]

Public Member Functions

 SwingDetector (MidiOperations::Swing st)
 
void add (ChordRest *cr)
 
bool wasSwingApplied () const
 

Private Member Functions

void reset ()
 
void append (ChordRest *cr)
 
void checkNormalSwing ()
 
void checkShuffle ()
 
void applySwing ()
 
bool areAllTuplets () const
 
bool areAllNonTuplets () const
 

Private Attributes

std::vector< ChordRest * > elements
 
ReducedFraction sumLen
 
const ReducedFraction FULL_LEN = {1, 4}
 
MidiOperations::Swing swingType
 
bool swingApplied = false
 

Constructor & Destructor Documentation

◆ SwingDetector()

Ms::Swing::SwingDetector::SwingDetector ( MidiOperations::Swing  st)

Member Function Documentation

◆ add()

void Ms::Swing::SwingDetector::add ( ChordRest cr)

◆ append()

void Ms::Swing::SwingDetector::append ( ChordRest cr)
private

◆ applySwing()

void Ms::Swing::SwingDetector::applySwing ( )
private

◆ areAllNonTuplets()

bool Ms::Swing::SwingDetector::areAllNonTuplets ( ) const
private

◆ areAllTuplets()

bool Ms::Swing::SwingDetector::areAllTuplets ( ) const
private

◆ checkNormalSwing()

void Ms::Swing::SwingDetector::checkNormalSwing ( )
private

◆ checkShuffle()

void Ms::Swing::SwingDetector::checkShuffle ( )
private

◆ reset()

void Ms::Swing::SwingDetector::reset ( )
private

◆ wasSwingApplied()

bool Ms::Swing::SwingDetector::wasSwingApplied ( ) const
inline

Member Data Documentation

◆ elements

std::vector<ChordRest *> Ms::Swing::SwingDetector::elements
private

◆ FULL_LEN

const ReducedFraction Ms::Swing::SwingDetector::FULL_LEN = {1, 4}
private

◆ sumLen

ReducedFraction Ms::Swing::SwingDetector::sumLen
private

◆ swingApplied

bool Ms::Swing::SwingDetector::swingApplied = false
private

◆ swingType

MidiOperations::Swing Ms::Swing::SwingDetector::swingType
private

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