Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

problems running this code #1

Open
Redtile opened this issue Mar 16, 2017 · 8 comments
Open

problems running this code #1

Redtile opened this issue Mar 16, 2017 · 8 comments

Comments

@Redtile
Copy link

Redtile commented Mar 16, 2017

ok so im really rather new to python and this probably isnt the best code to start learning on but any way for some reason i can input most of the beginning code but when i get to the import deepmusic.songstruct as music it give me this error, " http://prntscr.com/ekikab " the rest of the code from the file How_to_generate_music_in_tensorflow_LIVE/deepmusic/composer.py i really dont know if this code is just supposed to be put into a python 3.5 terminal or if its just a concept, i have installed everything (other than opencv because idk how but i have the files) on the read me file and it seemed to work (that was through the cmd terminal) i've been trying to get similar code to work for a few days now and still cant because something like this gives me an error that i dont know how to trouble shoot and it is also really late at night so i dont even know if this is where i should be posting this or not, any way any help is greatly appreciated or even just code i can copy and paste into a python terminal and it just does it and brings up a interface showing me whats its doing but yeah, help please.

@Eumi
Copy link

Eumi commented Apr 10, 2017

i use windows 10 ....i have python installed in ....C:\python35 ....just in c ..when i wanna rum main.py that is located in C in the folder "musicai" ....i go to cmd and type in ..first
cd
to return to C:
than when i start the line looks like C:\python35\python.exe C:\musicai\main.py
after python.exe u press "space" so its not written together ...i hope this helps ..i had to figure all that stuff out myself too.

@IEEE-FELLOW
Copy link

@Eumi I use Windows 10 too ... and i run the main.py as u say,but i got the error:'
FileNotFoundError: [WinError 3] The system cannot find the specified path。: 'E:\How_to_generate_music_in_tensorflow_LIVE-master\data/midi\ragtimemusic'',could u please help me out?!thank u

@mmresult
Copy link

If you use Windows System.
modify the musicdata.py file like below

self.DATA_DIR_MIDI = 'data\\midi' # Originals midi files
self.DATA_DIR_PLAY = 'data\\play' # Target folder to show the reconstructed files
self.DATA_DIR_SAMPLES = 'data\\samples' # Training/testing samples after pre-processing

@eleansa
Copy link

eleansa commented Dec 10, 2017

Hi,

I was getting the same error as the @IEEE-FELLOW. After manually creating the folders data/midi/ragtimemusic, data/play, data/samples I am getting the following error.

raise ValueError('Empty dataset. Check that the folder exist and contains supported midi files.')
ValueError: Empty dataset. Check that the folder exist and contains supported midi files.

When I tried to add some midi file under data/midi/ragtimemusic folder I get the following.

Raw songs not found. Extracting from midi files...
File ignored 
Notes belong to the wrong tracks (6 instead of 0)
...
ValueError: Empty dataset. Check that the folder exist and contains supported midi files.

@llSourcell where can I find the correct midi files in order to run this code? Or how can I process my midi files and bring them to the right format in order to run this code?

Many thanks,
Eleanna

@AlexMuresan
Copy link

@eleansa I have been using files like the ones you can download around here: http://www.trachtman.org/ragtime/.
The format used for them is midi.

Hope this helps!

@eleansa
Copy link

eleansa commented May 12, 2018

Thanks very much for your response @AlexMuresan! I will try it out!

@AlexMuresan
Copy link

@eleansa I think one of the problems might be the MIDI file type.
As you can see here the only supported type is 1.

This Wikipedia article might help with understanding them, a bit:

A type 0 file contains the entire performance, merged onto a single track, while type 1 files may contain any number of tracks that are performed in synchrony. Type 2 files are rarely used[37] and store multiple arrangements, with each arrangement having its own track and intended to be played in sequence.

Let me know if it works for you.

@moseslv
Copy link

moseslv commented Feb 3, 2021

@eleansa I have been using files like the ones you can download around here: http://www.trachtman.org/ragtime/.
The format used for them is midi.

Hope this helps!

hi @eleansa ,
I came to this repo today, and it appears that the link you provided previously has expired.
Do you happen to know is there anywhere else we could get the right training midi data for this code?
Appreciate your help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants