/******************************************************************************************* Copyright (C) 2010 Mestrelab Research S.L. All rights reserved. This file is part of the MNova scripting toolkit. Authorized users of Mnova Software may use this file freely, but this file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. *******************************************************************************************/ function playArray() { var spec = new NMRSpectrum(nmr.activeSpectrum()); if (!spec.isValid() || spec.dimCount != 1) return; var N = spec.specCount; var npoints = 0; for (var i= 0; i max) max = value; if (value < min) min = value; } //scale and write the ouput var range =3 /* myBitsPerSample*/ * 1024 - 1; for (var j= 0; j