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

The description of a single voice in a MusicXML part. More...

#include <musicxmlsupport.h>

Public Member Functions

 VoiceDesc ()
 
void incrChordRests (int s)
 
int numberChordRests () const
 
int numberChordRests (int s) const
 
int preferredStaff () const
 Determine preferred staff for this voice. More...
 
void setStaff (int s)
 
int staff () const
 
void setVoice (int v)
 
int voice () const
 
void setVoice (int s, int v)
 
int voice (int s) const
 
void setOverlap (bool b)
 
bool overlaps () const
 
void setStaffAlloc (int s, int i)
 
int staffAlloc (int s) const
 
QString toString () const
 

Private Attributes

int _chordRests [MAX_STAVES]
 The number of chordrests on each MusicXML staff. More...
 
int _staff
 The MuseScore staff allocated. More...
 
int _voice
 The MuseScore voice allocated. More...
 
bool _overlaps
 This voice contains active notes in multiple staves at the same time. More...
 
int _staffAlloc [MAX_STAVES]
 For overlapping voices: voice is allocated on these staves (note: -2=unalloc -1=undef 1=alloc) More...
 
int _voices [MAX_STAVES]
 For every voice allocated on the staff, the voice number. More...
 

Detailed Description

The description of a single voice in a MusicXML part.

Constructor & Destructor Documentation

◆ VoiceDesc()

Ms::VoiceDesc::VoiceDesc ( )

Member Function Documentation

◆ incrChordRests()

void Ms::VoiceDesc::incrChordRests ( int  s)

◆ numberChordRests() [1/2]

int Ms::VoiceDesc::numberChordRests ( ) const

◆ numberChordRests() [2/2]

int Ms::VoiceDesc::numberChordRests ( int  s) const
inline

◆ overlaps()

bool Ms::VoiceDesc::overlaps ( ) const
inline

◆ preferredStaff()

int Ms::VoiceDesc::preferredStaff ( ) const

Determine preferred staff for this voice.

◆ setOverlap()

void Ms::VoiceDesc::setOverlap ( bool  b)
inline

◆ setStaff()

void Ms::VoiceDesc::setStaff ( int  s)
inline

◆ setStaffAlloc()

void Ms::VoiceDesc::setStaffAlloc ( int  s,
int  i 
)
inline

◆ setVoice() [1/2]

void Ms::VoiceDesc::setVoice ( int  v)
inline

◆ setVoice() [2/2]

void Ms::VoiceDesc::setVoice ( int  s,
int  v 
)
inline

◆ staff()

int Ms::VoiceDesc::staff ( ) const
inline

◆ staffAlloc()

int Ms::VoiceDesc::staffAlloc ( int  s) const
inline

◆ toString()

QString Ms::VoiceDesc::toString ( ) const

◆ voice() [1/2]

int Ms::VoiceDesc::voice ( ) const
inline

◆ voice() [2/2]

int Ms::VoiceDesc::voice ( int  s) const
inline

Member Data Documentation

◆ _chordRests

int Ms::VoiceDesc::_chordRests[MAX_STAVES]
private

The number of chordrests on each MusicXML staff.

◆ _overlaps

bool Ms::VoiceDesc::_overlaps
private

This voice contains active notes in multiple staves at the same time.

◆ _staff

int Ms::VoiceDesc::_staff
private

The MuseScore staff allocated.

◆ _staffAlloc

int Ms::VoiceDesc::_staffAlloc[MAX_STAVES]
private

For overlapping voices: voice is allocated on these staves (note: -2=unalloc -1=undef 1=alloc)

◆ _voice

int Ms::VoiceDesc::_voice
private

The MuseScore voice allocated.

◆ _voices

int Ms::VoiceDesc::_voices[MAX_STAVES]
private

For every voice allocated on the staff, the voice number.


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