Color Online Resources

C.V.Bernard's Avatar

C.V.Bernard

07 Jun, 2010 03:18 AM

It is my understanding that the Color for a song is computed with respect to other songs in a user's library. So how is it that I can use online resources to retrieve color values for songs, when presumably those values are uploaded from other users' databases that are not identical to mine? Is it wise to instead compute the entire library (and/or replace all values) by having my computer calculate each value without using online resources?

  1. Support Staff 1 Posted by hendrik on 07 Jun, 2010 09:31 AM

    hendrik's Avatar

    The data fetched from the online database is used to calculate the color for a song in your collection. The actual color is not retrieved.

    Does this explain things?

    -hendrik

  2. 2 Posted by C.V.Bernard on 07 Jun, 2010 05:57 PM

    C.V.Bernard's Avatar

    I think I understand what you are saying. So there would be no benefit to computing/recomputing all the files without the use of internet resources, correct?

  3. Support Staff 3 Posted by hendrik on 07 Jun, 2010 06:43 PM

    hendrik's Avatar

    Correct. Probably not.

  4. 4 Posted by C.V.Bernard on 15 Jun, 2010 04:23 PM

    C.V.Bernard's Avatar

    Failed to find song with persistent id, the corresponding task was dropped from the task queue. is this an error that occurs when trying to rewrite beatunes color info? is there a way to clear song color info after they've been embedded into the file and written into the beatunes database?

  5. Support Staff 5 Posted by hendrik on 15 Jun, 2010 05:45 PM

    hendrik's Avatar

    That error usually occurs, when a song was added to the queue and then deleted from the library before it was processed in the queue.

  6. 6 Posted by C.V.Bernard on 15 Jun, 2010 06:54 PM

    C.V.Bernard's Avatar

    Thing is, I haven't deleted while it's been processing. Before I began the batch process, I synchronized beaTunes with iTunes. If it's possible that beaTunes has just skipped some of the songs, is there a way for me to determine which ones need to be re-processed? I'd hate to have to begin the batch process from scratch again, but won't mind doing it if it helps preserve the integrity of the database.

  7. Support Staff 7 Posted by hendrik on 15 Jun, 2010 07:58 PM

    hendrik's Avatar

    Synchronization can have the same effect as deletion, if at some point you have deleted any songs in iTunes.

    -hendrik

  8. 8 Posted by C.V.Bernard on 16 Jun, 2010 11:10 AM

    C.V.Bernard's Avatar

    Thing is, I did not select any songs in my library to have analyzed that aren't currently in my itunes library. I synchronized before I began the analysis just to make sure that the two were the same. Does beaTunes remember song files from 3 or 4 synchronizations ago when I try to analyze the library, and are those the songs (which are not in my library any longer) whose persistent id cannot be found?

    Whenever my computer turns off my two monitors in order to save power, when I return to use my computer again (and the monitors turn on once again), it seems as though there is a higher rate of 'failed to find persistent id's'. Could this at all be somehow related?

  9. Support Staff 9 Posted by hendrik on 17 Jun, 2010 07:34 AM

    hendrik's Avatar

    The analysis queue is persistent and songs deleted from iTunes will not be deleted from the queue. This is where the error you are seeing could stem from.

    The monitor thing should not have anything to do with it.

  10. 10 Posted by C.V.Bernard on 21 Jun, 2010 10:59 AM

    C.V.Bernard's Avatar

    Well the error occurs even amongst newly added songs to the library (which haven't been deleted and beaTunes displays a prompt, asking if I'd like to have the songs analyzed). I noticed that when it occurs, it just seems to skip the analysis of a song file. If I take the time to try and analyze the songs that had been skipped, it does work, so I'm not sure what prevents the function from working entirely when doing things in a batch.

    I guess the issue is when it occurs while I'm trying to replace the color files of songs that had previously calculated/downloaded values, and the songs are 'skipped', I have no way of knowing which ones I'd have to have the analysis try to analyze again to obtain the non-erroneous values.

  11. Support Staff 11 Posted by hendrik on 22 Jun, 2010 07:53 AM

    hendrik's Avatar

    Hm... Sorry, but without logs this is really just wild guessing around.

    -hendrik

  12. 12 Posted by C.V.Bernard on 22 Jun, 2010 10:35 AM

    C.V.Bernard's Avatar

    Here you go, all zipped!

  13. Support Staff 13 Posted by hendrik on 23 Jun, 2010 07:35 AM

    hendrik's Avatar

    Thanks for the logs.

    After calculating (or importing) the spectrum for a song, beaTunes adds it to a queue for mass background processing, writing the new colors to the database. This queue competes with the rest of the program for the database. When it gets very long, it may lock the main database table, so that the analysis process can't access it anymore and suffers a timeout.

    Currently this timeout is at 10s. You can manually increase the timeout by editing the files beaTunes2.l4j.ini and beaTunes2.l4j.ini.template (on your system in `G:\Program Files\tagtraum industries\beaTunes-2.1.9`).
    To increase the timeout to 60s, you would need to add the line:

    -DH2_LOCK_TIMEOUT=60000
    

    Then restart beaTunes.

    I will make an effort to make the color calculation process less greedy in future versions.
    In any case, please let me know, whether increasing the timeout has the desired effect.

    Thanks,

    -hendrik

  14. 14 Posted by C.V.Bernard on 24 Jun, 2010 12:55 AM

    C.V.Bernard's Avatar

    thus far, no issues have cropped up. I'll keep you posted with how things work out over the next few days.

  15. Support Staff 15 Posted by hendrik on 24 Jun, 2010 08:22 AM

    hendrik's Avatar

    2.1.10 should contain a fix for this, when it's out.

    -hendrik

  16. 16 Posted by C.V.Bernard on 28 Jun, 2010 01:50 PM

    C.V.Bernard's Avatar

    well i made the modifications, and the issue seems to have cleared up. Thanks a bunch!

  17. Support Staff 17 Posted by hendrik on 28 Jun, 2010 01:54 PM

    hendrik's Avatar

    Cool. Thanks for letting me know.

    -hendrik

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac