Re: [PATCH] BSE: fix midi import problems related to Bse::Song API updates
- From: Tim Janik <timj gnu org>
- To: Stefan Westerfeld <stefan space twc de>
- Cc: beast gnome org
- Subject: Re: [PATCH] BSE: fix midi import problems related to Bse::Song API updates
- Date: Mon, 13 Mar 2017 23:25:11 +0100
Thanks for this and a bunch of other patches Stefan.
It's all pushed now, keep it up!
On 11.03.2017 18:48, Stefan Westerfeld wrote:
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;
--
Yours sincerely,
Tim Janik
https://testbit.eu/timj/
Free software author.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]