On 05/26/2014 12:30 AM, Stian Jørgensrud wrote:
> I actually just read all the messages, and understood parts of it! Most of it
> actually :D
>
> Ok, we want LMMS to play samples straight forward not taking the tempo in
> consideration.

No... we want to play samples so that they DO take tempo in
consideration. So that whatever the tempo is, however it's automated, it
gets accurately timed no matter where you play it from. We need to take
tempo in consideration so that we can play sampletracks accurately.

>  Problem arrives when you want to play in the middle of a
> sample, in a song where there already have been a tempo change. I didn't get
> exactly that in my first reply, but I was right in that playing a sample
> straight forward could have been synced to the timer, if the timer had done
> calculations correctly... 

Well actually no, not even then - the GUI timer as it exists now in LMMS
is not accurate enough, it only measures milliseconds. To get accurate
enough timing for sampletracks, we need timing that is accurate to the
frame, ie. 1/44100 seconds at default sample rate...

So a frame-based timer is needed. However, the problem comes when you
jump ahead, then we need to calculate how many frames would have elapsed
if we had played normally to that point, and use that to offset the
sampletrack.

> Now, when you move the timer manually over tempo
> automations, it don't show the correct time, so you can't use it... The
> problem causing the fault for the sample track and timer is the same!

This is true. It just turned out that correcting the timer was easier
than correcting sampletrack behaviour.

> I have thought about this in a graphical way by looking at LMMS 1.0.2. When
> automation is changed the tempo of all patterns in LMMS is changes. What we
> want is that only the tempo of the next patterns (not the previous),
> changes. I guess this is the same as a tempo map?

No... this is not true. There is no "tempo" for patterns, there's just
one tempo, which is the current tempo. When you play a song with tempo
automation, the tempo gets changed dynamically during playback.

A tempo map would take this singular tempo attribute and stretch it out
into a one-dimensional vector, so instead of one single tempo value
which changes on the fly, we have all the tempo values already known
throughout the song.



------------------------------------------------------------------------------
The best possible search technologies are now affordable for all companies.
Download your FREE open source Enterprise Search Engine today!
Our experts will assist you in its installation for $59/mo, no commitment.
Test it for FREE on our Cloud platform anytime!
http://pubads.g.doubleclick.net/gampad/clk?id=145328191&iu=/4140/ostg.clktrk
_______________________________________________
LMMS-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/lmms-devel

Reply via email to