Author Topic: AsPyFoo: Surf using foobar2000's active playlist  (Read 5896 times)

tnl

  • Full Member
  • ***
  • Posts: 110
  • tweaker
    • View Profile
AsPyFoo: Surf using foobar2000's active playlist
« on: March 18, 2009, 06:55:43 pm »

AsPyFoo


See its documentation online if you are interested in using it, since there is setup involved.

It's an overdue replacement for my original script.  The implementation is wonky but the workarounds in place make it work. :-\  If anyone can help me understand COM and threading more that would be appreciated :-*

EDIT: Latest source is now available in a bitbucket.
« Last Edit: March 25, 2009, 06:55:04 pm by tnl »

charlieh

  • Jr. Member
  • **
  • Posts: 59
    • View Profile
Re: AsPyFoo: Surf using foobar2000's active playlist
« Reply #1 on: March 18, 2009, 10:48:51 pm »
If anyone can help me understand COM

*cringe*

Just wondering, why don't you use string.lower() instead of your mylower function in ashifyfoo.py?

tnl

  • Full Member
  • ***
  • Posts: 110
  • tweaker
    • View Profile
Re: AsPyFoo: Surf using foobar2000's active playlist
« Reply #2 on: March 19, 2009, 04:35:39 am »
why don't you use string.lower()
I do use that, too.

It's an issue of comparing tags in the fb2k ML against the artist and title tags you get from asreport, in order to avoid redundant ash-file-generation.  They seem not to have the same meaning of lowercasing, when you either have Unicode characters, or ASCII characters assuming a codepage.  You should probably disregard my attempt at explaining since I'm not well versed in this subject; I'm just uncertain why ashifyfoo repeats scanning certain files at its start.

All the system would need to know regarding whether or not a song has been loaded before is probably the file path, anyhow; at this point it's fairly meaningless what's stored in the database.  I was thinking perhaps it should also log scores and data to determine characters used per song or something.

Pyritie

  • Hero Member
  • *****
  • Posts: 813
    • View Profile
Re: AsPyFoo: Surf using foobar2000's active playlist
« Reply #3 on: March 20, 2009, 10:58:06 am »
What an awkward name.
http://pyritie.deviantart.com
not active here any more

tnl

  • Full Member
  • ***
  • Posts: 110
  • tweaker
    • View Profile
Re: AsPyFoo: Surf using foobar2000's active playlist
« Reply #4 on: March 20, 2009, 11:03:11 am »
Which name?  AsPyFoo, mine, foobar2000, or Python  ;D

Have you a better suggestion?

Alas, if this were coded in a compiled language it could be a foobar2000 component named foo_audiosurf  :'(

Pyritie

  • Hero Member
  • *****
  • Posts: 813
    • View Profile
Re: AsPyFoo: Surf using foobar2000's active playlist
« Reply #5 on: March 21, 2009, 04:02:21 am »
AsPyFoo, of course :P

How the heck do you even pronounce that?
http://pyritie.deviantart.com
not active here any more

Laserrobotics

  • Robot Overlord
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3616
  • Beep boop everyone.
    • View Profile
    • Steam ID
Re: AsPyFoo: Surf using foobar2000's active playlist
« Reply #6 on: March 21, 2009, 06:22:26 am »
I was going with 3 syllables, separated by the capital letters.