• Hi,
    I started to have the open brackets / close brackets error on a script I have been using for a while and was compiling fine till today. No changes have been made to it . There is no error visible in the IDE

    I found out this function is where is the problem but I really don't see any brackets error on it ??? :

    function rescaleToMidiCC (value, oldMin, oldMax){
    newMin = 0;
    newMax = 127;
    rescaled = Math.round((value - oldMin) * (newMax - newMin) / (oldMax - oldMin) + newMin);
    rescaled = Math.min(127, Math.max(0, rescaled));
    return rescaled;
    }

    deleting this part of the code and the script compiles

About

Avatar for user155285 @user155285 started