You are not logged in.

#1 2014-05-03 18:49:05

ap0calypse
Member
From: Austria
Registered: 2012-03-12
Posts: 54
Website

whistle - a minimalistic curses based audio player

hi guys,

I recently wrote a small mp3 player. Because I am more the commandline-guy, this player aims commandline-enthusiasts too. I wrote it because I pretty much disliked every other player out there (including cmus, although it was the best imho).

So, there is whistle now:

https://github.com/ap0calypse/whistle


And because no one likes to have it difficult, there is a PKGBUILD and an AUR-package:

https://aur.archlinux.org/packages/whistle-git/

How does it look?

Like this:

http://ap0calypse.agitatio.org/uni/screen_whistle.png


If anyone would like to test it, I would love to hear the reviews. smile

Thanks for reading!



-- mod edit: read the Forum Etiquette and only post thumbnails http://wiki.archlinux.org/index.php/For … s_and_Code [jwr] --

Last edited by ap0calypse (2014-07-08 11:04:48)


projects: whistle | bazinga
open minds, open sources, open future.

Offline

#2 2014-05-03 18:52:25

ioanm
Member
From: 127.0.0.1
Registered: 2014-05-03
Posts: 34
Website

Re: whistle - a minimalistic curses based audio player

Recommandation use source()


Arch Linux + i3wm (amd64)

Offline

#3 2014-05-03 18:53:35

ap0calypse
Member
From: Austria
Registered: 2012-03-12
Posts: 54
Website

Re: whistle - a minimalistic curses based audio player

You mean in the PKGBUILD? Sorry, I'm not that experienced in writing PKGBUILDs wink


projects: whistle | bazinga
open minds, open sources, open future.

Offline

#4 2014-05-03 18:56:35

ioanm
Member
From: 127.0.0.1
Registered: 2014-05-03
Posts: 34
Website

Re: whistle - a minimalistic curses based audio player

just upload <pkg name>-<your ver>.tar.gz to your git
and then go to github.com/<username>
click on the tar.gz file
and then right click copy link on the raw button
now paste that link in your source=()


Arch Linux + i3wm (amd64)

Offline

#5 2014-05-03 18:59:14

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,456
Website

Re: whistle - a minimalistic curses based audio player

There is no need for all that.  You *should* use the source variable, but you can keep this as a git package.  Just remove all the git cloning code from the build function.  This PKGBUILD seems to be based on the pre-4.0 template.  As of pacman 4.0 (or around there) makepkg can handle all the git footwork itself.  See the new PKGBUILD formats for a template.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#6 2014-05-03 19:05:01

ap0calypse
Member
From: Austria
Registered: 2012-03-12
Posts: 54
Website

Re: whistle - a minimalistic curses based audio player

Thanks, I used an old template from an old project smile I'll recycle the PKGBUILD.

Do you have a specific link?


projects: whistle | bazinga
open minds, open sources, open future.

Offline

#7 2014-05-03 19:06:04

ioanm
Member
From: 127.0.0.1
Registered: 2014-05-03
Posts: 34
Website

Re: whistle - a minimalistic curses based audio player

ap0calypse https://aur.archlinux.org/packages/sn/s … e/PKGBUILD you can use this as a template if you want
it uses source variable


Arch Linux + i3wm (amd64)

Offline

#8 2014-05-03 19:06:32

ap0calypse
Member
From: Austria
Registered: 2012-03-12
Posts: 54
Website

Re: whistle - a minimalistic curses based audio player

Thank you very much smile

UPDATE:

@ ioan: sorry, but do I have to upload the pkg to the repo all the time I push a commit? seems pretty annoying...

Last edited by ap0calypse (2014-05-03 19:09:17)


projects: whistle | bazinga
open minds, open sources, open future.

Offline

#9 2014-05-03 19:07:06

ioanm
Member
From: 127.0.0.1
Registered: 2014-05-03
Posts: 34
Website

Re: whistle - a minimalistic curses based audio player

Np don't forget to change the depends smile
Also give me a vote smile
https://aur.archlinux.org/packages/snakegame/

Last edited by ioanm (2014-05-03 19:08:45)


Arch Linux + i3wm (amd64)

Offline

#10 2014-05-03 19:29:15

progandy
Member
Registered: 2012-05-17
Posts: 5,317

Re: whistle - a minimalistic curses based audio player

ap0calypse wrote:

Thanks, I used an old template from an old project smile I'll recycle the PKGBUILD.

Do you have a specific link?

For an example git PKGBUILD look here: https://wiki.archlinux.org/index.php/VC … Guidelines

Last edited by progandy (2014-05-03 19:32:08)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' | alias ENGLISH='LANG=C.UTF-8 ' |

Offline

#11 2014-05-03 19:38:00

ap0calypse
Member
From: Austria
Registered: 2012-03-12
Posts: 54
Website

Re: whistle - a minimalistic curses based audio player

thanks progandy!

I created a PKGBUILD based on that template. I'll upload it in a minute smile

UPDATE:

Duh! .... didn't work ... I guess I really suck at making PKGBUILDs tongue ....


UPDATE 2:
Thanks folks. I have it now wink

Last edited by ap0calypse (2014-05-03 19:50:25)


projects: whistle | bazinga
open minds, open sources, open future.

Offline

#12 2014-05-04 18:10:40

ap0calypse
Member
From: Austria
Registered: 2012-03-12
Posts: 54
Website

Re: whistle - a minimalistic curses based audio player

Just pushed out version 0.2 with some bugfixes wink


projects: whistle | bazinga
open minds, open sources, open future.

Offline

#13 2014-05-05 18:30:41

ap0calypse
Member
From: Austria
Registered: 2012-03-12
Posts: 54
Website

Re: whistle - a minimalistic curses based audio player

just wanted to tell you that I just added an equalizer to whistle.

Have fun!


projects: whistle | bazinga
open minds, open sources, open future.

Offline

#14 2014-06-26 12:22:16

ap0calypse
Member
From: Austria
Registered: 2012-03-12
Posts: 54
Website

Re: whistle - a minimalistic curses based audio player

Just wanted to inform you, that I pushed some updates and fixes to the github repo.

Unfortunately, you have to remake your playlists if you make an update. That's because of the remake of the data structure.

rm ~/.whistle.dat

After that, please add your music directories again.

The updated AUR package can be found here:
https://aur.archlinux.org/packages/whistle-git/


projects: whistle | bazinga
open minds, open sources, open future.

Offline

#15 2014-07-01 15:51:44

smiszym
Member
Registered: 2014-04-04
Posts: 14

Re: whistle - a minimalistic curses based audio player

Nice app smile

Can I filter tracks and play only one band, for example? Without manually creating a playlist, just based on mp3 tags?

Offline

#16 2014-07-02 11:54:56

ap0calypse
Member
From: Austria
Registered: 2012-03-12
Posts: 54
Website

Re: whistle - a minimalistic curses based audio player

hi smiszym smile ,

thanks for testing!

currently, there is no such feature. but maybe I implement an additional toggle-switch, which let's you choose between 'toggle shuffle for all' and 'toggle shuffle for $ARTIST'. Would that be in your interest?

At this point, there is only a kind-of-boolean switch, where 0 represents no shuffle and 1 meaning to shuffle the tracks. Maybe if I implement '2' as 'shuffle between same artist', it should work.


projects: whistle | bazinga
open minds, open sources, open future.

Offline

#17 2014-07-03 09:26:22

smiszym
Member
Registered: 2014-04-04
Posts: 14

Re: whistle - a minimalistic curses based audio player

Yes, that would be great. I think this is the only missing feature for me at the time. I use shuflle almost always, and it is sometimes good to stick to one artist a day smile

I also noticed that the info "( S: $SHUFFLE )" does not change immediately after pressing t, but when starting playing next song.

Oh, and as a bonus, could Whistle remember shuffle state between runs? Not so much important, however wink

Keep up good work and let us know about updates!

Offline

#18 2014-07-03 12:04:13

kiiroitori
Member
Registered: 2013-11-06
Posts: 8

Re: whistle - a minimalistic curses based audio player

Hi ap0calypse,

I am struggling to find a simple player too and your program looks very nice. I just need a software that can play mp3 and flac formats and sort files based on embedded ratings and I am wondering if you intend to add such features or not. By "sort files based on ratings" I mean that the play order follows the rating so if I want to hear some Oscar Peterson for example, I browse to the folder, press play and the songs I like the least will be played last.

In any cases, thanks for sharing your program!

Offline

#19 2014-07-03 17:42:52

ap0calypse
Member
From: Austria
Registered: 2012-03-12
Posts: 54
Website

Re: whistle - a minimalistic curses based audio player

hi guys smile another day with MANY updates! smile

@smiszym: I know about that. I will tell you about the reason, it's a little bit tricky wink :

my girllfriend uses this player too, and she has a collection of more than 6000 mp3s which takes FOREVER to scan/rescan. It also takes a bit of time to even DISPLAY the contents without scanning on the screen, so if I update the playlist->title, I have to redraw the list. Unless I find a solution for that, we have to stick with this 'shuffle-shows-after-next' issue wink But I'm working on it smile Remembering the shuffle state would be easy, but I'm not sure if all users would want that wink

@kiiroitori:

thanks smile
You maybe want to have a look at the latest version. Unfortunately, currently only ogg and mp3 are supported. Flac will come, promised (others will come as well) smile
Your idea is interesting, but do mp3 files have such a tag-field? The obvious other solution would be to save the 'ratings' as a 1-5 value for every song. This is very possible and would be a nice feature. This way I wouldn't have to read/write more meta-data than needed.

Anyway: Thanks again. Here a screenshot of the current state:
Screenshot smile

Last edited by ap0calypse (2014-07-03 18:11:45)


projects: whistle | bazinga
open minds, open sources, open future.

Offline

#20 2014-07-03 17:49:00

HalosGhost
Forum Fellow
From: Twin Cities, MN
Registered: 2012-06-22
Posts: 2,097
Website

Re: whistle - a minimalistic curses based audio player

ap0calypse wrote:

snip

jasonwryan wrote:

-- mod edit: read the Forum Etiquette and only post thumbnails http://wiki.archlinux.org/index.php/For … s_and_Code --

All the best,

-HG

Offline

#21 2014-07-03 17:53:41

ap0calypse
Member
From: Austria
Registered: 2012-03-12
Posts: 54
Website

Re: whistle - a minimalistic curses based audio player

sorry, replaced it with a simple link smile


projects: whistle | bazinga
open minds, open sources, open future.

Offline

#22 2014-07-04 12:24:36

ap0calypse
Member
From: Austria
Registered: 2012-03-12
Posts: 54
Website

Re: whistle - a minimalistic curses based audio player

UPDATE: flac now supported! smile


projects: whistle | bazinga
open minds, open sources, open future.

Offline

#23 2014-07-07 11:08:24

kiiroitori
Member
Registered: 2013-11-06
Posts: 8

Re: whistle - a minimalistic curses based audio player

ap0calypse wrote:

Your idea is interesting, but do mp3 files have such a tag-field? The obvious other solution would be to save the 'ratings' as a 1-5 value for every song. This is very possible and would be a nice feature. This way I wouldn't have to read/write more meta-data than needed.

I think the ratings are in id3v2 tags.

I see you added FLAC support, great! Thank you!

Offline

#24 2014-07-07 11:50:06

progandy
Member
Registered: 2012-05-17
Posts: 5,317

Re: whistle - a minimalistic curses based audio player

kiiroitori wrote:
ap0calypse wrote:

Your idea is interesting, but do mp3 files have such a tag-field? The obvious other solution would be to save the 'ratings' as a 1-5 value for every song. This is very possible and would be a nice feature. This way I wouldn't have to read/write more meta-data than needed.

I think the ratings are in id3v2 tags.

Here: http://id3.org/id3v2.3.0#Popularimeter
If you want to have 5 ratings, maybe map it this way: 0 is undefined, 1-51 is 1 star, 52-102 is 2 star, 103-153 is 3 star, 154-204 is 4 star, 205-255 is 5 star.
stars = (rating>0)*(rating+25)/51
rating = stars*51-25

Last edited by progandy (2014-07-07 12:04:24)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' | alias ENGLISH='LANG=C.UTF-8 ' |

Offline

#25 2014-07-07 16:08:14

ap0calypse
Member
From: Austria
Registered: 2012-03-12
Posts: 54
Website

Re: whistle - a minimalistic curses based audio player

hi again smile

ok, well than mp3 ratings could be fetched from id3v2 tags, but what about ratings in ogg-vobis? flac? are there any?

I just think it would be easier to use a simplified own way to store this metadata just for whistle only.
I don't want to mess with the tags too much, maybe some day a random player crashes because of my adaptions wink

There is a lot to do .... let's go to work smile


projects: whistle | bazinga
open minds, open sources, open future.

Offline

Board footer

Powered by FluxBB