Any command to only keep the first 10 seconds of a MIDI file?
Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I've tried some editors. They're very confusing. Is there a terminal command to just keep the first 10 seconds of a .mid file and remove the rest?
Thanks.
Not that I know about, at least not directly.
What editors have you tried? This should be somewhat simple for any decent editor as it is a pretty basic cut job.
Might use midicomp to gen a text file, trim it, then convert it back. I have not tried that.
Debian meta-package multimedia-midi recommends/suggests a lot of tools that have something to do with MIDI. Perhaps, you'll find among them what you're looking for.
Not that I know about, at least not directly.
What editors have you tried? This should be somewhat simple for any decent editor as it is a pretty basic cut job.
Might use midicomp to gen a text file, trim it, then convert it back. I have not tried that.
Midi isn't an audio format per se, it's a set of instruction you send to a synthesizer.
Cutting out 10s (while keeping it as a midi file) can prove to be tricky, because the instructions can include repetitions, or jumping back to a previous block etc.
Midi isn't an audio format per se, it's a set of instruction you send to a synthesizer.
Cutting out 10s (while keeping it as a midi file) can prove to be tricky, because the instructions can include repetitions, or jumping back to a previous block etc.
agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:95.0) Gecko/20100101 Firefox/95.0"
curl -A "$agent" https://www.midiworld.com/download/3964 -o rd.mid
file rd.mid
rd.mid: Standard MIDI data (format 1) using 13 tracks at 1/120
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.