summaryrefslogtreecommitdiff
path: root/libs/ardour/midi_model.cc
diff options
context:
space:
mode:
authorAndré Nusser <andre.nusser@googlemail.com>2015-10-15 15:49:41 +0200
committerPaul Davis <paul@linuxaudiosystems.com>2015-10-17 22:12:55 -0400
commita958770abd3e73d3465f914e06b45a1dca80d778 (patch)
tree1a2b2cfca021e09314f040af2cc13c240b6d965f /libs/ardour/midi_model.cc
parente807fe2b289be7736cd33df6fdc4b50ef4a4c099 (diff)
Remove all the now unused functions in the MidiModel class.
Diffstat (limited to 'libs/ardour/midi_model.cc')
-rw-r--r--libs/ardour/midi_model.cc31
1 files changed, 0 insertions, 31 deletions
diff --git a/libs/ardour/midi_model.cc b/libs/ardour/midi_model.cc
index 5997c5b548..d9f6e802cf 100644
--- a/libs/ardour/midi_model.cc
+++ b/libs/ardour/midi_model.cc
@@ -1997,37 +1997,6 @@ MidiModel::transpose (NoteDiffCommand* c, const NotePtr note_ptr, int semitones)
c->change (note_ptr, NoteDiffCommand::NoteNumber, (uint8_t) new_note);
}
-/** Transpose notes in a time range by a given number of semitones. Notes
- * will be clamped at 0 and 127 if the transposition would make them exceed
- * that range.
- *
- * @param from Start time.
- * @param end End time.
- * @param semitones Number of semitones to transpose by (+ve is higher, -ve is lower).
- */
-void
-MidiModel::transpose (TimeType from, TimeType to, int semitones)
-{
- boost::shared_ptr<const MidiSource> s = midi_source ();
-
- NoteDiffCommand* c = new_note_diff_command (_("transpose"));
-
- for (Notes::iterator i = notes().begin(); i != notes().end(); ++i) {
-
- if ((*i)->time() >= to) {
-
- /* finished */
- break;
-
- } else if ((*i)->time() >= from) {
-
- transpose (c, *i, semitones);
- }
- }
-
- apply_command (s->session (), c);
-}
-
void
MidiModel::control_list_marked_dirty ()
{