Community Forums Archive

Go Back

Subject:Markers - numbering above 99
Posted by: Phil Sayer
Date:11/28/2007 6:49:02 AM

This is driving me mad... I'm sure that in the past I've been able to see three digits in marker flags, but not right now...

I'm working on a single file that consists of 351 questions - I need each one as a separate file, so I'm dropping markers before each one, ready to convert to regions, so I can then derive files from the regions.

I can't get SF 9.0 to display marker flag numbering above two digits. It is dropping the markers onto the "master" file, and a test suggests that it is in fact numbering them, but unless it'll display the numbers, I'm in trouble. (If I make a mistake, I won't be aware until I get to the very end.)

Is there a way to alter the markers display properties to make it show three digits?

Thanks in advance for any help, folks!

Subject:RE: Markers - numbering above 99
Reply by: Kennymusicman
Date:11/28/2007 8:39:41 AM

Ish.

Testing it here, I can indeed get to 99, and then the 100th is an "empty" flag. However, if you alter the preferences you can add a prefix/leading 0 or other naming convention, which does increment the naming and does go past 100 - it just means the text is to the right of the flag, not inside it.
Any help?

Ken

Subject:RE: Markers - numbering above 99
Reply by: ForumAdmin
Date:11/28/2007 8:47:47 AM

Right. The number inside the tombstone is something that was not present in past versions. It is the "runtime" index of the marker and you can use the number keys to navigate from 1-99 as you can in Vegas. To get numbers above 99, enable one of the auto-labeling options (which means the number is persisted as the name of the marker). Auto-labeling was enabled by default in previous versions, since nothing else was displayed.

J.

Message last edited on11/28/2007 8:48:05 AM byForumAdmin.
Subject:RE: Markers - numbering above 99
Reply by: Phil Sayer
Date:11/28/2007 9:26:42 AM

Thanks to you both... I did try changing this Labelling option while delving for a solution, but doing this while the file is open doesn't seem to work.... bear with me!

Question 1 Will it work to leave the "Prefix" box blank, have the counter starting at 1, and inserting leading zeros in field width set to 3?

Question 2 I'm now up to marker number 112 or so... I don't mind deleting the last few to get down to 99, but should I then save the existing file (with Save Metadata checked of course!) and then re-open the file? Would that enact the changed option?

Question 3 Come to think of it, would I even need to delete those last dozen or so markers, or would a Save and re-open do it, after I've changed the marker Labelling option?

Thanks again for your help so far... it has been a long process to find all the beginnings and ends of the questions, and I'm anxious not to mess up hours of work already done!

Subject:RE: Markers - numbering above 99
Reply by: Kennymusicman
Date:11/28/2007 2:00:40 PM

You are already at 112? - leave everything as is.
Options, preferences, labels.

at "marker labels" section

check label markers (tick it)
prefix = none
check use counter, start at 113
insert leading zeros if you need them/want them.

The next marker will then automitaclly be 113, then 114, and so forth.


Subject:RE: Markers - numbering above 99
Reply by: ForumAdmin
Date:11/29/2007 8:05:55 AM

1) Yes, new markers will start getting named 001, 002, etc.
2) No, the labels only apply to new markers, not ones that already exist. The index is reset when the file is open. You could do what Ken suggested, but that won't re-name markers 1-99 for you.
3) No, see #2. Again, the difference here is that none of the markers have names (or in your case, numbers) that are actually in the file, they just have the numbers we assign them when we load the file.

The easiest solution is to just write a script to re-name(number) all the markers in a file sequentially. Here's one that will work.


using System;
using SoundForge;

public class EntryPoint {

public string Begin(IScriptableApp app)
{
ISfFileHost file = app.CurrentFile;
if (null == file)
return "Open a file before running this script.";

if (null == file.Markers)
return "No markers to rename.";

if (0 == file.Markers.Count)
return "No markers to rename.";

int idUndo = file.BeginUndo("Re-name all markers");
int ixMarker = 1;
foreach (SfAudioMarker mk in file.Markers)
{
if (mk.HasLength)
continue;
mk.Name = ixMarker.ToString("000");
ixMarker++;
}

file.EndUndo(idUndo, false);
return null;
}

public void FromSoundForge(IScriptableApp app)
{
ForgeApp = app;
app.SetStatusText(String.Format("Script '{0}' is running.", Script.Name));
string szMessage = Begin(app);
app.SetStatusText((szMessage != null) ? szMessage : String.Format("Script '{0}' is done.", Script.Name));
}

public static IScriptableApp ForgeApp = null;

} //EntryPoint


Just save it as a *.cs file to your Script Menu folder and run it from the Tools->Scripting menu. Note that it will re-number then sequentially from left to right.

J.

Message last edited on11/29/2007 8:27:51 AM byForumAdmin.
Subject:RE: Markers - numbering above 99
Reply by: Phil Sayer
Date:12/7/2007 2:41:37 AM

I haven't checked back for a while, so forgive the lack of response from me. Your combined advice worked just fine, so thank you all for your input.

Sadly, when I posted here, I also put in a request to Tech Support, who took an unreal NINE days to reply, and then gavce the wrong answer... they said it couldn't be done.

:o(

Go Back