Support and General Use > Audio Playback, Database and Playlists

Vorbis Comments in tagnavi_custom.config ?

(1/1)

felixculpa:
Hi all,

I am trying to create on my Sansa Clip Zip a menu in the database under "Custom view" where it will show all tracks with a vorbis comment field (BPM in this case) that equals 120 or higher. I tried a few configs but the syntax confuses me and nothing is showing up in the menu besides the heading "High Tempo" when I enter Custom view. I have BPM (beats per minute) tagged using the echonest plugin for the Beets music organizer program, and I know for a fact there is a <BPM> = field on my tracks and a few of them definitely have a setting over 120, yet nothing is showing up.


--- Code: ---#! rockbox/tagbrowser/2.0
# My custom database config stuff!

%format "fmt_bpm" "%02d %s" tracknum title

%menu_start "custom" "High Tempo"
"High Tempo" -> comment ? bpm >= "120" -> title = "fmt_bpm"
--- End code ---

Any help would be extremely appreciated, as the girlfriend wants me to create a playlist for her rockbox of upbeat music and this would be the easiest solution using Rockbox's inbuilt capabilities.

saratoga:
Does rockbox even read the BPM tag?  If you go and look at the properties of one of these vorbis files does it show up? 

felixculpa:
No it doesn't seem to show up that way, you might be onto something. However at the Database wiki here it says that the "Field" "comment" has full support in the filter, in place of condition and in formatting and under the notes column it says "ID3 or Vorbis comment string." The <BPM> field from everything I've read and can infer is indeed a Vorbis comment, so that is why I am perplexed as to how to make it work.

I should mention that my music files have a lot of tags, maybe the abundance of tags has something to do with it? Like Rockbox only reads so many before it stops?

The command vorbiscomment -l <music_file> | grep BPM gives the expected output too, so I don't think the file is corrupt or anything?

saratoga:
Vorbis tags are called "comments" in the Ogg specification, whereas the "comment" field is a specific field in ID3 tags where you can write text messages.  You can read the comment field in many tag formats, but I doubt you can read custom Vorbis tags like BPM.

felixculpa:
I see, that makes perfect sense. I thought it was too good to be true thinking that Rockbox could filter by custom vorbis comments. Thanks for the help!

Navigation

[0] Message Index

Go to full version