[PATCH] BSE: fix midi import problems related to Bse::Song API updates
- From: Stefan Westerfeld <stefan space twc de>
- To: timj gnu org
- Cc: beast gnome org, Stefan Westerfeld <stefan space twc de>
- Subject: [PATCH] BSE: fix midi import problems related to Bse::Song API updates
- Date: Sat, 11 Mar 2017 18:48:27 +0100
Signed-off-by: Stefan Westerfeld <stefan space twc de>
---
bse/bsemidifile.cc | 5 ++---
1 file 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;
--
2.7.4
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]