diff options
author | Florian Jung <flo@windfisch.org> | 2011-05-14 13:29:32 +0000 |
---|---|---|
committer | Florian Jung <flo@windfisch.org> | 2011-05-14 13:29:32 +0000 |
commit | 0ec79fb4c59be4adb77d3dcbc068dee7107ed381 (patch) | |
tree | dfe2623fbec584095c1b7462952157b59b19a0bb /muse2/muse/midieditor.cpp | |
parent | 8aed0b79c9b28af69ef67e858992385ea074df63 (diff) |
- removed unneccessary _to and _quant* - stuff from piano roll and drum edit
this also involved changing the Toolbar1
- removed unneccessary short cuts: SHRT_OVER_QUANTIZE etc. instead added
SHRT_QUANTIZE
- changed behaviour for scripts: the "quant"-parameter they get isn't the
quant-combo's setting, but the snap-combo's now
- changed behaviour for step-recording: the note-length is now the "raster"-
value instead of the "quant"-value
Diffstat (limited to 'muse2/muse/midieditor.cpp')
-rw-r--r-- | muse2/muse/midieditor.cpp | 19 |
1 files changed, 2 insertions, 17 deletions
diff --git a/muse2/muse/midieditor.cpp b/muse2/muse/midieditor.cpp index 9191233d..2a6d8750 100644 --- a/muse2/muse/midieditor.cpp +++ b/muse2/muse/midieditor.cpp @@ -23,7 +23,7 @@ // MidiEditor //--------------------------------------------------------- -MidiEditor::MidiEditor(int q, int r, PartList* pl, +MidiEditor::MidiEditor(int r, PartList* pl, QWidget* parent, const char* name) : TopWin(parent, name) { setAttribute(Qt::WA_DeleteOnClose); @@ -31,7 +31,6 @@ MidiEditor::MidiEditor(int q, int r, PartList* pl, if (_pl) for (iPart i = _pl->begin(); i != _pl->end(); ++i) _parts.push_back(i->second->sn()); - _quant = q; _raster = r; canvas = 0; wview = 0; @@ -81,17 +80,6 @@ MidiEditor::~MidiEditor() delete _pl; } -//--------------------------------------------------------- -// quantVal -//--------------------------------------------------------- - -int MidiEditor::quantVal(int v) const - { - int val = ((v+_quant/2)/_quant)*_quant; - if (val == 0) - val = _quant; - return val; - } //--------------------------------------------------------- // readStatus @@ -110,9 +98,7 @@ void MidiEditor::readStatus(Xml& xml) case Xml::End: return; case Xml::TagStart: - if (tag == "quant") - _quant = xml.parseInt(); - else if (tag == "raster") + if (tag == "raster") _raster = xml.parseInt(); else if (tag == "topwin") TopWin::readStatus(xml); @@ -155,7 +141,6 @@ void MidiEditor::writeStatus(int level, Xml& xml) const { xml.tag(level++, "midieditor"); TopWin::writeStatus(level, xml); - xml.intTag(level, "quant", _quant); xml.intTag(level, "raster", _raster); xml.tag(level, "/midieditor"); } |