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

add a split tool in the score timeline [sf#17] #17

Open
kunstmusik opened this issue Feb 18, 2014 · 4 comments
Open

add a split tool in the score timeline [sf#17] #17

kunstmusik opened this issue Feb 18, 2014 · 4 comments
Assignees
Labels

Comments

@kunstmusik
Copy link
Owner

This tool would be like the scissors in most DAW
software. It would allow the user to divide one object
into two or more pieces. For example, one 10 second
GenericScore object could be cut into two objects, one
3 seconds and one 7 seconds. The 7 second block could
also be cut into three segments, perhaps 2 seconds, 2
seconds, and 3 seconds.

@ghost ghost assigned kunstmusik Feb 18, 2014
@tjingboem
Copy link
Collaborator

Another option to split an Object could be like the Split in Reaper
Pressing S on the keyboard creates a red line (like the green and yellow line), and the selected Object(s) can be split.

The left Object can leave their events intact, while in the right Object all the events should change their start time to 0.
This can be done be doing: begin start time events of right Object minus duration of left cut Object.

@kunstmusik
Copy link
Owner Author

The issue with this has always been that it makes sense for certain objects like pianorolls but not so much for other objects (i.e., script-based objects like PythonObject or ObjectBuilder). I think one way to deal with this is to have objects be marked as "splittable" and to implement that for objects which make sense. I'll have to think about how deal with the user-interaction to make it feel right but can work that out through testing and iteration.

@cianoc
Copy link

cianoc commented Oct 26, 2020

Alternatively you could just have a rule that something like a python object just duplicates when split. I'm not sure if that's a good idea, but it would make it consistent.

In effect it would be a duplicate, but the old object would now end at the line, and the new object would start at the line and extend to the old position. I can see this being useful in certain situations, and it makes a certain amount of sense I think.

@cianoc
Copy link

cianoc commented Oct 26, 2020

What happens when I split a piano roll that repeats, or has time behavior set to 'none'. The former isn't clear to me. Should the new object start half way through the pattern and then it loops back to the beginning, which feels logical but a nightmare in many other ways.

For the latter you'd get an empty clip, which feels logical and so is probably fine.

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

No branches or pull requests

3 participants