Lomse library. API documentation
0.30.0
|
#include <lomse_command.h>
A command for applying a diatonic transposition to the score or to a selection.
See constructor for details.
Public Member Functions | |
CmdTransposeDiatonically (int steps, bool fUp=true, const std::string &name="") | |
Public Member Functions inherited from CmdTranspose | |
int | get_cursor_update_policy () override |
int | get_undo_policy () override |
int | get_selection_update_policy () override |
Public Member Functions inherited from DocCmdSimple | |
virtual | ~DocCmdSimple () |
bool | is_composite () override |
Public Member Functions inherited from DocCommand | |
virtual | ~DocCommand () |
std::string | get_name () |
bool | is_reversible () |
bool | is_recordable () |
std::string | get_error () |
Additional Inherited Members | |
Public Types inherited from DocCommand | |
enum | ECmdCursorPolicy |
enum | ECmdUndoPolicy |
enum | ECmdSelectionPolicy |
CmdTransposeDiatonically::CmdTransposeDiatonically | ( | int | steps, |
bool | fUp = true , |
||
const std::string & | name = "" |
||
) |
This command shifts diatonically every pitch, up or down, by the number of steps you specify. Only note steps changed and displayed accidentals are maintained. The command applies only to the notes in the current selection set.
This kind of transposition has nothing to do with the key signature which remains unchanged.
steps | The interval by which you want the selected music transposed. |
fUp | Boolean for choosing the direction of the transposition: value true means 'up', value false means 'down'. |
name | The displayable name for the command. If not specified or empty will be replaced by "Diatonic transposition". |
Remarks
Example