Author Topic: Timers  (Read 5015 times)

Offline Sam_Zen

  • Extreme artist
  • *****
  • Posts: 3,689
    • http://www.xs4all.nl/~samzen/
Timers
« on: June 04, 2009, 01:10:21 »
It has been touched before I suppose, so I bump in about the time indicator at the right of the status bar.

It starts running as soon as playback starts. So far so good. Indicating the time position in the song.

But then, if I make a jump in the patternrow during playback, back or forth, counting just continues..
After such, this function becomes almost useless. Relative time position is gone.

As a sub-item : when playing back, it's convenient to see the total song time next to the playing time.
Now, one has to start the calculation about the Estimate Song Length.

Why not calculating this anyway after opening a file, and display the value aside of the time indicator all the way ?
0.618033988

Offline Saga Musix

  • OpenMPT Developers
  • *****
  • Posts: 6,680
  • aka Jojo
    • Download music, samples, VST plugins: Saga Musix Website
  • Operating System: Windows 10 x64
Timers
« Reply #1 on: June 04, 2009, 10:40:57 »
This is a very tricky request, which can only be solved to a certain degree. For example, if your module has subtunes which normally never get played, it is (currently) impossible to calculate the current position in seconds. However, this might be possible for skipping around in the main tune. I'll look into it.
» No support, bug reports, feature requests via private messages - they will not be answered. Use the forums and the issue tracker so that everyone can benefit from your post.

Offline Harbinger

  • Extreme artist
  • *****
  • Posts: 1,141
  • Gender: Male
  • Operating System: Windows XP
Timers
« Reply #2 on: June 04, 2009, 22:24:55 »
Not only that, but the timer also turns on when you play a note on a VSTi and continues to run even as you're working in the pattern.

I'd also like to add to Sam_Zen's request, if i may, that after MPT plays a whole song, the time it took still shows, instead of reverting back to 0:00 after the song ends. :wink:

Offline Sam_Zen

  • Extreme artist
  • *****
  • Posts: 3,689
    • http://www.xs4all.nl/~samzen/
Timers
« Reply #3 on: June 04, 2009, 22:35:47 »
I'm aware of the trickyness of such a request. Many unsuspected variables involved.

It could anyway be easier, if not the song length, but the pattern length would be calculated.
Of course inside speed settings could change, but most of the patterns have a continuous clock-time.
So it will always stay an estimation. But even raw will help.

I was lately using OMPT just to playback some tracks from other authors, so no editing involved.
And it is then convenient to see the total song time next to the actual moment, as a reference for comment.
0.618033988

Offline Saga Musix

  • OpenMPT Developers
  • *****
  • Posts: 6,680
  • aka Jojo
    • Download music, samples, VST plugins: Saga Musix Website
  • Operating System: Windows 10 x64
Timers
« Reply #4 on: June 05, 2009, 11:16:28 »
I see you guys are only thinking of "convenient" mods, but f.e. a pattern length estimation is totally worthless with mods that jump around in a pattern (e.g. playing it backwards).
Setting the timer when you jump to a position that is in the first subtune works now btw, I don't know if I can do more about that.
» No support, bug reports, feature requests via private messages - they will not be answered. Use the forums and the issue tracker so that everyone can benefit from your post.

Offline Sam_Zen

  • Extreme artist
  • *****
  • Posts: 3,689
    • http://www.xs4all.nl/~samzen/
Timers
« Reply #5 on: June 05, 2009, 22:01:20 »
I understand. Not only jumps in the patternrow are at stake, but also inside a single pattern.
Not only changing speed codes are possible, but also position jumps inside the pattern.

So what's left in this request anyway is the showing of the estimated song length on the right of the status bar.
0.618033988

Offline g

  • Workaholic artist
  • ***
  • Posts: 280
Timers
« Reply #6 on: June 05, 2009, 22:10:08 »
Just make clear it's an estimation. I don't think those inclined to tracking backwards would mind, knowing the exact time for a row is mainly nice for those who need to sync with something. Perhaps the display or function of the timer could be configurable?

Offline Harbinger

  • Extreme artist
  • *****
  • Posts: 1,141
  • Gender: Male
  • Operating System: Windows XP
Timers
« Reply #7 on: June 06, 2009, 05:30:17 »
Forgive me, but i'm not sure i understand the difficulty. (I may be thinking of another issue entirely.)

Can't the timer just start when the song starts, and stop when it ends, no matter where it jumps to? I think i'm missing a vital piece of information. :?

Offline Saga Musix

  • OpenMPT Developers
  • *****
  • Posts: 6,680
  • aka Jojo
    • Download music, samples, VST plugins: Saga Musix Website
  • Operating System: Windows 10 x64
Timers
« Reply #8 on: June 06, 2009, 09:42:59 »
That's what it does now. Have you ever used the pattern sequence, i.e. jumped to a different patternt while the track was playing?
» No support, bug reports, feature requests via private messages - they will not be answered. Use the forums and the issue tracker so that everyone can benefit from your post.

Offline Sam_Zen

  • Extreme artist
  • *****
  • Posts: 3,689
    • http://www.xs4all.nl/~samzen/
Timers
« Reply #9 on: June 06, 2009, 23:01:14 »
Jojo's point. Illustration :
1 - Open a module file. push Play button. Timer starts running.
2 - At 0:00:12 press the Pause button. The timecounter stops properly, as it should.
3 - Now jump 5 patterns ahead in the patternrow, and press Play again. The counter will continue from the pause-position. So 0:00:13 ..
4 - This makes the time-indicator almost useless in the process. No relevance whatsoever. When was this detuned note ?

This is about continuing playing from a certain position, and calculating that moment considering the total time.
OMPT has two buttons for playing. One from the start, and one from the cursor position.
These two commands carry different variables, which are maybe of use in the timer-calculation.
0.618033988

Offline Harbinger

  • Extreme artist
  • *****
  • Posts: 1,141
  • Gender: Male
  • Operating System: Windows XP
Timers
« Reply #10 on: June 06, 2009, 23:39:39 »
Like i said, i WAS missing a vital piece of info -- "MANUAL" pattern jumping. :P  Now it all makes sense!

Yes, that would be helpful. It would help to know where in the song we're editing (time-wise). But i must say that's relatively minor, at least for me. 8)

Offline Saga Musix

  • OpenMPT Developers
  • *****
  • Posts: 6,680
  • aka Jojo
    • Download music, samples, VST plugins: Saga Musix Website
  • Operating System: Windows 10 x64
Timers
« Reply #11 on: September 22, 2009, 21:34:16 »
Ok, feature implemented in the new test version. If anything is going wrong, please tell us to re-open this request.

Don't forget to check the "position aware timer" option in the setup dialog.
» No support, bug reports, feature requests via private messages - they will not be answered. Use the forums and the issue tracker so that everyone can benefit from your post.