diracdeltas / spleeter4max

separate audio in ableton into stems using Spleeter
https://youtu.be/4pcJoI5CUOA
547 stars 51 forks source link

windows: command failed #52

Closed tunonnaemiliana closed 3 years ago

tunonnaemiliana commented 3 years ago

culomax

I'm on windows and I am unable to run spleeter-native.

Spleeter per se seems to be running fine spleeter is fine7

Even check-install.py is not complaining superfine

And yet:

comment: doesn't understand "bang" js: js: no function set [main.js] comment: doesn't understand "spleeterDone"

And i don't know why. I've tried running it as an administrator: it yielded the same results.

The spleeter-native folder is in documents and i haven't touched it.

diracdeltas commented 3 years ago

most of those errors don't actually matter, but the "command failed" line means that max wasn't able to run the spleeter separate command from within node. i'm a little baffled given that it works on the command line.

just to clarify, are you running both spleeter and max as admin?

https://github.com/diracdeltas/spleeter4max/issues/8#issuecomment-713229985

tunonnaemiliana commented 3 years ago

No I'm not. Spleeter cli seems to be working fine when run as normal user and as admin. I've tried doing like #7 said but spleeter-native yielded the same result. Spleeter cli worked fine too, thus I am not running spleeter as an admin anymore :/

diracdeltas commented 3 years ago

i think there was some cases where you had to run spleeter.exe as admin for it to work in max, even if it works without admin on the command line.

could you try this:

  1. in the spleeter-native folder, open spleeter.js in a text editor
  2. replace this line with const cmd = 'spleeter -h'
  3. restart ableton, try running the device again and post a screenshot of the max console
tunonnaemiliana commented 3 years ago

makes sense :) So i changed that line. Max is now saying that it can't find the file weird but spleeter seems to be working fine

diracdeltas commented 3 years ago

cool, so spleeter is indeed callable from Max.

where is the actual file you're trying to separate? in the first screenshot it's in Users/user/Downloads but in the error message it's looking in Documents.

what happens in the command prompt if you cd into the spleeter-native folder, and then run the exact command shown in https://user-images.githubusercontent.com/38960595/101546260-d40f6600-39a8-11eb-9c6e-8d12b05d77b6.PNG ?

tunonnaemiliana commented 3 years ago

god i feel so dumb. Initially spleeter separate -i "Tom Misch NPR Music Tiny Desk Concert [2020-12-10 003922].wav" -o npr2 -p spleeter:4stems-16kHz wasn't giving any output. I tried cutting the audio file and to my surprise it actually worked

After reverting that line, the errors are still there, but spleeter-native works nonetheless.

yoo

god i feel so dumb I just had to shorten the audio sample jee

tunonnaemiliana commented 3 years ago

Still, are those errors supposed to be there?

diracdeltas commented 3 years ago

@tunonnaemiliana awesome, glad it worked! yep, those other error messages are not actual errors.

tunonnaemiliana commented 3 years ago

yeah, thanks for the help, I'm tipping 5$ on bandcamp :) Keep it up!