summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWerner Schweer <ws.seh.de>2006-11-09 20:00:43 +0000
committerWerner Schweer <ws.seh.de>2006-11-09 20:00:43 +0000
commitc36c66aeb25d64acd2b8b9489eff9d66ebf95289 (patch)
tree8fba2d5c8bb3b0ac1f70818bc9ff4c5151d4e908
parentce0728d6bc5593396f693b002d2d43503eb24895 (diff)
update
-rw-r--r--muse/awl/tcanvas.cpp2
-rw-r--r--muse/muse/song.cpp56
2 files changed, 19 insertions, 39 deletions
diff --git a/muse/awl/tcanvas.cpp b/muse/awl/tcanvas.cpp
index e892f819..37f93c64 100644
--- a/muse/awl/tcanvas.cpp
+++ b/muse/awl/tcanvas.cpp
@@ -773,7 +773,7 @@ void TimeCanvas::canvasPaintEvent(const QRect& r, QPainter& p)
p.drawLine(rButton.x(), y, rButton.width(), y);
}
p.setRenderHint(QPainter::TextAntialiasing, true);
- p.setRenderHint(QPainter::Antialiasing, true);
+// p.setRenderHint(QPainter::Antialiasing, true);
// p.setRenderHint(QPainter::SmoothPixmapTransform, true);
QRect par = r & rPanelA;
diff --git a/muse/muse/song.cpp b/muse/muse/song.cpp
index 6af28976..9a287cb8 100644
--- a/muse/muse/song.cpp
+++ b/muse/muse/song.cpp
@@ -1517,75 +1517,60 @@ void Song::insertTrack(Track* track, int idx)
break;
case Track::MIDI:
//
- // connect output to first non used midi channel
- // if there is already a route, do not add another
- // default routing
- //
-#if 0
- if (track->noOutRoute()) {
- for (iMidiChannel i = _midiChannel.begin(); i != _midiChannel.end(); ++i) {
- if ((*i)->noInRoute()) {
- track->outRoutes()->push_back(Route(*i, -1, Route::TRACK));
- break;
- }
- }
- }
-#endif
- //
// connect to all midi inputs, if there is not already
// a route
//
-#if 0 //TODOA
if (!track->noInRoute()) {
MidiInPortList* mi = midiInPorts();
for (iMidiInPort i = mi->begin(); i != mi->end(); ++i) {
- for (int ch = 0; ch < MIDI_CHANNELS; ++ch)
- track->inRoutes()->push_back(Route(*i, ch, Route::TRACK));
+ for (int ch = 0; ch < MIDI_CHANNELS; ++ch) {
+ RouteNode src(*i, ch, RouteNode::TRACK);
+ RouteNode dst(track, -1, RouteNode::TRACK);
+ Route r = Route(src, dst);
+ track->inRoutes()->push_back(r);
+ }
}
}
-#endif
break;
case Track::AUDIO_SOFTSYNTH:
-//TODOA if (mo)
-// track->inRoutes()->push_back(Route(mo, -1, Route::TRACK));
- // fall through
-
case Track::WAVE:
case Track::AUDIO_GROUP:
-//TODOA if (ao)
-// track->outRoutes()->push_back(Route(ao));
+ if (ao)
+ track->outRoutes()->push_back(Route(RouteNode(track), RouteNode(ao)));
break;
case Track::AUDIO_INPUT:
{
-#if 0 //TODOA
// connect first input channel to first available jack output
// etc.
QList<PortName> op = audioDriver->outputPorts(false);
QList<PortName>::iterator is = op.begin();
for (int ch = 0; ch < track->channels(); ++ch) {
if (is != op.end()) {
- track->inRoutes()->push_back(Route(is->port, ch, Route::AUDIOPORT));
+ RouteNode src(is->port, -1, RouteNode::AUDIOPORT);
+ RouteNode dst(track, ch, RouteNode::TRACK);
+ Route r = Route(src, dst);
+ track->inRoutes()->push_back(r);
++is;
}
}
- if (ao)
- track->outRoutes()->push_back(Route(ao));
-#endif
+// if (ao)
+// track->outRoutes()->push_back(Route(ao));
}
break;
case Track::AUDIO_OUTPUT:
{
-#if 0 //TODOA
QList<PortName> op = audioDriver->inputPorts(false);
QList<PortName>::iterator is = op.begin();
for (int ch = 0; ch < track->channels(); ++ch) {
if (is != op.end()) {
- track->outRoutes()->push_back(Route(is->port, ch, Route::AUDIOPORT));
+ RouteNode src(track, ch, RouteNode::TRACK);
+ RouteNode dst(is->port, -1, RouteNode::AUDIOPORT);
+ Route r = Route(src, dst);
+ track->outRoutes()->push_back(r);
++is;
}
}
-#endif
}
break;
}
@@ -1804,11 +1789,6 @@ void Song::removeTrack2(Track* track)
r.dst.track->inRoutes()->removeAt(idx);
else {
printf("Song::removeTrack2(): output route not found\n");
-/*TODOA src.dump();
- printf(" in route list:\n");
- foreach (const Route rr, *(r.track->inRoutes()))
- rr.dump();
-*/
}
}
}