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' #4

Open
positonic opened this issue Aug 3, 2016 · 2 comments

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)).

Since this relates to TSW I have created an issue there for tracking.

@positonic
Copy link
Author

Main symptom is that the keyboard doesn't show and nothing works:
image

@positonic
Copy link
Author

This is fixed by the latest version of theresas-sound-world

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

No branches or pull requests

1 participant