I am trying to read something like the following in a textareaThere are other types of records but I am only interested in the ones which start with "|Note|". The field after "Pos:" will be compared to members of:Code:|Note|Dur:4th|Pos:n1 |Note|Dur:4th|Pos:n-3 |Note|Dur:4th|Pos:n0 |Note|Dur:4th|Pos:#2 |Note|Dur:4th|Pos:n3 |Note|Dur:4th|Pos:n-2 |Note|Dur:4th|Pos:#-2If there are other fields after Pos:, there will be a "|" or "!" instead of the end of the line.Code:var offsets = [ "n-6", "#-6", "n-5", "#-5", "n-4", "n-3", ... ]
I was able to run the split("\n") command against the textarea to break it into separate lines, but I couldn't search those lines.
I hope to add this as a new feature to ttr.htm.
TIA


Reply With Quote

Bookmarks