gmusicbrowser Forum

Main board => Questions => Topic started by: p300 on June 19, 2011, 07:23:11

Title: Pre_Listening a Song
Post by: p300 on June 19, 2011, 07:23:11
Hi

I would like to browse the library and prelisten a song eg. in DeaDBeeF in order to decide whether i really wanna add it to the playlist or not.

The playlist is sending to the main speakers via the USB sound interface.
DeaDBeeF is utilizing the internal sound card.

How to achieve this? Thx.
Title: Re: Pre_Listening a Song
Post by: Quentin Sculo on June 19, 2011, 13:02:12
It's not possible currently, never thought about it, I guess it's a good candidate for a plugin.
The closest you can do is by using a function of the export plugin, that allows you to add a entry in the song context menu to execute a custom command. That way you could listen to the song in another player...
Title: Re:Pre_Listening a Song
Post by: p300 on June 19, 2011, 16:55:33
Thx. - i just don't get it ... %f starts and adds to deadbeef. But the dialogue window in gmb stays open as long as deadbeef is playing making the ui unusable. I need to close deadbeef in order to make the dialogue in mpd to go away...
Title: Re: Pre_Listening a Song
Post by: Quentin Sculo on June 19, 2011, 21:27:14
Yes, when not using $files, it launch one command by selected file, in order to not make them run all at the same time, it doesn't use a fork, but that is of course far from perfect as you have seen. I will fix it, in the meantime, either use $files if you can (it's the same if you only use it on one file at a time) or run a small shell file that will run the command with "&" at the end and thus return immediately.
thanks for reporting this.
Title: Re:Pre_Listening a Song
Post by: p300 on June 21, 2011, 09:38:58
@quentin

Thx. - now it behaves exactly like i want it to ..
I've added this into the export dialogue:

deadbeef $files &

DeaDBeeF comes up playing one or more selected files via the internal soundcard on my headphones.
Title: Re: [SOLVED] Pre_Listening a Song
Post by: p300 on June 27, 2015, 18:35:21
Uups - i am running a fresh install of 1.14 today and the export command isn't working anymore ... i guess i forgot the changed syntax ... can u help?
Title: Re: [SOLVED] Pre_Listening a Song
Post by: Quentin Sculo on July 03, 2015, 22:53:09
Yes I've made some changes to the way system commands are executed.
Try
deadbeef $files
without the "&", I think it should work.
Title: Re: [SOLVED] Pre_Listening a Song
Post by: p300 on July 04, 2015, 15:33:22
Hi Quentin

Thx. for your reply. Now it's working fine again. And i made a mistake by myself. In order to launch DeaDBeeF from the command line i need to add the full path to the executable.

BTW: Just to give you some feedback. I have used your latest gmb on a lenovo T510 (8gb) on top of AV Linux 6.0.4 for 14 hours of continous operation with a music database of appr. 470.0000 songs sitting on an external 3TB USB harddisk. In this library i have many,, many duplicates and during this gig i did a lot searching and arranging songs. I did not have a single hickup and/or dropout in jack with a latency of 17.4ms which is good enough for me. Thank you again for this wonderful piece of software.

Now the preview is working again AND if crossfade is added to the feature list i would be delighted! On a song change i usually have a too much silence which is not nice if you play to the public.

And - is there a way (filter) to re-find & select the songs played during the latest gig for future reference? The library is new and so i did a custom filter with a playcount =1. In order to find these songs again at a later stage, when they have been played more than one time, i did a "save current list as". Will these files now be selectable forever? How can i add/remove files from that list? I don't wanna remove them from the library - only from that list....  will "edit list" do this job?

Thx.
Title: Re: Pre_Listening a Song
Post by: Quentin Sculo on July 12, 2015, 15:17:48
QuoteAnd - is there a way (filter) to re-find & select the songs played during the latest gig for future reference? The library is new and so i did a custom filter with a playcount =1. In order to find these songs again at a later stage, when they have been played more than one time, i did a "save current list as". Will these files now be selectable forever? How can i add/remove files from that list? I don't wanna remove them from the library - only from that list....  will "edit list" do this job?

You can create a filter that shows all the songs that have been played during a specific period (unless you have disabled the Play_history field). But to get the exact order, it is only possible by using the lastplay field, which of course only works if they haven't been played since. Using the play_history field to sort them as you want even if they have been played after would be possible, but would require a way for the user to specify the time period, which is not simple, so I'm not sure I'll implement that.

Anyway, you can filter the songs that were played that time by writing something like "played:2015-07-11-12:00..2015-07-11-18:00" into the search field. (played is an alias for playhistory, there are a few date/time formats that are understood, but I have to add an help dialog to the search field that describes this).
Or you can do that via the gui : click on the left icon in the search bar, choose adv. search, choose play_history and then choose the start and end time.

To keep the order intact, you should put them in a static list, as you did with "save current list as". Make sure that list is in the proper order in the "edit list" dialog, where you can add/remove/move songs by drag and drop as you want. That list should be kept intact forever, but to be sure you can export it to a m3u file.
Title: Re: Pre_Listening a Song
Post by: p300 on July 19, 2015, 09:46:09
Hi Quentin

Thank you so much for your helpful advise! I'll follow accordingly.