[flocking] Error: Loading files from URLs is not currently supported in Node.js AND correct node version

james bromley james.a.bromley at gmail.com
Fri Mar 3 01:55:09 UTC 2017


I'm getting the above error when running some of the node.js examples,
stack at end of file.

Literally nothing on google about this error. Since I am running v.6.10.0
of node.js maybe this is the problem, as there is a contradiction in help
files about which version is supported
Here https://github.com/colinbdclark/Flocking#compatibility says Node 6.x
This file
https://github.com/colinbdclark/Flocking/blob/master/docs/nodejs.md says
0.12.x and 4.2.x.
Is the problem too late a version of Node.js?

Many thanks for any help

Error: Loading files from URLs is not currently supported in Node.js.
    at flock.net.readBufferFromUrl
(C:\work\Flocking\src\nodejs\audio-system.js:71:11)
    at Object.flock.audio.loadBuffer
(C:\work\Flocking\src\audiofile.js:204:9)
    at Object.flock.audio.decode (C:\work\Flocking\src\audiofile.js:239:21)
    at flock.bufferSource.get (C:\work\Flocking\src\buffers.js:331:29)
    at invokeInvoker [as get]
(C:\work\Flocking\node_modules\infusion\src\framework\core\js\FluidIoC.js:1730:29)
    at Function.flock.parse.bufferForDef.resolveDef
(C:\work\Flocking\src\parser.js:379:20)
    at Object.flock.parse.bufferForDef
(C:\work\Flocking\src\parser.js:324:38)
    at Object.that.onBufferInputChanged
(C:\work\Flocking\src\ugens\core.js:384:29)
    at Object.that.onInputChanged
(C:\work\Flocking\src\ugens\granular.js:125:18)
    at Object.that.init (C:\work\Flocking\src\ugens\granular.js:151:18)
    while constructing component of type flock.synth with arguments {
    "0": {
        "synthDef": {
            "ugen": "flock.ugen.writeBuffer",
            "options": {
                "duration": 15,
                "numOutputs": 1
            },
            "buffer": "recording",
            "sources": {
                "id": "granulator",
                "ugen": "flock.ugen.triggerGrains",
                "buffer": {
                    "id": "hillier-first-chord",
                    "url":
"C:\\work\\Flocking\\demos\\nodejs/../../demos/shared/audio/hillier-first-chord.wav"
                },
                "centerPos": {
                    "ugen": "flock.ugen.lfNoise",
                    "freq": 10,
                    "options": {
                        "interpolation": "linear"
                    },
                    "mul": {
                        "ugen": "flock.ugen.bufferDuration",
                        "buffer": "hillier-first-chord",
                        "mul": 0.9,
                        "add": 0.1
                    }
                },
      .... [output suppressed at 1024 chars - for more output, increase
fluid.logObjectRenderChars]


--
Stickle app (Android)
www.ergle.com
Ergle research: https://www.facebook.com/ergleresearch
LinkedIn: http://uk.linkedin.com/pub/james-bromley/9/736/361/
Blog: http://jamesabromley.wordpress.com
Music: https://soundcloud.com/james-bromley-1
The doer alone learneth - Friedrich Nietzsche
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.idrc.ocad.ca/pipermail/flocking/attachments/20170303/18340b24/attachment.html>


More information about the flocking mailing list