Index: bse/bsemidifile.c
===================================================================
--- bse/bsemidifile.c	(revision 4374)
+++ bse/bsemidifile.c	(working copy)
@@ -333,6 +333,7 @@ void
 bse_midi_file_setup_song (BseMidiFile    *smf,
                           BseSong        *song)
 {
+  BseBus *master_bus;
   guint i, j;
   bse_item_set_undoable (song,
                          "tpqn", smf->tpqn,
@@ -340,6 +341,7 @@ bse_midi_file_setup_song (BseMidiFile   
                          "denominator", smf->denominator,
                          "bpm", smf->bpm,
                          NULL);
+  bse_item_exec (song, "ensure-master-bus", &master_bus);
   for (i = 0; i < smf->n_tracks; i++)
     {
       BseMidiFileTrack *track = smf->tracks + i;
@@ -350,7 +352,10 @@ bse_midi_file_setup_song (BseMidiFile   
         {
           BseTrack *track;
           BsePart *part;
+          BseErrorType error;
           bse_item_exec (song, "create-track", &track);
+          bse_item_exec (track, "ensure-output", &error);
+          bse_assert_ok (error);
           bse_item_set_undoable (track, "n-voices", 24, NULL);
           bse_item_exec (song, "create-part", &part);
           g_printerr ("part1: %p %s\n", part, G_OBJECT_TYPE_NAME (part));
Index: bse/ChangeLog
===================================================================
--- bse/ChangeLog	(revision 4374)
+++ bse/ChangeLog	(working copy)
@@ -1,3 +1,8 @@
+Fri Sep  7 22:46:20 2007  Stefan Westerfeld  <stefan@space.twc.de>
+
+	* bsemidifile.c: Assign newly created tracks to the master bus. Fixes
+	#441936.
+
 Sat Aug 18 00:15:22 2007  Stefan Westerfeld  <stefan@space.twc.de>
 
 	* bsecore.idl: Include ~/beast/plugins in the default plugin search
