*fixed bug in MidiClock_Slave: Use current framerate for speed calculations
authorHans Baier <hansfbaier@googlemail.com>
Thu, 1 Jan 2009 21:26:28 +0000 (21:26 +0000)
committerHans Baier <hansfbaier@googlemail.com>
Thu, 1 Jan 2009 21:26:28 +0000 (21:26 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@4371 d708f5d6-7413-0410-9779-e7cbd77b26cf

libs/ardour/midi_clock_slave.cc

index e7cd5a37841c86f3639c624dc78ff043a77a018e..ef900cededc113202e4b2540f7e124af8c066d08 100644 (file)
@@ -83,7 +83,7 @@ MIDIClock_Slave::calculate_one_ppqn_in_frames_at(nframes_t time)
        const Tempo& current_tempo = session.tempo_map().tempo_at(time);
        const Meter& current_meter = session.tempo_map().meter_at(time);
        double frames_per_beat =
-               current_tempo.frames_per_beat(session.nominal_frame_rate(),
+               current_tempo.frames_per_beat(session.frame_rate(),
                                              current_meter);
 
        double quarter_notes_per_beat = 4.0 / current_tempo.note_type();