sympathetic-synth icon indicating copy to clipboard operation
sympathetic-synth copied to clipboard

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

Open positonic opened this issue 9 years ago • 2 comments

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 avatar Aug 03 '16 10:08 positonic

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

positonic avatar Aug 03 '16 10:08 positonic

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

positonic avatar Aug 04 '16 11:08 positonic