Hydrogenaudio Forums

Hosted Forums => foobar2000 => Uploads - (fb2k) => Topic started by: grimes on 16 May, 2011, 04:29:31 AM

Title: foo_seek.dll
Post by: grimes on 16 May, 2011, 04:29:31 AM
Seek

foo_seek.dll

Works with CUI/DUI

actual version: 1.2

Features:

Quote
Mainmenu commands:
Menu | Playback | Seek Control | Preview length (6s-20s, Default)
Menu | Playback | Seek Control | Loop length (6s-20s, Default, End point mode, Set end point, Remove end point)
Menu | Playback | Seek Control | Preview (ON/OFF)
Menu | Playback | Seek Control | Loop (ON/OFF)
Menu | Playback | Seek Control | Rewind (5s-30s) (ON/OFF)
Menu | Playback | Seek Control | Fast Forward (5s-30s) (ON/OFF)

Advanced Preferences:
Preferences | Advanced | Playback | Seek | Automatic start/stop (ON/OFF)
Preferences | Advanced | Playback | Seek | FF/RW | FF/RW playback time [ms]
Preferences | Advanced | Playback | Seek | Loop | Loop length [ms]
Preferences | Advanced | Playback | Seek | Loop | Playback position loop
Preferences | Advanced | Playback | Seek | Loop | Reset next track to playback position loop (ON/OFF)
Preferences | Advanced | Playback | Seek | Preview | Playback position preview
Preferences | Advanced | Playback | Seek | Preview | Preview length [ms]
Preferences | Advanced | Playback | Seek | Preview | Reset next track to playback position preview (ON/OFF)
Preferences | Advanced | Playback | Seek | Preview | Skip shorter tracks in preview (ON/OFF)


[attachment=7874:foo_seek_1.2.zip][attachment=7875:foo_seek_1.2_src.zip]
Title: foo_seek.dll
Post by: grimes on 19 May, 2011, 04:41:06 PM
Seek 0.2


FIX: "Playback position" bug
FIX: Various bugs
CHG: Commands moved to submenu "Seek Control"


Title: foo_seek.dll
Post by: grimes on 20 May, 2011, 04:17:18 AM
Seek 0.3


FIX: Various bugs
Title: foo_seek.dll
Post by: grimes on 20 May, 2011, 08:31:44 AM
Seek 0.4


FIX: foobar2000 restart
CHG: individual Playback position variables for "preview" and "loop"


Title: foo_seek.dll
Post by: grimes on 21 May, 2011, 05:02:51 AM
Seek 0.5


FIX: Wrong preview playback position when position is greater than track length
CHG: 5x-60x -> 5s-30s
CHG: Default FF/RW playback time set to 2s (2000ms)


Title: foo_seek.dll
Post by: grimes on 22 May, 2011, 10:37:56 AM
Seek 0.6


ADD: Advanced Preferences option: Reset new track to playback position preview (for "Preview" only) (ON/OFF)
ADD: Advanced Preferences option: Automatic start/stop (ON/OFF)
Title: foo_seek.dll
Post by: grimes on 25 May, 2011, 11:52:29 AM
Seek 0.7

ADD: Advanced Preferences | Playback | Seek | Skip shorter tracks in preview (ON/OFF)

(OFF(Default): playing the end of shorter tracks)


Title: foo_seek.dll
Post by: grimes on 01 June, 2011, 12:23:46 PM
Seek 0.8


FIX: Loop at end of track
ADD: Preferences | Advanced | Playback | Seek | Loop | Reset next track to playback position loop (ON/OFF)
ADD: Menu | Playback | Seek Control | Preview length (6s-20s) (ON/OFF)
ADD: Menu | Playback | Seek Control | Loop length (6s-20s) (ON/OFF)
CHG: reorganisation of Advanced Preferences entries
Title: foo_seek.dll
Post by: grimes on 04 June, 2011, 06:43:39 AM
Seek 0.9

CHG: Preview stops now, if "stop after current" was enabled
CHG: Preview/Loop length radiobuttons
ADD: "Default" command for Preview/Loop length. "Default" takes value from Advanced Preferences "Preview/Loop length [ms]"

Title: foo_seek.dll
Post by: grimes on 23 July, 2011, 08:41:15 AM
Seek 1.0

ADD: New mode to set loop length manually:

commands



usage



--> endless loop between start and end point


download: see first post

Title: foo_seek.dll
Post by: JonSlaughter on 17 January, 2012, 01:49:05 AM
Great concept. I was looking for something just like this for foobar as I generally have to open up some other program to do it.

The main issues is that the "usage" is not user friendly/convenient. Is it not possible to assign hot keys to assign the loop endpoints and some hot key to toggle the loop playing????
Title: foo_seek.dll
Post by: grimes on 17 January, 2012, 06:05:51 AM
Every menu item could be assigned.

Maybe your keyboard shortcut conflicts with another one?
Title: foo_seek.dll
Post by: spockman on 26 January, 2012, 06:30:46 PM
Is it possible with this component to loop a 30 second (or 10 or 20 or whatever seconds) section in the middle of a song?
If so, how do I set the start and end points?
Regards,
Spockman.
Title: foo_seek.dll
Post by: grimes on 27 January, 2012, 05:36:28 AM
loop length is predefined for 6,8,10,12,14,16,18,20 seconds.
Other values can be set in Advanced Preferences.
Alternatively set endpoint mode, seek to start point in seekbar manually, wait for x seconds and set end point by shortcut.

Title: foo_seek.dll
Post by: grimes on 27 January, 2012, 09:12:07 AM
an example for first mode:

Title: foo_seek.dll
Post by: tums16 on 01 February, 2012, 01:01:38 AM
thank
Title: foo_seek.dll
Post by: Speech on 06 August, 2012, 12:29:25 PM
Is it possible to skip a part of an audio file, such as the first x seconds and the last y seconds? My podcasts contain advertisements at the beginning and at the end, but obviously they don't have the same length, so I can fix a specific moment when to skip only relative to the audio length minus y seconds.
Title: foo_seek.dll
Post by: grimes on 07 August, 2012, 02:13:18 AM
Not possible with foo_seek.
Why do you not split the audio files in (three) parts.
You can hear this way only the middle part.
On the other hand, foobar2000 is able to play the three files without gap.
Title: foo_seek.dll
Post by: q-stankovic on 07 August, 2012, 11:44:42 AM
foo_skip will allow to cut out a begiining and ending part out of a track.
Title: foo_seek.dll
Post by: booya on 28 December, 2012, 11:05:49 AM
I'm sorry, but I really don't understand fully how to use this loop option.

For example, I need to loop one track between 48 min and 59 min 45 sec. What should i do?

Enable end point mode
Start loop
Seek to start position of loop in seekbar
wait
(for what?)
Set end point of loop (with shortcut)

Is that possible to select a time w/o waiting? I want to open Foobar2000, start selected track, immediately select required time/segment and then I need to minimize application and forget about it. And if yes, what time in advanced option should I set (and whether I should do it)?

I tried but did not achieve the desired outcome.
Title: foo_seek.dll
Post by: grimes on 28 December, 2012, 12:56:42 PM
seek to 48 min and wait 11:45 and set end point.
It is an unusual long time for a loop, so this is not practicable.
Unusual loop length can be set in the advanced preferences
Title: foo_seek.dll
Post by: EpicForever on 28 May, 2013, 05:22:50 PM
This plugin needs serious documentation, there are several things that I don't understand.
1. What is "automatic start/stop" in advanced preferences?
2. Why this plugin doesn't work for tracks played from results of Media Library Search?
3. Why "Loop/reset next track to loop position" doesn't work as it should? I can't understand the dependency - sometimes all tracks are starting form time given in advanced preferences even if this ckeckbox is unchecked, sometimes thety don't even if it's checked.
Title: foo_seek.dll
Post by: grimes on 29 May, 2013, 03:32:53 AM
1. automatic start/stop: The loop starts with one click on main menu entry "loop" (otherwise two clicks: loop + play) (minor important option)

2. Can't reproduce.

3. I don't understand. Did you seek to another position and it is not reseted to advanced preferences value next cycle? Strange! Can't reproduce.
Title: foo_seek.dll
Post by: dfkt on 05 March, 2014, 11:01:40 AM
I'm probably misunderstanding the functionality of this component - but would it be possible with it to simply emulate the FFWD/REW behavior of a CD player or portable MP3 player? I.e. long-press/press&hold keyboard buttons for FFWD/REW, and resume normal playback when releasing buttons?

So far my trials & errors didn't yield any results in that direction.
Title: foo_seek.dll
Post by: mikk on 22 April, 2014, 04:15:40 PM
Hi!

Thanks for this component!

I have small problem with loop function A-B

I create shortcout, F11-Loop F12-Set End point
End Point mode enabled manually.

Play audio... if I want start point I press F11... and when I want end point, I press F12. After this, the A-B loop is work.

But, the problem, If I press pause under A-B loop, this is can't  works really, because after few times the play is start himself again...

Sorry my poor english.

ps.: my foobar is latest, 1.3.2
Title: foo_seek.dll
Post by: grimes on 24 April, 2014, 01:14:56 AM
Seek 1.2

FIX: Pause in loop fails


Thanks for reporting this bug.
Since there is no command to pause a timer, I stopped loop mode on playback pause.

See first post.
Title: foo_seek.dll
Post by: mikk on 24 April, 2014, 02:38:52 AM
Seek 1.2

FIX: Pause in loop fails


Thanks for reporting this bug.
Since there is no command to pause a timer, I stopped loop mode on playback pause.

See first post.


Hi!

Thanks for this quick repair!

But pasue function is needed for me. Can you make pause function of this component (via shortcout or any way)?

Thanks!
Title: foo_seek.dll
Post by: reselty on 26 July, 2014, 02:19:08 AM
Hi There -  & Thanks for this tool!

How can I activate/use the the seek length I define under :
>> Preferences | Advanced | Playback | Seek | Preview | Preview length [ms] <<

to define longer f.e. 60sec preview then 20 sec under
>> Playback | Seek Control | Loop length (6s-20s, Default, End point mode, Set end point, Remove end point)

b.t.w: my version (1.2)  does not show  "End point mode, Set end point, Remove end point"

Thanks again!
Title: foo_seek.dll
Post by: grimes on 26 July, 2014, 07:45:05 AM
The Preview length [ms] in Advanced Preferences is aktivated by Playback | Seek Control | Preview length | Default

Preview has no end pont mode (only loop)
Title: foo_seek.dll
Post by: reselty on 04 August, 2014, 05:11:41 AM
The Preview length [ms] in Advanced Preferences is aktivated by Playback | Seek Control | Preview length | Default

Preview has no end pont mode (only loop)



Thank you !!!
Title: Re: foo_seek.dll
Post by: sunday777 on 17 April, 2016, 12:05:45 PM
Dear author,
After spending 20 minutes on reading this thread, I still don't understand what those commands mean...
"Enable endpoint mode"? " I see these is "set endpoint"... But where is "set start point"? "Automatic start"?
I feel you make a powerful component but I am really confused...

In my opinion, there should be only 3 controls and that should be enough:
- Set Start point at current position
- Set End point at current position
- Toggle play the loop on\off (jump to start and repeat the loop when it's on. Walk over endpoint if it's off.)



Title: Re: foo_seek.dll
Post by: grimes on 24 April, 2016, 04:55:37 AM
3 controls are not nessesary.
Title: Re: foo_seek.dll
Post by: sunday777 on 27 April, 2016, 12:02:40 PM
Thank you!  I got it!

To anyone who is also confused like me, this is a brief of how to use this great component:
1. Open "Keyboard Shortcuts" in foobar2000's Preference.
2. Assign key1 for Playback / Seek Control / Loop
3. Assign key2 for Playback / Seek Control / Loop Length / Set end point
4. Play whatever you want, seek to or wait for where you like to start a loop. Press key1.
5. Seek to or wait for where you like to end the loop. Press key2.
6. Now you just make a loop!

I guess I still don't understand those advanced features. But knowing this is good enough to me to proceed my Japanese learning.

Thanks the author again for this component!
Title: Re: foo_seek.dll
Post by: renega on 24 May, 2016, 06:56:48 AM
It would be nice to have starting and en point times available in two variables for scripting purpose, for ex. exporting the loop to a file. Thanks for thinking a little to this possibility !
Title: Re: foo_seek.dll
Post by: Lee James on 11 October, 2016, 09:37:18 AM
Hello Grimes, thank you for this very useful plugin. It is just the A-B repeat function I want. To me, this is a really important function which I have used for years in other media players (eg. PotPlayer). As a musician, I use it to analyze very small portions of a piece of music, so I can hear notes, chords, harmonies, etc. I always thought it was strangely absent from Foobar, but now someone kindly told me about this plugin. So thank you very much for developing it :)

However, I have 2 issues I'd like to address...

1. The keys don't work for me
Firstly, I can't actually get the plugin to work. I followed Sunday's very helpful instructions which are worth repeating...

To anyone who is also confused like me, this is a brief of how to use this great component:
1. Open "Keyboard Shortcuts" in foobar2000's Preference.
2. Assign key1 for Playback / Seek Control / Loop
3. Assign key2 for Playback / Seek Control / Loop Length / Set end point
4. Play whatever you want, seek to or wait for where you like to start a loop. Press key1.
5. Seek to or wait for where you like to end the loop. Press key2.
6. Now you just make a loop!

However, no matter what functions I assign keys to, the keys seem to have no effect at all. If I assign the keys to anything else under "Playback" they work just fine, but if I assign them to anything under "Seek Control" they don't work. I don't suppose you would know why?

2. I would like "Toggle looping" and "Set start point" to be two different commands
You said earlier in this thread that there is no need for these two functions to have two separate controls, but I would have to respectfully disagree. All the other media players I've used with A-B Repeat have these two controls separate. Without two separate controls, it is much harder to make slight adjustments to the start and end point while it is looping - something I do a lot.

For example, imagine you are listening to a looped section of a track and you just want to make the start point slightly earlier or later. This is very easy if you can "set start point". Just hit the key at the new start point, and the start point is adjusted, with the end point being completely unaffected.

Or imagine you are listening to a looped section of a track, and you want to move the end point slightly later - in other media players this is simple: you just turn off looping, then when you get to where you want the end point to be, hit the end point key at the new desired end point. The end point is moved without affecting the start point.

Also, in my experience of using other media players, the key to set an end point usually also turns looping on. (If no start point has been set then it loops to the start of the track.)

So I would like to humbly suggest that, at least for some people, 3 controls are necessary:
1. Set start point
2. Set end point/activate looping
3. Toggle looping
Title: Re: foo_seek.dll
Post by: hans2017 on 01 December, 2017, 03:36:30 AM
1. Open "Keyboard Shortcuts" in foobar2000's Preference.
2. Assign key1 for Playback / Seek Control / Loop
3. Assign key2 for Playback / Seek Control / Loop Length / Set end point
4. Play whatever you want, seek to or wait for where you like to start a loop. Press key1.
5. Seek to or wait for where you like to end the loop. Press key2.
6. Now you just make a loop!

Sorry, I would like to point out that item 5 is incorrect. You can only wait and then set the end of loop, but you can not seek. In fact, the seeking shift the start of loop.