Working with marks

MOC version: 
Version : 2.6-alpha3 built from SVN today

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

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.

Hi, is there a howto on using 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.

ExecCommand1 = "play %f trim %S =%E"

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:

play somefile.flac trim 10 =%E

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.

I will do more with it, but for now I just want to test getting something to play.

Yeah, I make quite heavy use of it for rough audio editting.

How do I clear one or both marks?

The only way to do that (at present) is to select another audio then return to the original one.

Does the order of the marks matter? I.E. does the ' need to be before the " in the audio?

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.

I made a " before making the ', and rewound and tried to make a ' but it isn't working.

That should work; it does for me. You might have to clarify what you mean by "not working".

P.S., Our posts crossed.

Okay, I've found the source of the problem. It will take a little reworking to remedy it.

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.