diff --git a/ardour/witw/instant.xml b/ardour/witw/instant.xml index 8d31a79..fcc553f 100644 --- a/ardour/witw/instant.xml +++ b/ardour/witw/instant.xml @@ -1,20 +1,6 @@
- - - - - - - - - - - - - - @@ -44,4 +30,19 @@ + + + + + + + + + + + + + + + diff --git a/sc/witw.scd b/sc/witw.scd index 4a8cab4..e16f626 100644 --- a/sc/witw.scd +++ b/sc/witw.scd @@ -161,6 +161,10 @@ s.waitForBoot{ ~dateTime=~data[0]; ~windDirection=~data[13]; +~windGust=~data[14]; // m/s + +~windNorth=~data[16]; // m/s +~windEast=~data[18]; // m/s ~global_t = 0; // temperature C ~global_wD = 0; // wind direction 360degrees @@ -169,18 +173,16 @@ s.waitForBoot{ ~time = Routine { arg inval; var t = 0; - // itterate through data at a fixed rate // data point every 15mins // 4sec = 1 hr 24 * 96seconds = 1 day // 9.6 seconds = 1 day @ 0.1.wait loop { t = (t + 1) % (~csvFile.size - 1) ; ~global_t = ~temperature[t]; ~global_wD = ~windDirection[t]; - postln( "index:" ++ t ++ " Date:" ++ ~dateTime[t] ++ " C:" ++ ~temperature[t] ++ " Wind Direction:" ++ ~windDirection[t] ); + postln( t + " " + ~dateTime[t] + " C:" ++ ~temperature[t] + " Wind Dir: " + ~windDirection[t] + " Gust: " ++ ~windGust[t] + "North: " + ~windNorth[t] + "East: " + ~windEast[t]); 0.1.wait; }}.play(); - r = Routine { arg inval; var i = 0; loop { @@ -252,4 +254,3 @@ r = Routine { arg inval; var i = 0; r.stop; ~time.pause; -