HI there,

(first of all, I am no programmer so please take everything I say with a
huge pinch of salt!!)

I have been struggling to get hydrogen to do the right thing in terms of
BPM changes - it plays double beats when changing tempo from fast to slow,
and also, clicking on the timeline is messed up when hydrogen is stopped -
the cursor appears in the right place, but then jumps to another part of
the song when you press play.

The first issue seems to be to do with the changing of the ticksize (which
is calculated as a float), and audioEngine_updateNoteQueue playing a tick
twice (as ticks are treated as integers in this function)..

The second issue I think, is due to the variable m_nSongPos being set by
the GUI when it is unaware of BPM changes in the song, then this variable
being used by the playback engine to define position in the song.

I have written a couple of patches, which I posted to the forum here:

http://www.hydrogen-music.org/hcms/node/4502

and here:

http://www.hydrogen-music.org/hcms/node/4523

.. both are probably considered dirty hacks - and are probably not the
"right way" to do these things - but on the other hand, they do improve
functionality significantly.

I would appreciate thoughts from devs who know the codebase (and
programming) much better than me :)

James
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Hydrogen-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/hydrogen-devel

Reply via email to