summaryrefslogtreecommitdiff
path: root/muse2/muse/functions.cpp
diff options
context:
space:
mode:
authorFlorian Jung <flo@windfisch.org>2011-09-10 17:06:00 +0000
committerFlorian Jung <flo@windfisch.org>2011-09-10 17:06:00 +0000
commit24f84a489364741eb3fc126a3f83d91a86b65e27 (patch)
tree63a4e20aaf4a2ebd2462c91b574eddceeac31170 /muse2/muse/functions.cpp
parent38c5cccc7273247353264bb7dc97f42296d8e259 (diff)
parent2120ea4f083228dde0d7307203391a4ec8f57e2d (diff)
merged the first bunch of orcans changes
STILL WAIT WITH COMMITTING NEW STUFF! i have to merge the rest as well! this is a bit buggy (connect errors, not tested much), but doesn't segfault immediately
Diffstat (limited to 'muse2/muse/functions.cpp')
-rw-r--r--muse2/muse/functions.cpp26
1 files changed, 21 insertions, 5 deletions
diff --git a/muse2/muse/functions.cpp b/muse2/muse/functions.cpp
index bacd6e34..2fc9f826 100644
--- a/muse2/muse/functions.cpp
+++ b/muse2/muse/functions.cpp
@@ -3,6 +3,21 @@
// Linux Music Editor
// $Id: functions.cpp,v 1.20.2.19 2011/05/05 20:10 flo93 Exp $
// (C) Copyright 2011 Florian Jung (flo93@sourceforge.net)
+//
+// This program is free software; you can redistribute it and/or
+// modify it under the terms of the GNU General Public License
+// as published by the Free Software Foundation; version 2 of
+// the License, or (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program; if not, write to the Free Software
+// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+//
//=========================================================
#include "functions.h"
@@ -44,6 +59,7 @@
using namespace std;
+using MusEConfig::config;
set<Part*> partlist_to_set(PartList* pl)
{
@@ -151,7 +167,7 @@ bool quantize_notes(const set<Part*>& parts)
if (!quantize_dialog->exec())
return false;
- quantize_notes(parts, quantize_dialog->range, (config.division*4)/(1<<quantize_dialog->raster_power2),
+ quantize_notes(parts, quantize_dialog->range, (MusEConfig::config.division*4)/(1<<quantize_dialog->raster_power2),
quantize_dialog->quant_len, quantize_dialog->strength, quantize_dialog->swing,
quantize_dialog->threshold);
@@ -1137,8 +1153,8 @@ void shrink_parts(int raster)
Undo operations;
unsigned min_len;
- if (raster<0) raster=config.division;
- if (raster>=0) min_len=raster; else min_len=config.division;
+ if (raster<0) raster=MusEConfig::config.division;
+ if (raster>=0) min_len=raster; else min_len=MusEConfig::config.division;
TrackList* tracks = song->tracks();
for (iTrack track = tracks->begin(); track != tracks->end(); track++)
@@ -1210,8 +1226,8 @@ void expand_parts(int raster)
Undo operations;
unsigned min_len;
- if (raster<0) raster=config.division;
- if (raster>=0) min_len=raster; else min_len=config.division;
+ if (raster<0) raster=MusEConfig::config.division;
+ if (raster>=0) min_len=raster; else min_len=MusEConfig::config.division;
TrackList* tracks = song->tracks();
for (iTrack track = tracks->begin(); track != tracks->end(); track++)