FreeSound Quark Update

I’ve added a GUI front-end for my FreeSound Quark which makes things a lot easier in interactive coding / performing situations. So you may want to update… This front-end uses the FreeSound class to download files from the freesound.org network based on the criteria you provide and they are available to you on the fly while performing or composing… Just obtain / update the FreeSound Quark in your SC environment to get it.

fss

  • StumbleUpon
  • del.icio.us
  • Digg
  • Facebook
  • Twitter
  • Reddit
This entry was posted in News
and tagged , ,
Bookmark the permalink

6 Comments

  1. Posted January 24, 2010 at 8:09 pm | Permalink

    I’m sorry, how do I “Just obtain / update the FreeSound Quark in your SC environment to get it.”
    Thanks

  2. Posted January 25, 2010 at 4:21 pm | Permalink

    Hi reaktorplayer,

    If you are just startin out with SuperCollider, I suggest you subscribe to sc-users mailing list:
    http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml

    You can search the archives from here:
    http://n2.nabble.com/New-SuperCollider-Mailing-Lists-Forums-Use-These-f2681727.html

    See the Quark and Quarks help file in SuperCollider for an answer to your question. You can also run Quarks.gui in SC environment and it’s more or less self explanatory from there. Feel free to ask questions if you run into problems.

  3. Posted January 25, 2010 at 7:16 pm | Permalink

    Thank you for the information. I’ve subscribed to the list and the search has helped already. Thanks again.

  4. Posted March 1, 2010 at 6:51 am | Permalink

    Hi Batuhan,

    Thanks so much for this great addition to SuperCollider! I downloaded it today and started using it, but after a couple of hours it stopped working. I dug in to find out why, and it looks like the responses I was getting from Freesound had changed (the “Keep-Alive” line was no longer there), and your code for parsing the responses to get the file download location was breaking as a result of the change. I went in to the source and made a change that fixes the problem I was having, and is perhaps more robust, as it doesn’t rely on the order of the text in the response. Here are my changes (inside of the downloadSample method):

    responseHeader = String.readNew(File(“/tmp/scdlresponseheader”++sampleIDBucket[argIndex]++uniqueID, “r”));
    responseHeader = responseHeader.findRegexp(“^Location: (.*?)$”)[1][1];
    fileName = responseHeader[responseHeader.findBackwards("/")+1..responseHeader.size-1];
    downloadFunc.value;

    … basically, all I’m doing is not erasing the spaces and line breaks like you did, and instead using a regular expression to find the line that starts with “Location: “. It seems to work fine so far, although I’m not very experienced with SC, so maybe you had your reasons for your approach. Anyway, thanks again!

  5. Posted March 1, 2010 at 7:31 am | Permalink

    Hi Chadwick,

    Thanks for your kind comments and for looking into this! I remember this being reported before and I vaguely remember fixing it. :)

    Now I’ve tried from my copy and things seem to work fine. When did you download the Quark? Maybe it was before the update?

    Do the responses change after using it for sometime or did they change all together suddenly (probably because of a change in freesound)?

    In anyway, using regexp is better, it’s just that I’m not really good at it. :) I’ll update the Quark with your code as this is a more error proof approach for the long run. I suspect there is a better way to get the redirect URL other than parsing the response string but couldn’t find one.

    Anyway, thanks to you too!

  6. Posted March 1, 2010 at 6:06 pm | Permalink

    I think maybe the change was me accidentally reverting to an older version of the quark! Oops. So, maybe my code change is not needed :) Thanks for the response. I’m looking forward to making lots of crazy sound!

Post a Comment

Your email is never published nor shared.

  • What

    I am Batuhan Bozkurt.

    Things involving computational (sound) art, and my work swirling around the subject are here.

    Follow my RSS feed if you care.

  • Find me