Jump to content

OC ReMix Unveils Revolutionary New 3-Value Genre Classification System!


djpretzel
 Share

Recommended Posts

So, if anyone was wondering about the "coding" behind this wonderful feature:

  • We've got an existing set of tags in our database that were imported from the forum thread tags
  • If a mix was tagged "EDM" - that was techno
  • If a mix was tagged "synth" - that was possibly techno
  • If neither tag was present, that was probably not techno (maybe)

Our tags are FAR less complete on older mixes, so as you went back in time, fewer mixes were labeled techno or possibly techno :)

This was written in XSLT, so something like:

<xsl:choose>
<xsl:when test="/list/terms[./@name = 'EDM']">Techno</xsl:when>
<xsl:when test="/list/terms[./@name = 'synth']">Possibly Techno</xsl:when>
<xsl:otherwise>Probably Not Techno (Maybe)</xsl:otherwise>
</xsl:choose>

Link to comment
Share on other sites

So, if anyone was wondering about the "coding" behind this wonderful feature:

  • We've got an existing set of tags in our database that were imported from the forum thread tags
  • If a mix was tagged "EDM" - that was techno
  • If a mix was tagged "synth" - that was possibly techno
  • If neither tag was present, that was probably not techno (maybe)

Our tags are FAR less complete on older mixes, so as you went back in time, fewer mixes were labeled techno or possibly techno :)

This was written in XSLT, so something like:

<xsl:choose>
<xsl:when test="/list/terms[./@name = 'EDM']">Techno</xsl:when>
<xsl:when test="/list/terms[./@name = 'synth']">Possibly Techno</xsl:when>
<xsl:otherwise>Probably Not Techno (Maybe)</xsl:otherwise>
</xsl:choose>

Wow, now this actually makes a lot of sense! When you mentioned "date" in avaris's recent mixpost, I felt as if I seemed to be missing something, but now I understood the magic.

Thanks for the clarification! :-)

Link to comment
Share on other sites

So, if anyone was wondering about the "coding" behind this wonderful feature:

  • We've got an existing set of tags in our database that were imported from the forum thread tags
  • If a mix was tagged "EDM" - that was techno
  • If a mix was tagged "synth" - that was possibly techno
  • If neither tag was present, that was probably not techno (maybe)

Our tags are FAR less complete on older mixes, so as you went back in time, fewer mixes were labeled techno or possibly techno :)

This was written in XSLT, so something like:

<xsl:choose>
<xsl:when test="/list/terms[./@name = 'EDM']">Techno</xsl:when>
<xsl:when test="/list/terms[./@name = 'synth']">Possibly Techno</xsl:when>
<xsl:otherwise>Probably Not Techno (Maybe)</xsl:otherwise>
</xsl:choose>

Hah, that's much simpler than the one I posted 2 pages ago. :lol:

Link to comment
Share on other sites

  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...