Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error - tsw.js:42 Uncaught TypeError: Cannot create property 'value' on number '0' #73

Closed
positonic opened this issue Aug 3, 2016 · 1 comment · Fixed by #74
Closed

Comments

@positonic
Copy link

positonic commented Aug 3, 2016

I'm getting this error in the console:

I am using Chrome on linux - Version 52.0.2743.82 (64-bit)

tsw.js:42 Uncaught TypeError: Cannot create property 'value' on number '0'

I found this error while looking at the online demo of Sympathetic synthesisor here

The issue seems to be caused by the face that 'reduction' is a read only float, and can't be changed, as it is in

    var applySettings = function (node, settings) {
       for (var setting in settings) {              
                node[setting].value = settings[setting];
        }
    };

I have been able to fix this with the following:

    var applySettings = function (node, settings) {
       for (var setting in settings) {
            if(typeof node[setting] === "object")
            {
                node[setting].value = settings[setting];
            }
        }
    };

This was working for me up until recently so I guess it's just for the latest version of Chrome (Version 52.0.2743.82 (64-bit)).

@positonic
Copy link
Author

I am working a pull requst to fix it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant