diff options
author | erdgeist <erdgeist@bauklotz.fritz.box> | 2018-04-04 02:57:39 +0200 |
---|---|---|
committer | erdgeist <erdgeist@bauklotz.fritz.box> | 2018-04-04 02:57:39 +0200 |
commit | 1b07b4d2ea8f716bef832b84bd38a2d0cdabb9b4 (patch) | |
tree | 92180d4e3c447beb20c805b0545c26a558a2276f | |
parent | 6a7840d9a4e9272761a90e7f82545b86dfb4c479 (diff) |
Make flip pitch its own function
-rw-r--r-- | config.c | 12 | ||||
-rw-r--r-- | config.h | 1 |
2 files changed, 10 insertions, 3 deletions
@@ -436,14 +436,20 @@ config_reverse_strings() | |||
436 | } | 436 | } |
437 | 437 | ||
438 | void | 438 | void |
439 | config_flip_y() | 439 | config_flip_pitch() |
440 | { | 440 | { |
441 | int i; | 441 | int i; |
442 | g_midi_three_octave_split_inverse ^= 1; | ||
443 | g_config_source = source_edit; | ||
444 | for (i=0; i<g_string_count; ++i) | 442 | for (i=0; i<g_string_count; ++i) |
445 | if (g_string_conf[i].modifier == pitch_bend_up) | 443 | if (g_string_conf[i].modifier == pitch_bend_up) |
446 | g_string_conf[i].modifier = pitch_bend_down; | 444 | g_string_conf[i].modifier = pitch_bend_down; |
447 | else if (g_string_conf[i].modifier == pitch_bend_down) | 445 | else if (g_string_conf[i].modifier == pitch_bend_down) |
448 | g_string_conf[i].modifier = pitch_bend_up; | 446 | g_string_conf[i].modifier = pitch_bend_up; |
447 | g_config_source = source_edit; | ||
448 | } | ||
449 | |||
450 | void | ||
451 | config_flip_y() | ||
452 | { | ||
453 | g_midi_three_octave_split_inverse ^= 1; | ||
454 | config_flip_pitch(); | ||
449 | } | 455 | } |
@@ -89,3 +89,4 @@ size_t config_dumpstring(int string, char *out, size_t outsize); | |||
89 | char *config_midi_note_to_string(int string); | 89 | char *config_midi_note_to_string(int string); |
90 | void config_reverse_strings(); | 90 | void config_reverse_strings(); |
91 | void config_flip_y(); | 91 | void config_flip_y(); |
92 | void config_flip_pitch(); | ||