HydrogenAudio

Hosted Forums => foobar2000 => 3rd Party Plugins - (fb2k) => Topic started by: grimes on 2022-10-02 09:11:35

Title: [v2] Preview
Post by: grimes on 2022-10-02 09:11:35
32bit/64bit foo_preview 1.0

Plays first seconds of consecutive tracks.

Main Menu Command: Playback/Preview
Title: Re: [v2] Preview
Post by: grimes on 2022-10-05 13:35:40
32bit/64bit foo_preview 1.1
Title: Re: [v2] Preview
Post by: UELong on 2022-10-05 18:58:32
Is there a hotkey that can activate the preview function?
Title: Re: [v2] Preview
Post by: grimes on 2022-10-05 19:11:43
You have to add a shortcut: Preferences | Keyboard Shortcuts
Title: Re: [v2] Preview
Post by: grimes on 2022-10-06 09:29:41
32bit/64bit foo_preview 1.2
Title: Re: [v2] Preview
Post by: grimes on 2022-10-06 21:33:05
32bit/64bit foo_preview 1.3

Download: https://www.foobar2000.org/components/view/foo_preview
Title: Re: [v2] Preview
Post by: Wayne VanWeerthuizen on 2022-10-07 07:05:42
Is there a setting to have it preview from the middle of songs instead of just from the start?  Either by time, or by percentage of total track length? Also it would really be useful to me if the position could be randomized, as this would facilitate testing my knowledge of track titles - I wouldn't be hearing the same sample from each track all the time, when I repeat the playlist again in a random order.

Title: Re: [v2] Preview
Post by: grimes on 2022-10-07 17:06:31
32bit/64bit foo_preview 1.4 and newer

Download: https://www.foobar2000.org/components/view/foo_preview
Title: Re: [v2] Preview
Post by: Wayne VanWeerthuizen on 2022-10-08 10:45:09
Thank you, Grimes, for integrating my above suggestions in version 1.5. It appears to work well. Nice component.

Do you know a way to get the current status of the preview from elsewhere in Foobar2000, such as from a JavaScript panel or a title formatting string? I'd consider using this to display visually whether preview is currently on or off, and/or to show how much time is left in the preview of the current track.
Title: Re: [v2] Preview
Post by: grimes on 2022-10-09 06:26:18
Sorry, not possible.
Title: Re: [v2] Preview
Post by: Fabcore on 2023-04-25 20:03:09
Hey Grimes

I had been using your component foo_preview very often lately and is great, but i found some things that maybe you can use for the next upgrade

1. the internal timer must be per track
2. the internal timer must pause when pause (related with the above point)

suggestions:

1. Add a configurable % of ending file
2. Add the ability to bypass the preview feature on a configurable length of audio file.

Regards!
Title: Re: [v2] Preview
Post by: Fabcore on 2023-04-26 04:14:58
Another suggestion that came in my mind while i was doing things not related to this, is the time jump feature,
i mean:
Configure time jumps (in percents or Seconds) on the same previewing audio file
for example; Start at 23% to 36% then jumps to 60% to 70% and so on with many jumps as configured.

Hope you get the idea.

regards again
Title: Re: [v2] Preview
Post by: grimes on 2023-04-26 12:47:38
Preview 1.11 (https://www.foobar2000.org/components/view/foo_preview)

CHG: Track based timer
ADD: Pause preview
ADD: Bypass preview
FIX: Bypass
Title: Re: [v2] Preview
Post by: Fabcore on 2023-04-26 21:55:34
Thank you ! :D
Almost all done although:

1. A preview length in percent would be nice
2. Preview end in percent it would work in some situations so, nice to add.
3. The described jump mode also would be nice too

A bug:

The preview seems to fix to 3 seconds

This is my current config that i was using, only tweaked the new option (Bypass track length) to 30 seconds

Again thanks

Regards

Edit: grammar and added the second point.
Title: Re: [v2] Preview
Post by: grimes on 2023-04-26 23:23:49
Preview 1.22 (https://www.foobar2000.org/components/view/foo_preview)

FIX: Percent, Random
Further improvements
ADD: Preview length percent
ADD: Loop
Cleanup
Preview length limit
ADD: Seek callback
ADD: Preview length random
ADD: Preview end percent

Thanks for the feedback, bug reports are welcome.
Title: Re: [v2] Preview
Post by: Fabcore on 2023-04-27 21:55:43
Great!, waiting (take your time, is not so serious the "waiting"), for more features.
Regards
Title: Re: [v2] Preview
Post by: majkinetor on 2023-05-14 15:10:36
Adding multiple consecutive previews for single song would be great addition. So first preview from random position lasting 30s, then second one from later random position lasting another 30s. This could be great for longer and more dynamic albums.

Ofc your settings are still obayed, its just multiple times and plugin makes sure previews are sorted in time.

I envision this as single additional setting

- Number of single track previews: [ 2 ]
Title: Re: [v2] Preview
Post by: grimes on 2023-05-15 07:09:57
I want to keep the component as simple as possible.
Title: Re: [v2] Preview
Post by: Fabcore on 2023-05-27 04:58:06
Bug: the preview option 'Length in %' seems to do nothing, i have this config; what it does, is the preview 'start in %' but ignore the 'length in %' playing until the 'end in %', if i disable 'end in %' the length is now in seconds even if the checkbox is in %
Title: Re: [v2] Preview
Post by: grimes on 2023-05-27 06:34:09
Preview 1.24 (https://www.foobar2000.org/components/view/foo_preview)

Quote
FIX: %/Random preview length
Tweak
Title: Re: [v2] Preview
Post by: Paaufo on 2023-06-13 01:04:41
Thank you for your work. Could it be possible to make this component work with online radio streams? (Play x number of seconds and then skip.)

Cheers.
Title: Re: [v2] Preview
Post by: grimes on 2023-06-15 13:47:05
Interesting idea, but I currently don't know how to implement. Maybe I'll get an inspiration later.
Title: Re: [v2] Preview
Post by: fuffi on 2023-06-18 18:41:42
Hello grimes,

thank you for this very useful component and adding useful features!. It is very much appreceated !

Would it be possible to add an option to NOT start a song when clicking Main Menu Command: Playback/Preview (or a corresponding button via CUI) ?

I'd like to just enable or disable the preview from time to time, but not start a song when I enable the preview.




Title: Re: [v2] Preview
Post by: Kraeved on 2024-02-14 00:27:41
Is it possible to save an album preview (as FLAC, for example) using this plugin?