Dear Andrew,

This looks very helpful. Is there any way to use the sed command to create a
new file, just like gregorio turns a .gabc into a .tex? With the "sed -f" do
you always have to just copy and paste it into the new location? Please
forgive my ignorance of command lines.

Yours,

br Innocent, op

On Thu, Jun 3, 2010 at 9:20 AM, Andrew Hinkley <[email protected]>wrote:

> Hello,
>
> I'm in the process of resetting all the Psalms for Sunday for the Choir I
> sing in. In order to make my life a little easier, especially when setting
> to a different tone, I wrote up a bunch of sed scripts and some codes. To
> use them, create a file with the extension ".tone", and add the line(s) of
> the Psalms, and insert the codes the same way you would with a gabc. Then
> process the file with the appropriate script (see Liber Usualis, from
> pp113), and the result will be gabc code.
>
> The gzipped tar contains all the sed scripts. I'm working on uniting them
> into a single Perl file, though it still has a few issues to iron out.
>
> I'm going to upload .tone files of all the Latin Psalms (first lines only
> at this stage, unless the Liber Usualis has it in several parts) to the
> Caecilia Project shortly (www.caecilia-project.org). I'm also working on a
> script that will automatically boldface and italicize the appropriate
> syllables for the text of the Psalms. Because of the amount of time that
> will involve I'm only doing the first lines at the moment (any volunteers
> for rest of the text? :) Once I've done all the Psalms from the Liber
> Usualis and I intend to do the same for the Psalms for the Mass.
>
>
>
> so, for an examplle from Psalm 109:
>
>      (\key)(\x) Di(\i1)xit(\i2) Dó(\i3)mi()nus()
> Dó(\mm\3m)mi(\mm0\2m)no(\mm1\1m) me(\m)o:(\m1) *(:) Se()de() a(\3n)
> dex(\nn\2n)tris(\nn1\1n) me(\n)is:(\n1) (::)
>
> and to set it in tone 8g, (in this instance the file is called 109.tone)
>
>      sed -f 8g.sed 109.tone
>
> will output
>
>      (c4)() Di(g)xit(h) Dó(j)mi(j)nus(j) Dó(j)mi(j)no(j) me(k)o:(j.) *(:)
> Se(j)de(j) a(j) dex(i)tris(j) me(h)is:(g.) (::)
>
>
> Here's a brief explanation of how the codes work:
>
> \key     - c3/c4/f3 (In hindsight I should have called it \clef)
> \i1     - first syllable
> \i2     - second syllable
> \i3     - third syllable
> \t     - 'tenor' or default note
>
> \f     - flex
>
> \mm     - penultimate stress (first part/cantor part)
> \mm0     - (optional) additional syllable(s) in section \mm (section \mm
> being from syllable \mm up to but not including \m)
> \mm1     - final syllable in section \mm
>
> \3m     - third syllable before \m
>
> \m1     - end of \m section (from \m to end of part)
> \m     - final stress in cantor part
>
> \nn     - penultimate stress
> \n     - final stress
>
> \x     - placeholder to prevent sed removing empty brackets
>
>
> Empty pairs of brackets will default to \t. I don't see a point in entering
> \t when I can do it automatically :)
>
> Some brackets contain more than one code. This causes no problem - the sed
> scripts ignore all codes that are not relevant to the tone.
>
>
> HTH,
>
> Andrew.
>
> _______________________________________________
> Gregorio-users mailing list
> [email protected]
> https://mail.gna.org/listinfo/gregorio-users
>
>
_______________________________________________
Gregorio-users mailing list
[email protected]
https://mail.gna.org/listinfo/gregorio-users

Reply via email to