llSourcell / Music_Generator_Demo

Music Generator Demo by @Sirajology on Youtube
246 stars 123 forks source link

MIDI import #12

Open Birkoniajack opened 7 years ago

Birkoniajack commented 7 years ago

Hi is there anything I need to import for the 'import midi' statement in midi manipulation? I get no module "MIDI" error

Birkoniajack commented 7 years ago

Renamed the midi folder to 'midi' to see if that was it but then it says Pattern isn't an attribute of midi

Eumi commented 7 years ago

u have installed this version of things? +numpy==1.11.0 +tensorflow==0.12.0 +pandas==0.19.2 +msgpack-python==0.4.8 +glob2==0.5 +tqdm==4.11.2 +python-midi==0.2.4

thats whats needed to run

Birkoniajack commented 7 years ago

Ahh I was missing the python-midi install, but tried to install it and I got this message:

Collecting python-midi Using cached python-midi-v0.2.4.tar.gz Complete output from command python setup.py egg_info: Traceback (most recent call last): File "", line 1, in File "/tmp/pip-build-rijbime5/python-midi/setup.py", line 42 print "No sequencer available for '%s' platform." % platform ^ SyntaxError: Missing parentheses in call to 'print'

----------------------------------------

Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-rijbime5/python-midi/

Any ideas?

Birkoniajack commented 7 years ago

UPDATE - was using pip3 musn't work on python3

sadpotatoissad commented 7 years ago

Hi @Birkoniajack I have the same issue how did you fix it exactly?

darthdeus commented 7 years ago

You can install python-midi on Python 3 using the feature/python3 branch as follows:

pip install git+https://github.com/vishnubob/python-midi@feature/python3
sadpotatoissad commented 7 years ago

Got it thanks

On Friday, May 12, 2017, Jakub Arnold notifications@github.com wrote:

You can install python-midi on Python 3 using the feature/python3 branch as follows:

pip install git+https://github.com/vishnubob/python-midi@feature/python3

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/llSourcell/Music_Generator_Demo/issues/12#issuecomment-301073063, or mute the thread https://github.com/notifications/unsubscribe-auth/ANobzj18g2Kcs0-OKU842xQoUy8ChgYWks5r5FsugaJpZM4NDovD .

jainbhawu commented 6 years ago

While installing midi for python 3 i got this error. How can we resolve it?

pip3 install git+https://github.com/vishnubob/python-midi@feature/python3 Collecting git+https://github.com/vishnubob/python-midi@feature/python3 Cloning https://github.com/vishnubob/python-midi (to feature/python3) to c:\users\dell\appdata\local\temp\pip-iifmigw7-build Error [WinError 2] The system cannot find the file specified while executing command git clone -q https://github.com/vishnubob/python-midi C:\Users\Dell\AppData\Local\Temp\pip-iifmigw7-build Cannot find command 'git'

sayelaoda commented 6 years ago

@darthdeus this page is not found......it is 404 now. https://github.com/vishnubob/python-midi@feature/python3

Cattleman commented 6 years ago

I am having same page not found --- 404

DeepsMoseli commented 6 years ago

anyone found a work around this?

Ddedalous commented 6 years ago

I also need a workaround anyone?

DeepsMoseli commented 6 years ago

hey,

i have even decided to use raw audio frequencies for a start

https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail Virus-free. www.avast.com https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

On 20 February 2018 at 01:32, Ddedalous notifications@github.com wrote:

I also need a workaround anyone?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/llSourcell/Music_Generator_Demo/issues/12#issuecomment-366826887, or mute the thread https://github.com/notifications/unsubscribe-auth/Abt3Ui8rhkGXzj48Vf6PJEiG082f14C6ks5tWgSmgaJpZM4NDovD .

-- This message and attachments are subject to a disclaimer. Please refer to http://www.it.up.ac.za/documentation/governance/disclaimer/ for full details.

darthdeus commented 6 years ago

@jainbhawu You're missing git, look at the last line in your error message

@sayelaoda The page is not supposed to work in the browser. I don't know why you would want that anyway, since the command I showed still works, as I just copy pasted it from my original command, ran it, and it installed midi.

Just to make it crystal clear, the command is:

pip install git+https://github.com/vishnubob/python-midi@feature/python3

The git+https bit is important, don't just copy&paste part of the url. This is how you tell pip to install from a branch on GitHub. I don't understand what issues the others are having, as the original command works unchanged.

sayelaoda commented 6 years ago

@darthdeus,thanks your answer.

Sequential-circuits commented 6 years ago

please note you may have to also run apt-get install libasound2-dev otherwise you may get a bs error about alsa

JiamingXu1515 commented 5 years ago

https://github.com/vishnubob/python-midi@feature/python3 but this website is 404

lawakesh23 commented 5 years ago

Collecting git+https://github.com/vishnubob/python-midi@feature/python3 Cloning https://github.com/vishnubob/python-midi (to revision feature/python3) to c:\users\lawakesh\appdata\local\temp\pip-req-build-tu19ye3s Error [WinError 2] The system cannot find the file specified while executing command git clone -q https://github.com/vishnubob/python-midi C:\Users\lawakesh\AppData\Local\Temp\pip-req-build-tu19ye3s Cannot find command 'git' - do you have 'git' installed and in your PATH?

@darthdeus i found this error, please help me and i am running this :pip install git+https://github.com/vishnubob/python-midi@feature/python3

EulerGCH commented 5 years ago

@lawakesh23 and @JiamingXu1515 - This works for me ( Using Anaconda).

1.- install git: conda install -c anaconda git

2.- install "module midi" from new repository: pip install --upgrade git+https:// github.com/louisabraham/python3-midi