-
Notifications
You must be signed in to change notification settings - Fork 0
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
timeline delete / add [clips, track] #61
Comments
depends on a lot of stuff (delete clip, automatically move to next clip) x - should delete the section the cursor is on
also depends on having undoManager working
asideit would be cool to create a clip and then record into it? |
wang-edward
changed the title
timeline delete / add track
timeline delete / add [clips, track]
Dec 8, 2024
noteshow to delete a clip
deleteButton.onClick = [this]
{
auto sel = selectionManager.getSelectedObject (0);
if (auto clip = dynamic_cast<te::Clip*> (sel))
{
clip->removeFromParent();
}
else if (auto track = dynamic_cast<te::Track*> (sel))
{
if (! (track->isMasterTrack() || track->isMarkerTrack() || track->isTempoTrack() || track->isChordTrack()))
edit->deleteTrack (track);
}
}; |
clip slot list? getting clip at cursor pos int getIndexOfNextTrackItemAt (TimePosition) override;
TrackItem* getNextTrackItemAt (TimePosition) override;
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
see te::Edit::deleteTrack() and te::Edit::insertNewAudioTrack()
The text was updated successfully, but these errors were encountered: