本文整理汇总了C++中Dynamic::GetStaffVolume方法的典型用法代码示例。如果您正苦于以下问题:C++ Dynamic::GetStaffVolume方法的具体用法?C++ Dynamic::GetStaffVolume怎么用?C++ Dynamic::GetStaffVolume使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Dynamic
的用法示例。
在下文中一共展示了Dynamic::GetStaffVolume方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: OnTestParseFile
//.........这里部分代码省略.........
else if (tempoMarker->IsRitardando())
{
}
}
if (tempoMarker->HasTripletFeel())
{
wxByte tripletFeelType = tempoMarker->GetTripletFeelType();
}
wxString description = tempoMarker->GetDescription();
}
// Parse the dynamics in the score
// In Power Tab Editor v1.7, dynamics can be accessed via the Dynamic dialog:
// Menu Music Symbols -> Dynamic
// Dynamics are stored in the array by order of their system, position and
// staff values
wxUint32 dynamicIndex = 0;
wxUint32 dynamicCount = score->GetDynamicCount();
for (; dynamicIndex < dynamicCount; dynamicIndex++)
{
Dynamic* dynamic = score->GetDynamic(dynamicIndex);
wxCHECK2(dynamic != NULL, continue);
wxWord system = dynamic->GetSystem();
wxByte staff = dynamic->GetStaff();
wxByte position = dynamic->GetPosition();
// Staff volume is set
if (dynamic->IsStaffVolumeSet())
{
wxByte staffVolume = dynamic->GetStaffVolume();
}
// Rhythm slash volume is set
if (dynamic->IsRhythmSlashVolumeSet())
{
wxByte rhythmSlashVolume = dynamic->GetRhythmSlashVolume();
}
}
// Parse the alternate endings in the score
// In Power Tab Editor v1.7, alternate endings can be accessed via the Repeat Ending dialog:
// Menu Music Symbols -> Repeat Ending
// Alternate endings are stored in the array by order of their system and
// position values
wxUint32 alternateEndingIndex = 0;
wxUint32 alternateEndingCount = score->GetAlternateEndingCount();
for (; alternateEndingIndex < alternateEndingCount; alternateEndingIndex++)
{
AlternateEnding* alternateEnding = score->GetAlternateEnding(alternateEndingIndex);
wxCHECK2(alternateEnding != NULL, continue);
wxWord system = alternateEnding->GetSystem();
wxByte position = alternateEnding->GetPosition();
// Determine which numbers are set
wxWord number = 1;
for (; number <= AlternateEnding::dalSegnoSegno; number++)
{
if (alternateEnding->IsNumberSet(number))
{
// Number is set