[beast: 2/4] BSE: fix midi import problems related to Bse::Song API updates
- From: Tim Janik <timj src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [beast: 2/4] BSE: fix midi import problems related to Bse::Song API updates
- Date: Mon, 13 Mar 2017 22:22:38 +0000 (UTC)
commit afcfb4915ca2521181c3809a5eaab82f4dec19ab
Author: Stefan Westerfeld <stefan space twc de>
Date: Sat Mar 11 18:48:27 2017 +0100
BSE: fix midi import problems related to Bse::Song API updates
Signed-off-by: Stefan Westerfeld <stefan space twc de>
bse/bsemidifile.cc | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/bse/bsemidifile.cc b/bse/bsemidifile.cc
index 6cb3c59..f0693ed 100644
--- a/bse/bsemidifile.cc
+++ b/bse/bsemidifile.cc
@@ -315,16 +315,15 @@ void
bse_midi_file_setup_song (BseMidiFile *smf,
BseSong *bsong)
{
- BseBus *master_bus;
uint i, j;
bse_item_set_undoable (bsong,
"tpqn", smf->tpqn,
"numerator", smf->numerator,
"denominator", smf->denominator,
- "bpm", smf->bpm,
NULL);
- bse_item_exec (bsong, "ensure-master-bus", &master_bus);
Bse::SongImpl &song = *bsong->as<Bse::SongImpl*>();
+ song.bpm (smf->bpm);
+ song.ensure_master_bus();
for (i = 0; i < smf->n_tracks; i++)
{
BseMidiFileTrack *track = smf->tracks + i;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]