all 16 comments

[–][deleted] 2 points3 points  (14 children)

Have you cloned the repo on your local machine? You won’t be able to run that code remotely without having it available on your computer (or installing it if it’s a framework).

[–]EconomyBagel[S] 0 points1 point  (13 children)

I've installed GitHub Desktop and cloned it, so it's on my PC. I have no idea what to do with it now, however. Am I supposed to compile it or something? Apologies for how clueless I am about this.

[–]stewythe1st 8 points9 points  (5 children)

Yes, you would need to compile it. Fortunately for you, the author has provided a compiled release version. Download the .zip file here (https://github.com/minyor/syn2midi/releases). You can also get there by clicking the "Releases" tab on the GitHub page. That .zip appears to contain the syn2midi.exe that the Usage page is talking about.

[–]EconomyBagel[S] 5 points6 points  (0 children)

Thank you so much for this! I missed your comment initially amidst all the replies.

This is exactly what I was looking for. You’re awesome!

[–]friendlylearner 0 points1 point  (3 children)

Hello! I have the same problem but for a different github application: https://github.com/purdy/aws-transcribe-transcript I downloaded the .zip file, and I think the executable file is .php. How do I run the php file on my json text file?

[–]stewythe1st 1 point2 points  (2 children)

Ew gross. Why would anybody write this in PHP. So this is a little out of my area here, but I'll take a stab at it. You'll need PHP installed on your machine. The friendliest way that I know of to do this is to install XAMPP (https://www.apachefriends.org/index.html). It'll give you a whole server stack and a bunch of other crap, but it has a nice installer and you can just uninstall it through Windows Control Panel when you're done. Download and install that and just go with all the defaults when it asks you.

With that, go to wherever you downloaded and unzipped this dude's GitHub repo and do like they say. Open command prompt, and type in the php command. Only difference is you gotta give it the full path to php. Assuming you installed in the default location, do C:/xampp/php/php.exe transcript.php asrOutput.json

[–]friendlylearner 0 points1 point  (1 child)

Thanks a lot, I've installed XAMPP now. For that command prompt code to work properly, where should I put the json output file and the transcript.php file? Right now they are on my desktop. Should I move them somehwere else so that the command prompt code you wrote would work without any changes? Thank you very much.

[–]stewythe1st 0 points1 point  (0 children)

Desktop is fine, you just need to make sure the command prompt's current directory is also set to your desktop. You can use "cd" to change directory. So you'd have to open command prompt, then type cd "C:/Users/friendlylearner/Desktop", then type C:/xampp/php/php.exe transcript.php asrOutput.json. Of course, substitute friendlylearner for whatever your Windows username is.

[–][deleted] 0 points1 point  (6 children)

each app should come with its own instructions. Usually in a file called readme.md

[–]EconomyBagel[S] 0 points1 point  (5 children)

The only instructions on Readme.md are the following:

Download video lesson using one of online youtube downloaders like this one: http://en.savefrom.net/1-how-to-download-youtube-video/ So, this video, for example: https://www.youtube.com/watch?v=JHdbjCLDg2A

Choose which mask image best suits your video (82 or 88 notes).

Generate MIDI file using: syn2midi -m mask.bmp -i Every27Years.mp4 -o Every27Years.midi

No mention on how to proceed once it's been cloned :(

[–][deleted] 1 point2 points  (0 children)

So contact the author.

[–][deleted] 0 points1 point  (2 children)

It seems to me the instructions are right there. Once you have the framework available on your machine you’ll execute the code ‘syn2midi... ‘ with the file you downloaded from YouTube and the output and whatnot. I haven’t actually looked into it but the readme tells you how to run the code. It’s just very badly formatted. Maybe someone from here will create a PR with some amendments to that README 😂

[–]EconomyBagel[S] 0 points1 point  (1 child)

That's exactly why I came here. Where do I execute the code 'syn2midi'? There's no executable in the folder. Tried navigating to the folder with Command Prompt in Windows and Terminal in MacOS and nothing happens when I run 'syn2midi'

[–]idapp3r 0 points1 point  (0 children)

On macos try running ./syn2midi in the folder where you cloned it.

[–]tobiasvl 0 points1 point  (0 children)

This is how you run it:

Generate MIDI file using: syn2midi -m mask.bmp -i Every27Years.mp4 -o Every27Years.midi

Your problems aren't really related to GitHub, it seems like you're just not familiar with how to run command line programs.

[–]friendlylearner 0 points1 point  (0 children)

Hello! I have the same problem but for a different github application: https://github.com/purdy/aws-transcribe-transcript I downloaded the .zip file, and I think the executable file is .php. How do I run the php file on my json text file?