Author Topic: Pre_Listening a Song  (Read 5007 times)

p300

  • Newbie
  • *
  • Posts: 18
    • View Profile
Pre_Listening a Song
« on: June 19, 2011, 12: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.
« Last Edit: July 04, 2015, 20:33:56 by p300 »

Quentin Sculo

  • Administrator
  • Hero Member
  • *****
  • Posts: 1082
    • View Profile
Re: Pre_Listening a Song
« Reply #1 on: June 19, 2011, 18: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...

p300

  • Newbie
  • *
  • Posts: 18
    • View Profile
Re:Pre_Listening a Song
« Reply #2 on: June 19, 2011, 21: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...

Quentin Sculo

  • Administrator
  • Hero Member
  • *****
  • Posts: 1082
    • View Profile
Re: Pre_Listening a Song
« Reply #3 on: June 20, 2011, 02: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.

p300

  • Newbie
  • *
  • Posts: 18
    • View Profile
Re:Pre_Listening a Song
« Reply #4 on: June 21, 2011, 14: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.
« Last Edit: June 29, 2011, 11:21:41 by p300 »

p300

  • Newbie
  • *
  • Posts: 18
    • View Profile
Re: [SOLVED] Pre_Listening a Song
« Reply #5 on: June 27, 2015, 23: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?

Quentin Sculo

  • Administrator
  • Hero Member
  • *****
  • Posts: 1082
    • View Profile
Re: [SOLVED] Pre_Listening a Song
« Reply #6 on: July 04, 2015, 03:53:09 »
Yes I've made some changes to the way system commands are executed.
Try
Code: [Select]
deadbeef $fileswithout the "&", I think it should work.

p300

  • Newbie
  • *
  • Posts: 18
    • View Profile
Re: [SOLVED] Pre_Listening a Song
« Reply #7 on: July 04, 2015, 20: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.
« Last Edit: July 04, 2015, 21:22:56 by p300 »

Quentin Sculo

  • Administrator
  • Hero Member
  • *****
  • Posts: 1082
    • View Profile
Re: Pre_Listening a Song
« Reply #8 on: July 12, 2015, 20:17:48 »
Quote
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?

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.

p300

  • Newbie
  • *
  • Posts: 18
    • View Profile
Re: Pre_Listening a Song
« Reply #9 on: July 19, 2015, 14:46:09 »
Hi Quentin

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