I need a simple JavaScript script written using nodeJS. Apparently NPM can easily be accessed using the official soundcloud library.
https://developers.soundcloud.com/docs/api/guide
path to an audio file (.wav and .mp3 compatible at least; if it's easy to add compatibility with other file types, please do) as an argument. The path will come to you with forward slashes (the Mac standard), so it may need to be converted to back slashes if that's what the API expects. The function should then:I actually have an old Ruby script that does roughly the same thing, which you can look at for reference if it's helpful. Just don't copy it exactly as it has issues, hence the need for this new one.
To explain a little more about my project and my needs: my application is written in Max/MSP which has native integration with JavaScript, in particular nodeJS via the Node for Max environment (https://cycling74.com/articles/node-for-max-intro-%E2%80%93-let%E2%80%99s-get-started). But it can be done any way that works, as long as