iterating through a list, mapping output to sound

    Sep 13 2021 | 12:05 pm
    Hi, I'm wondering if it's possible to cycle through a list of numbers and output each element one by one. I've been trying everything I can think of but I think there's something I'm missing.
    The basic concept of what I would like to do is map a list of 13 floats to the hertz value of a sound wave (eg triangle wave). I would like the hertz value to change at a set interval, for example 1 second. The result would be a triangle wave that ascends in pitch.
    I have 13 elements, so if we say X is the index/element, then Y is the values in my list.
    My instinct is to use a metro object to cycle through the list indices/element number, and to then use the output as the hertz value for the sound wave. However, I don't know how to access/call on that element.
    Here's what I've got so far. Any help would be appreciated!

    • Sep 13 2021 | 12:41 pm
      Use a Coll rather than just a message box to store the values. Is there a reason your frequencies are all below the audible range? H.
    • Sep 13 2021 | 2:40 pm
      Thank you! :)
      Yeah this is just the raw data (global mean temperature), from here I'll start to experiment with different ways of mapping it, e.g. using the output as a multiplier.