Data sonification patcher advice

lilcastrato's icon

Hi,

I'm attempting to create a patcher that sonifies the incidents of NEOs ( or Near Earth Objects, aka good ol' asteroids or meteoroids or space rocks or whatever you wanna call 'em) detected within a given date range, using JSON-formatted data obtained from https://api.nasa.gov/api.html#NeoWS.

Here's a rundown of what I'd like the patcher to achieve (in sequence):

1. The user selects a date range of, say, 30 days - e.g. 1/01/2018 - 30/01/2018

2. Date range is input (somehow) into a dict object

3. A loadbang/bang firing every 1000ms or so instructs a get body to obtain each 'element_count' (<< that's NASA terminology for recorded NEO totals for that day, so e.g. 38 NEOs for 1/01/2018, 31 for 2/01/2018 and so on) from each consecutive date within the selected date range.

4. Each bang from the get body::element_count is then sent through a route body::element, and from there output as a numerical value in a number box (updating every second with a new value; one for each date in the date range). So the number box might flash e.g. "38...31...29...32..." etc.

5. Each value output in the number box is then sent off to become a scaled midi value, which will be represented as a tone...or something along those lines.

Any advice, step-by-step, on how I might achieve this would be fantastic. Apologies if I've made a dog's breakfast of that ^ description, but obviously I'm completely new to M4L, and so not at all sure of what I can realistically achieve here. Any criticisms, questions or suggestions welcome.