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

[Question] How to make the Song longer? #26

Open
MrKinauJr opened this issue Jul 26, 2019 · 5 comments
Open

[Question] How to make the Song longer? #26

MrKinauJr opened this issue Jul 26, 2019 · 5 comments

Comments

@MrKinauJr
Copy link

Hello,
i really like the music but its kinda short. Any Idea on how to make the Song longer? Like 2 mins?

@ahfriedman
Copy link

For the generated songs during training, changing MAX_LENGTH in train.py (128 should be 3-4 mins)

For the live editor, changing num_measures should increase the length of the song.

@MrKinauJr MrKinauJr reopened this Jul 27, 2019
@MrKinauJr
Copy link
Author

MrKinauJr commented Jul 27, 2019

i changed all that but it still only saves about 35 seconds. Do i need to change something to save for longer?

@ahfriedman
Copy link

What did you change the variables to and how are you generating the files (during training from train.py, live_editor.py etc)?

@MrKinauJr
Copy link
Author

Yeah i did change all the variables. I tried making a mod that instandly saves a Song after starting the composer.py . With that Mod i got a 4min Song but without anything in it. If i remove the Mod it just errors out. Traceback (most recent call last): File "composer.py", line 542, in <module> play() File "composer.py", line 521, in play draw_notes(screen, notes_surface) File "composer.py", line 316, in draw_notes pygame.surfarray.blit_array(notes_surface, get_pianoroll_from_notes(current_notes)) File "composer.py", line 299, in get_pianoroll_from_notes measure = np.rot90(notes[ix]) IndexError: index 16 is out of bounds for axis 0 with size 16

@Daza99
Copy link

Daza99 commented Jan 3, 2021

What about for those who are not programmers? Is there a way to make it play longer within the app itself?

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

3 participants