Active Topics

 


Reply
Thread Tools
Posts: 637 | Thanked: 445 times | Joined on Dec 2009 @ Kaliningrad, Russia
#21
@auouymous
Oh the file manager you describe will make my very happy!

@Addison
Thank you! First two screenshots looks very nice. But I already made something not so difficult... see my post above

I never tried Xmms-ctrl, but I will, I promise! Thanks!
 
Addison's Avatar
Posts: 3,811 | Thanked: 1,151 times | Joined on Oct 2007 @ East Lansing, MI
#22
I usually have Xmms minimized and off the screen 99% of the time since it always has the highest desktop priority and gets in the way of everything.

You just introduced me to xmms-ctrl the other day so I don't know what all commands and features this supports.

I was just thinking of a full screen GUI, and when clicking on a certain area, this would send a specific xmms-ctrl command.

To me, this might be the very simple way to go.
 
Posts: 637 | Thanked: 445 times | Joined on Dec 2009 @ Kaliningrad, Russia
#23
I was just thinking of a full screen GUI, and when clicking on a certain area, this would send a specific xmms-ctrl command.
If I understand you correctly — Quasar can do it.

By the way, what I have to improve on my draft for player on previous page?
 
Addison's Avatar
Posts: 3,811 | Thanked: 1,151 times | Joined on Oct 2007 @ East Lansing, MI
#24
Okay. Here we go.

Having a nice front end for xmmsctrl could turn out to be the best way to go that's easy enough to finish in creating an awesome release.


'xmmsctrl' is a simple tool designed to be used at the shell level,
typically in a small shell script associated to a keyboard shortcut. There
are 4 different command types:
- simple commands, e.g. "xmmsctrl play", which perform a simple task,
- commands with a flag argument, e.g. "xmmsctrl main 1", which set
a particular state,
- condition testing, e.g. "xmmsctrl playing", which can be used in
if statements in shells. Something to notice: this was designed to be
used simply, which is, directly in if statements: if <command>; then
<command>; else <command>; fi. There you put directly "xmmsctrl playing"
to test if xmms is playing. Notice how the if statement works: if the
command succeeds, it returns a 0, which means OK, otherwise it returns
an error code,
- more specific commands with particular arguments.

The simple commands are:
launch : launch a xmms instance if none is running
not : negate the next condition test
clear : clear the play list.
cur : print the current mp3 song file.
eject : open xmms "Load file(s)" dialog window.
getlength : print the length of the play list.
getpos : print the current mp3 song position in the play list.
gettime : print the current song's playback time in seconds.
getvol : print the master volume value.
help : print this help message.
next : xmms next song command, go to the next song.
pause : xmms pause command, pause the playing song.
play : xmms play command, play the current song.
playlist : print the play list songs.
playfiles : print the play list files.
pref : open xmms preference window (as Ctrl-P).
prev : xmms previous song command, go to the previous song.
previous : go to the previous song and wrap round to last if position is first.
remove : xmms removes mp3 currently playing from playlist.
repeat : toggle xmms repeat flag.
shuffle : toggle xmms shuffle flag.
stop : xmms stop command, stop playing.
title : print the current mp3 song title.
uniq : remove duplicate files from the playlist.
quit : terminate xmms.
--help : print this help message.

The flag setting commands are used with 0 or 1:
equalizer : hide/show xmms equalizer window.
main : hide/show xmms main window.
play_list : hide/show xmms playing list window.

The condition testing commands are:
paused : returns OK if xmms is paused.
playing : returns OK if xmms is playing a song.
is_equalizer : returns OK if xmms has its equalizer window open.
is_main : returns OK if xmms has its main window open.
is_play_list : returns OK if xmms has its playing list window open.
is_stream : returns OK if xmms is playing a stream (http://somewhere).
running : returns OK if xmms is running.

The other specific commands are:
session number : use the session number 'number', xmmsctrl looks
automatically for the first working session.

dir <name> : clear the play list and load the directory/file
<name> as the play list. This works with devices
like /dev/cdrom to handle music CDs.

time [+|-|/]seconds :
seconds : set the playback time to seconds,
+seconds : advance the playback by seconds,
-seconds : rewind the playback by seconds,
/seconds : set the playback time to seconds from the end
of the song.
Examples : xmmsctrl time 30, xmmsctrl time +10.

track <n> : set the n'th track in the play list as the current track.
track last : set the last track in the play list as the current track.

vol [+|-]percent, with the following effects
percent : set the volume to percent,
+percent : increase the volume with percent,
-percent : decrease the volume with percent.
Examples : xmmsctrl vol 40, xmmsctrl vol +5, xmmsctrl vol -5.

print <string> : general formatted print, similar to printf. The codes are:
%n : new line,
%t : tab,
%F : current filename,
%T : current title,
%P : current position,
%s : playback time in sec,
%m : playback time in min:sec,
%S : song length in sec,
%M : song length in min:sec,
%v : master volume,
%l : playlist length,
%p : playback time in percent,
%(x): where x is a decimal number, evalutation string x depending if the current
printed song == (eq) or != (neq) the currently played song (see playlist2html.sh).
In addition, if the code is preceded by a number (say i), then the song i is
taken instead of the current one. If * is used then print evaluates on all the
songs. Examples: "%*P: %*T (%*M)%n" prints the whole playlist,
"%T (%m:%M)%n" prints only the current song, and "%3F%n" prints the 3rd file.

eq : add evaluation string for the case treated song == current played song.
neq : add evaluation string for the case treated song != current played song.

+file <file> : add the file/directory to the playlist without clearing the playlist.
You can use 'xmmsctrl +file something uniq' or 'xmmsctrl +file BEGIN dir1 dir2 END uniq' for
a cleaner result.

-file <file> : remove the file/directory from the playlist. You can use
'xmmsctrl uniq -file something' for a cleaner result.

Except for 'session', these command now support a
batch mode. You can give a list of arguments beginning
with BEGIN and ending with END, e.g.,
xmmsctrl +file BEGIN dir1 dir2 song1 song2 END

Examples of shell scripts to define simple functions:
Play/Stop :
sh -c "if xmmsctrl playing;\
then xmmsctrl stop;\
else xmmsctrl play; fi"
Play/Pause :
sh -c "if xmmsctrl playing;\
then xmmsctrl pause;\
else xmmsctrl play; fi"
(with xmmsctrl in your path). See more examples in the bindings
for twm in the distribution.
 
Posts: 875 | Thanked: 918 times | Joined on Sep 2010
#25
Originally Posted by Kroll View Post
I took my favorite things from my favorite applications and put it together.
Looks good. Is that fullscreen mode with the red X? So where is the link to download the program?


Originally Posted by Kroll View Post
By the way, What about Simp? Simple Audio Player.
or SiMP - Simple Music Player


Originally Posted by Kroll View Post
Oh the file manager you describe will make my very happy!
I need to finish a couple things in ASUI and then I'm going to start on the file manager. I've been designed it for the last few weeks.



Originally Posted by Addison View Post
I was just thinking of a full screen GUI, and when clicking on a certain area, this would send a specific xmms-ctrl command.
That is how the wrapper would work if we could get xmms to run without a window, not just minimized. Although you would need to launch xmms to set it up and do any advanced stuff. It would still work if we can't remove the window, there would just be that ugly blank window in telescope.

Would be better to use gstreamer or mplayer to remove the dependancy on xmms and then everything could be handled inside the app without going over to xmms for settings.

BTW, the next release of ASUI will have launch actions so the xmms profile can have something like "launch xmmsctrl launch;xmmsctrl play;xmmsctrl play_list" and when you enter audio lock mode it will execute the launch command. And that command would launch xmms if it wasn't already running, start playing and open the playlist window.

@ addison
You could've just posted a link to the man page (which I've already seen) instead of pasting the entire thing here.
 

The Following 3 Users Say Thank You to auouymous For This Useful Post:
Posts: 637 | Thanked: 445 times | Joined on Dec 2009 @ Kaliningrad, Russia
#26
Looks good. Is that fullscreen mode with the red X? So where is the link to download the program?
Yes it is. I'll put a link to download here as soon as somebody write a code, test it and make a deb
or SiMP - Simple Music Player
Yep. I meant this
 
Posts: 637 | Thanked: 445 times | Joined on Dec 2009 @ Kaliningrad, Russia
#27
Just a few more drafts






If you like it, I can make demo of settings page, playlists, etc.

Last edited by Kroll; 2011-09-19 at 10:56.
 

The Following 2 Users Say Thank You to Kroll For This Useful Post:
Posts: 336 | Thanked: 47 times | Joined on Jul 2008
#28
Originally Posted by Kroll View Post
Just a few more drafts






If you like it, I can make demo of settings page, playlists, etc.
kroll thats looks good
 

The Following User Says Thank You to yukop4 For This Useful Post:
Addison's Avatar
Posts: 3,811 | Thanked: 1,151 times | Joined on Oct 2007 @ East Lansing, MI
#29
It's very lovely.
 

The Following User Says Thank You to Addison For This Useful Post:
Posts: 637 | Thanked: 445 times | Joined on Dec 2009 @ Kaliningrad, Russia
#30
Thanks folks!
I forgot to change playlists icon on one screenshot, so I updated my post.

I think that Title gonna be a button too. Tap it and you will see details: Album, year, genre, .mp3/flack/wav/ogg, mHz, stereo/mono, delete from hard disk button, delete from playlist button.

In setings menu will go shuffle, repeat, fullscreen (if somebody don't like alltime fullscreen mode), font size, hardware keys.


Guys, I can make this drafts all day long as many as you want, but this is only interface. We need a programmer to make the application.

And we have to decide what engine to use (mplayer or what?). I would like to use dsp cuz as far as I know it use much less energy than mplayer...
 
Reply


 
Forum Jump


All times are GMT. The time now is 23:30.