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

#include <drumset.h>

Collaboration diagram for Ms::Drumset:
Collaboration graph
[legend]

Public Member Functions

bool isValid (int pitch) const
 
NoteHead::Group noteHead (int pitch) const
 
SymId noteHeads (int pitch, NoteHead::Type t) const
 
int line (int pitch) const
 
int voice (int pitch) const
 
Direction stemDirection (int pitch) const
 
const QString & name (int pitch) const
 
int shortcut (int pitch) const
 
QList< DrumInstrumentVariantvariants (int pitch) const
 
void save (XmlWriter &) const
 
void load (XmlReader &)
 
bool readProperties (XmlReader &, int)
 
void clear ()
 
int nextPitch (int) const
 
int prevPitch (int) const
 
DrumInstrumentdrum (int i)
 
const DrumInstrumentdrum (int i) const
 
DrumInstrumentVariant findVariant (int pitch, const QVector< Articulation *> articulations, Tremolo *tremolo) const
 find a variant for the given pitch with matching chord articulation and tremolo More...
 

Private Attributes

DrumInstrument _drum [DRUM_INSTRUMENTS]
 

Member Function Documentation

◆ clear()

void Ms::Drumset::clear ( )

◆ drum() [1/2]

DrumInstrument& Ms::Drumset::drum ( int  i)
inline

◆ drum() [2/2]

const DrumInstrument& Ms::Drumset::drum ( int  i) const
inline

◆ findVariant()

DrumInstrumentVariant Ms::Drumset::findVariant ( int  pitch,
const QVector< Articulation *>  articulations,
Tremolo tremolo 
) const

find a variant for the given pitch with matching chord articulation and tremolo

◆ isValid()

bool Ms::Drumset::isValid ( int  pitch) const
inline

◆ line()

int Ms::Drumset::line ( int  pitch) const
inline

◆ load()

void Ms::Drumset::load ( XmlReader e)

◆ name()

const QString& Ms::Drumset::name ( int  pitch) const
inline

◆ nextPitch()

int Ms::Drumset::nextPitch ( int  ii) const

◆ noteHead()

NoteHead::Group Ms::Drumset::noteHead ( int  pitch) const
inline

◆ noteHeads()

SymId Ms::Drumset::noteHeads ( int  pitch,
NoteHead::Type  t 
) const
inline

◆ prevPitch()

int Ms::Drumset::prevPitch ( int  ii) const

◆ readProperties()

bool Ms::Drumset::readProperties ( XmlReader e,
int  pitch 
)

◆ save()

void Ms::Drumset::save ( XmlWriter xml) const

◆ shortcut()

int Ms::Drumset::shortcut ( int  pitch) const
inline

◆ stemDirection()

Direction Ms::Drumset::stemDirection ( int  pitch) const
inline

◆ variants()

QList<DrumInstrumentVariant> Ms::Drumset::variants ( int  pitch) const
inline

◆ voice()

int Ms::Drumset::voice ( int  pitch) const
inline

Member Data Documentation

◆ _drum

DrumInstrument Ms::Drumset::_drum[DRUM_INSTRUMENTS]
private

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