Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Rockbox Ports are now being developed for various digital audio players!

+  Rockbox Technical Forums
|-+  Rockbox General
| |-+  Rockbox General Discussion
| | |-+  Tagnavi being silly
« previous next »
  • Print
Pages: [1]

Author Topic: Tagnavi being silly  (Read 3066 times)

Offline Toxikator

  • Member
  • *
  • Posts: 78
  • Superior Sound (inferior slogan)
    • Big Black Nothing
Tagnavi being silly
« on: April 04, 2007, 01:51:35 PM »
this is more a curious question than a real problem, so don't worry too much about it...

What I'll sometimes do is set Rockbox to shuffle all the songs on my iPod (5G, in case it matters later) by turning on "shuffle", selecting the database's "tracks" view, and choosing a song... from there it builds a playlist of all my songs.

Over time, I started putting on more audiobooks, comedy, et al.. so I went ahead and tagged them all as "spoken word" and then figured I'd set up Tagnavi accordingly.

I created a submenu under "Track" with two categories... one, called "All", which just has the command 'title', and one called "music", with the command 'title ? genre != "spoken word"'

It works fine, with one little curiosity: for some reason, the tracks are shuffled when you select the "music" tab.

Originally (and now, under the "all" tab), the tracks all appear in alphabetical order.. but under the music tab, they start with 'V', and then jump all over the place in what is sometimes (but not ALL the time) a semblance of alphabetical order.

It's no big deal since I usually use it just to shuffle tracks so not having them in order is irrelevant from a practical standpoint, but I am puzzled by the behaviour. What causes the random order?
Logged

Buy Big Black Nothing's "Afraid of Sleep" now!

Offline bascule

  • Rockbox Expert
  • Member
  • *
  • Posts: 1298
Re: Tagnavi being silly
« Reply #1 on: April 05, 2007, 04:17:44 AM »
This shouldn't happen.

What format string are you using (title = "fmt_xxxx")? This is what should determione how they are sorted.
Logged
DataBase fanboy and author of the totally overhauled Rockbox Sync Tool

Offline Toxikator

  • Member
  • *
  • Posts: 78
  • Superior Sound (inferior slogan)
    • Big Black Nothing
Re: Tagnavi being silly
« Reply #2 on: April 05, 2007, 07:12:55 AM »
no format string... Tagnavi  never did. I just said "title". I have the fmt_title string for the Album and Artist category since the track number is important. But in the original tagnavi file it didn't include the format string so I left it out.  :-\
Logged

Buy Big Black Nothing's "Afraid of Sleep" now!

Offline bascule

  • Rockbox Expert
  • Member
  • *
  • Posts: 1298
Re: Tagnavi being silly
« Reply #3 on: April 05, 2007, 08:32:13 AM »
The only other thing I think it can be is your Sort Files setting:
[Main Menu]>Settings>General Settings>File View>Sort Files

This determines the default sorting, even for the Database view. If it is anything other than Alphabetical, then it may cause what you are seeing.

If not, ???
Logged
DataBase fanboy and author of the totally overhauled Rockbox Sync Tool

Offline Toxikator

  • Member
  • *
  • Posts: 78
  • Superior Sound (inferior slogan)
    • Big Black Nothing
Re: Tagnavi being silly
« Reply #4 on: April 05, 2007, 10:18:24 AM »
It's set properly, and as I said it's only the "title ? genre != "spoken word"" bit that does it.

The other submenu option (the one that goes straight "title" still comes out in alphabetical order".

Looking over it, I kind of wonder if it's doing a genre>title sort? as in, the reason Tool's Viginti Tres appears first is it's GENRE is alphabetically first, and the genres are sorted, and the tracks within them then sorted? I mean, it WOULD explain the distinciton (since only one of the submenu options is being told to do anything with the genre tag to begin with)...

If it's a bug, I can work around it by removing the other genre tags... otherwise, I'll make the necessary tagnavi sorting change.
Logged

Buy Big Black Nothing's "Afraid of Sleep" now!

Offline bascule

  • Rockbox Expert
  • Member
  • *
  • Posts: 1298
Re: Tagnavi being silly
« Reply #5 on: April 05, 2007, 10:53:14 AM »
Quote from: Toxikator on April 05, 2007, 10:18:24 AM
Looking over it, I kind of wonder if it's doing a genre>title sort? as in, the reason Tool's Viginti Tres appears first is it's GENRE is alphabetically first, and the genres are sorted, and the tracks within them then sorted? I mean, it WOULD explain the distinciton (since only one of the submenu options is being told to do anything with the genre tag to begin with)...

Could be... Unfortunately, you'd need someone who knew the code to answer that :(

Quote from: Toxikator on April 05, 2007, 10:18:24 AM
If it's a bug, I can work around it by removing the other genre tags... otherwise, I'll make the necessary tagnavi sorting change.

I would have thought the easiest way is to add a format string:
title = "fmt_title" ? genre != "spoken word"
Logged
DataBase fanboy and author of the totally overhauled Rockbox Sync Tool

Offline Toxikator

  • Member
  • *
  • Posts: 78
  • Superior Sound (inferior slogan)
    • Big Black Nothing
Re: Tagnavi being silly
« Reply #6 on: April 05, 2007, 11:13:52 AM »
yeah but fmt_title adds track numbers, yeah? almost all of my tracks have track numbers as I do whole albums.

I guess I could create a NEW format tag (like "fmt_name") but I don't know how to do that, and the Rockbox Wiki doesn't explain the sorting, so...
Logged

Buy Big Black Nothing's "Afraid of Sleep" now!

Offline bascule

  • Rockbox Expert
  • Member
  • *
  • Posts: 1298
Re: Tagnavi being silly
« Reply #7 on: April 05, 2007, 12:52:56 PM »
Just add this:

%format "fmt_spoken"       "%s" title

I see no reason why that should not sort in simple alphabetical order...
Logged
DataBase fanboy and author of the totally overhauled Rockbox Sync Tool

Offline Toxikator

  • Member
  • *
  • Posts: 78
  • Superior Sound (inferior slogan)
    • Big Black Nothing
Re: Tagnavi being silly
« Reply #8 on: April 05, 2007, 05:13:27 PM »
I'll give it a shot.

BTW I've been unable to figure what, exactly, "%s" does.
Logged

Buy Big Black Nothing's "Afraid of Sleep" now!

Offline bascule

  • Rockbox Expert
  • Member
  • *
  • Posts: 1298
Re: Tagnavi being silly
« Reply #9 on: April 05, 2007, 05:28:22 PM »
%s just means a string, as compared to %d, a decimal number.
http://en.wikipedia.org/wiki/Printf#printf_format_placeholders
Logged
DataBase fanboy and author of the totally overhauled Rockbox Sync Tool

Offline Toxikator

  • Member
  • *
  • Posts: 78
  • Superior Sound (inferior slogan)
    • Big Black Nothing
Re: Tagnavi being silly
« Reply #10 on: April 08, 2007, 09:07:53 AM »
Followup: it didn't work.

Is there some way to force tagnavi to sort by a certain value? It seems to be sorting by genre first, though I just want to use genre as the filter.
Logged

Buy Big Black Nothing's "Afraid of Sleep" now!

Offline roolku

  • Developer
  • Member
  • *
  • Posts: 350
Re: Tagnavi being silly
« Reply #11 on: April 08, 2007, 09:33:11 AM »
Quote from: Toxikator on April 08, 2007, 09:07:53 AM
Is there some way to force tagnavi to sort by a certain value?

Yes, using a format string as Bascule suggested. However that should not be neccessary, as alphabetical by title is the default for no format string.

Quote from: Toxikator on April 08, 2007, 09:07:53 AM
It seems to be sorting by genre first, though I just want to use genre as the filter.

I can't duplicate that behaviour. I tried 3 testfiles with different genres (A,B,C):

title1 C
title2 B
title3 A

and used the following line in my tagnavi:

"music" -> title ? genre != "B"

The list shows

title1
title3

as expected. I have also tried to exclude a genre on my "proper" database

"music" -> title ? genre != "Dance"

and it worked as expected. There seems to be something unusual about you system, but I have no idea what.


Logged

Offline Toxikator

  • Member
  • *
  • Posts: 78
  • Superior Sound (inferior slogan)
    • Big Black Nothing
Re: Tagnavi being silly
« Reply #12 on: April 08, 2007, 10:42:50 AM »
what player/build are you using?

Also, I'm beginning to suspect that genre is not the primary sorting characteristic.
The tracks seem to be sorted in reverse alphabetical order by directory (starting with the alphabetically last file in any directory) and the directories are sorted by date added (Tool is first b/c it was the first album I physically transferred to my iPod, ending with the most recent albums added).

I tried changing the "sort by" setting to newest date, date, and back to alphabetical, and each time nothing changed in that or any other folder  ???
« Last Edit: April 08, 2007, 10:45:45 AM by Toxikator »
Logged

Buy Big Black Nothing's "Afraid of Sleep" now!

Offline Toxikator

  • Member
  • *
  • Posts: 78
  • Superior Sound (inferior slogan)
    • Big Black Nothing
Re: Tagnavi being silly
« Reply #13 on: April 08, 2007, 11:01:22 AM »
Figured it out! It was that the "max files in dir browser" parameter was set too low. It was causing the tracks to wrap around in a weird way; I'd get to the bottom and just see "y" tracks (and I knew there were Zs), and as I scrolled around the visible tracks changed, and sometimes tracks linked to wrong tracks; so I set the value higher and bam! works perfectly.

sweet! No idea why that happened, though.
Logged

Buy Big Black Nothing's "Afraid of Sleep" now!

Offline lav

  • Member
  • *
  • Posts: 1
Re: Tagnavi being silly
« Reply #14 on: April 09, 2007, 09:42:14 PM »
Oh, wow, i was actually having a similar problem. I have all my tagnavi options set to show 'A to Z'-style lists (for tracks, albums, and artists), and at the top of those lists i have added an option called 'all tracks' which, naturally, shows all the tracks. When viewing tracks by letter (e.g., all tracks starting with A) everything was sorted perfectly fine. When i went to the 'all tracks' option, though, it had just completely random stuff. No order i could see.

Increasing 'max files in dir browser' fixed it, though. I guess now that i think of it that makes sense, but the name of the option ('dir browser'?) certainly threw me off until i read this thread.
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox General
| |-+  Rockbox General Discussion
| | |-+  Tagnavi being silly
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.084 seconds with 14 queries.