Tracktion / tracktion_engine

Tracktion Engine module
Other
1.19k stars 149 forks source link

how can we directly play a clip before insert track? #63

Closed imiskolee closed 2 years ago

imiskolee commented 2 years ago

hi:

I am want to preview a midi file on dragging into track, so, can we play it before insert track?

drowaudio commented 2 years ago

There's several ways to do this, one would be to create a new Edit to preview the file. You'd need to set it up to have the same synth etc. as the target track. Take a look at Edit::createEditForPreviewingFile.

The other approach would be to simply add the file to the track and play that region and just remove it if they decide not to add it.

Does that help?

imiskolee commented 2 years ago

@drowaudio is just 1 track in my case, so #2 it's better for me. thanks a lots!