Hi Nick

QCStructures that you can pass from path to patch in QC can either contain 
complex objects with the {key: value, key: value,…} representation or more 
straight forward arrays which have the [value, value, …] representation. With 
the object model you need the right key to get the corresponding value. With 
arrays you need the index number, typically starting at zero. In some languages 
all Array elements are by definition of the same type, e.g. numbers or strings 
or booleans only but not so in QC. Anyhow elements are referenced by their 
place in the array, i.e. by there index number (which is shown in QC hints as 
n: (n) = … where n is the index number)

Anyhow the song example you choose wasn’t ideal as you have too fields saying 
AC/DC (ac/dc, ac_dc). It will be either of those and just use the index number 
in the brackets , either 1 or 3 in this case.

Best
Alastair

Also if you want to use the iTunes XML file you can parse it in TextWranggler 
(free app) or any decent coding  editor to remove a bunch of the info you don’t 
need. You will need to learn a tiny bit of GREP but Text Wrangler has an 
excellent introduction and tuition in the manual for GREP. you can replace all 
the extraneous info with nothing and get the file size down if it’s overloaded 
with things you don’t need (especially if artwork is encoded into the XML that 
will take up a lot of memory).


  
> On 20 Jul 2015, at 3:10 am, Nick <nickharam...@me.com> wrote:
> 
> Hi,
> 
> I previously posted a question to this list about adapting a QC composition 
> to display artwork from my music folders.  The composition that I have been 
> using relied on iVisualize, which only runs using iTunes in 32 bit mode, 
> which is no longer supported.
> 
> I need somehow to be able to get the composer field into a composition.  
> iVisualize supported this, but it is not, as far as I am aware, natively 
> supported using the track info patch.  Alastair Leith kindly replied on this 
> list stating that I could use a CSV plugin: http://www.climbapp.com/plugin 
> <http://www.climbapp.com/plugin>
> 
> As I see it essentially I would create a CSV file of all of the tracks in my 
> iTunes library, with a line for each track with 4 tags - name/title, artist, 
> album and composer.  As each track loads the composition would search for a 
> line in the CSV file that returns the composer where the name/title, artist 
> and album all match.
> 
> As I understand it the CSV patch works similarly to the XML importer patch, 
> so I have started on the attached composition.  Unfortunately there is no 
> ‘key’ in the CSV file, as there is in an XML file, so I don’t know what to 
> enter for the key in the Stucture Key Member patches.  The output of the 
> Structure Index Member is in this format:
> 
>  
> <Screenshot 2015-07-19 20.05.25.png>
> 
> Could someone advise me as to the best way to proceed.  An alternative method 
> I assume would be to use the XML importer patch, using the XML file outputted 
> by iTunes when I select ‘export library', but this is a fairly monstrously 
> sized file, so perhaps CSV is the best method?
> 
> Any advice is welcome!
> 
> <XML Test.qtz>
> Thanks,
> 
> Nick
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Quartzcomposer-dev mailing list      (Quartzcomposer-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/quartzcomposer-dev/usefuldesign.au%40gmail.com
> 
> This email sent to usefuldesign...@gmail.com

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list      (Quartzcomposer-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/quartzcomposer-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to