Stable: 2.5.2
Development: 2.6-alpha3
Hi, is there a howto on using marks?
I have a few questions. I want to pass some audio to sox:
ExecCommand1 = "play %f trim %S =%E"
I will do more with it, but for now I just want to test getting something to play.
How do I clear one or both marks?
Does the order of the marks matter? I.E. does the ' need to be before the " in the audio?
I made a " before making the ', and rewound and tried to make a ' but it isn't working.
TIA
slackhead
Mon, 2020-03-30 00:42
Permalink
A slight problem:
A slight problem:
I've used =%E because sox uses '=<time>' to mark an end point, rather than a duration, but %E isn't substituted for the end point because there isn't a space before it I guess.
Is there a duration parameter?
I'll use a shell script for now.
jcf
Mon, 2020-03-30 00:51
Permalink
Fun With Marks
The intention of the marks is to provide a way for users to mark a section of audio which can then be processed by a user-specified command (as you have done with your
ExecCommand1
). Currently, MOC's built-in commands make no use of them, so beyond setting them their usage is up to you.This should work, but I see in my test that the '
=
' in the command string is causing MOC to not replace the '%E
', so we end up with something like:This is obviously a bug in MOC's parsing (which I shall look into). In the meantime, you may have to wrap it in a trivial script then call that in
ExecCommand1
.Yeah, I make quite heavy use of it for rough audio editting.
The only way to do that (at present) is to select another audio then return to the original one.
The order does not matter to MOC, but if it's important to your usage then you should check for correct ordering within a wrapping script.
That should work; it does for me. You might have to clarify what you mean by "not working".
P.S., Our posts crossed.
jcf
Tue, 2020-03-31 09:13
Permalink
Target Acquired
Okay, I've found the source of the problem. It will take a little reworking to remedy it.
slackhead
Tue, 2020-03-31 14:45
Permalink
Thanks jcf
Thanks jcf.
I think I have a problem with seeing the marks with the theme I use, so I'll experiment a bit to find something a bit more visible.