Roy Owen wrote:
I haven't commented so far, but what does "ignore" mean? "exclude"
and "include" make sense.
It means don't pay attention to that genre either way. For example, if
I want to create a playlist that includes all rock and folk songs,
except for those with explicit lyrics, I'd set INCLUDE for Rock and
Folk, EXCLUDE for Explicit, and IGNORE (which would presumably be the
default setting) for all other genres.
So if I have the following songs in my collection:
A: Rock;Explicit
B: Rock;Canadian
C: Folk;Canadian
D: Punk;Canadian
E: Folk;Rock;Explicit
the playlist would include songs B and C only.
Here's some pseudocode for the algorithm that may help you understand
better:
foreach song in allsongs()
if song.genres().intersect(excludes).isEmpty() &&
!song.genres().intersect(includes).isEmpty() then
playlist.add(song);
end if
end foreach
- Marc
_______________________________________________
Discuss mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/discuss