public int init(String[] args) {        
        WAV_FILE = args[0];
        MIN_PITCH = Double.valueOf(args[1]);
        MAX_PITCH = Double.valueOf(args[2]);
        TRIM_PERCENTAGE = Double.valueOf(args[3]);
        
        if((args.length-4) % 2 !=0)
            return ERR;
        
        N = (args.length-4)/2;
        
        if(N<1)
            return ERR;
        
        
        FROM = new double[N];
        TO = new double[N];
        for(int i=0;i<N;i++){
            FROM[i]=Double.valueOf(args[2*i+4]);
            System.err.println((i+1)+" "+FROM[i]);
            TO[i]=Double.valueOf(args[2*i+1+4]);
            System.err.println((i+1)+" "+TO[i]);
            
            if(FROM[i]>=TO[i])
                return ERR;
            
            if((i>0) && FROM[i]<TO[i-1])
                return ERR;
        }
        System.err.println("YES");
        return OK;
        
    }