CycleGAN-Music-Style-Transfer icon indicating copy to clipboard operation
CycleGAN-Music-Style-Transfer copied to clipboard

Questions about data

Open guanfaqian opened this issue 5 years ago • 8 comments

Congratulations on your groundbreaking work!

I know that you and the musegan's data are different from the audio track.But I can't understand the difference in time.

His time is 496. Yours seems to be 416, but you write directly to 64, which means that your four bars are a phrase and there is no bar length for him. Is this the meaning?

guanfaqian avatar Oct 18 '18 01:10 guanfaqian

His time is 4X96. Yours seems to be 4X16, but you write directly to 64, which means that your four bars are a phrase and there is no bar length for him. Is this the meaning?

你能给我留给邮箱吗?

guanfaqian avatar Oct 18 '18 01:10 guanfaqian

Hi, thanks. In MuseGAN paper, they sampled each bar by a sampling rate of 96 time steps. While in our case, each phrase is composed of four consecutive bars. Each bar is sampled by a sampling rate of 16 time steps, which means that the shortest possible note is the 16th note. I think you could take a look at the dataset part in our paper, it should be clear enough. But just contact us if you have any confusions.

sumuzhao avatar Oct 18 '18 20:10 sumuzhao

I don't seem to see the code in your data processing section. Does your original data use LPD or LMD? Can you send me a copy of the data processing part of the code? Thank you very much.

guanfaqian avatar Oct 22 '18 01:10 guanfaqian

No, I didn't use LPD or LMD. You can download via the link in Datasets part in ReadMe. Please read ReadME file carefully. Basically, everything has been introduced clearly. For the data preprocessing, you can refer to Testfile.py and convert_clean.py, in which I have made quite a lot comments.

sumuzhao avatar Oct 22 '18 07:10 sumuzhao

Your processing data code is only available to a single instrument. I am trying to get npy files for 5 instruments.But I don't understand the format of the following steps.

def get_merged(multitrack): ... return Multitrack(None, tracks, multitrack.tempo, multitrack.downbeat, multitrack.beat_resolution, multitrack.name)

Can you send me the code that generates 5 tracks that final is npy file ? Thanks!

guanfaqian avatar Oct 24 '18 12:10 guanfaqian

I use the packages pretty_midi and pypianoroll a lot in my project. They are really nice tools to deal with MIDI files. I recommend you could read their documents and learn how to play with MIDI files. In pypianoroll, for example, class Track can define single track and class Multitrack have the method get_merged_pianoroll(). Generally, it's not that hard if you spend some time on it. Good luck.

sumuzhao avatar Oct 24 '18 18:10 sumuzhao

Ok. I will take a closer look. thank you

guanfaqian avatar Oct 25 '18 01:10 guanfaqian

我在我的项目中经常使用包 pretty_midi 和 pypianoroll。它们是处理 MIDI 文件的非常好的工具。我建议您可以阅读他们的文档并学习如何使用 MIDI 文件进行演奏。例如,在 pypianoroll 中,类 Track 可以定义单轨,类 Multitrack 有方法 get_merged_pianoroll()。通常,如果您花一些时间在上面,这并不难。祝你好运。

Hello, I think the convert_clean.py used in the second step of data preprocessing_ There is a problem with the converter function in it. It cannot implement the function when installing the package you specified

dedededefo avatar Dec 01 '22 15:12 dedededefo