[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
    at Object.flock.audio.loadBuffer
    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]
    at Function.flock.parse.bufferForDef.resolveDef
    at Object.flock.parse.bufferForDef
    at Object.that.onBufferInputChanged
    at Object.that.onInputChanged
    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",
                "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

Stickle app (Android)
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