From: Achim G. <Str...@ne...> - 2019-06-06 18:31:02
|
Ethan Merritt (UW) writes: > * CHANGE clear STATS_* variables before performing analysis It took me a while to relaize, but that particular change killed on of my scripts. That is using data that doesn't always exist, so I have to test for that like this: --8<---------------cut here---------------start------------->8--- STATS_records=0 stats [24*sr:24*sq] data using ($4==10?t($1):1/0):($2) nooutput TEST=STATS_records>0 --8<---------------cut here---------------end--------------->8--- That gives you a warning from stats, but you could then skip additional code using the non-existing data (that would error out) based on the result in TEST. That no longer works since you're now getting an error (terminating the script) at the last line. Note that you can't do something like exist(STATS_record) either like one could reasonably expect to work. Any workarounds? Regards, Achim. -- +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ SD adaptations for KORG EX-800 and Poly-800MkII V0.9: http://Synth.Stromeko.net/Downloads.html#KorgSDada |