iterating through a list, mapping output to sound

Val Rad's icon

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!

mapping float to pitch.maxpat
Max Patch

Hector MacInnes's icon

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.

listfunnel>coll.maxpat
Max Patch

Val Rad's icon

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.