Re: [frogs] updated patches |
[ Thread Index |
Date Index
| More lilynet.net/frogs Archives
]
- To: frogs@xxxxxxxxxxx
- Subject: Re: [frogs] updated patches
- From: Andrew Hawryluk <ahawryluk@xxxxxxxxx>
- Date: Sat, 17 Jan 2009 17:24:12 -0700
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=OQ+/GjFo5F3Ou+EPMgaEnJXM4DBEyo9XloYy9FFiVgY=; b=Y5LdqcytjflzpSiRXfDUDRxt9Z8hSbqP1WWBC8hu5HbUH0Xq4mO5oPab69nR2fqpjO EtDFIKvtIHzWAqR8wU1WKvGNCfZrJGv1IJicWmCbwaj5mQ5eXGVl4o/QEdveoWwagh88 sIL6Gcxbdmt2X3s1gisyJPH7+D5pnRoKPkmNM=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=XyBjkDlCADXHi6m5Ap3rB6l/ct9U4MgiXFsSyey+DqLbYdqUHPE/EaG7bXQ4qGnCLn YZL2krS+Y7nICHQVwm8lsd+XvCIC7/5UggvITeFs2TsQU+CARTN8u2VPe6+2W5GQP0ER liW/qj3e1zBz/4D4m4CU+2n1sdFJvuB4iMemk=
On Sat, Jan 17, 2009 at 12:25 PM, Carl D. Sorensen <c_sorensen@xxxxxxx> wrote:
> On 1/17/09 10:09 AM, "Andrew Hawryluk" <ahawryluk@xxxxxxxxx> wrote:
>> Here's my docstrings with the @var references. Thanks for your help, Carl!
>
> oops -- no patch attached.
>
Second attempt at attaching files.
Andrew
From 26e97b064a5ce5a1fec7e31114bc6496f9ed6d26 Mon Sep 17 00:00:00 2001
From: andrew <andrew@obi-wan.(none)>
Date: Fri, 9 Jan 2009 12:18:48 -0700
Subject: [PATCH] Added docstrings
---
ly/music-functions-init.ly | 12 ++++++++----
ly/predefined-fretboards-init.ly | 4 ++--
2 files changed, 10 insertions(+), 6 deletions(-)
diff --git a/ly/music-functions-init.ly b/ly/music-functions-init.ly
index a112b67..1a27967 100644
--- a/ly/music-functions-init.ly
+++ b/ly/music-functions-init.ly
@@ -12,11 +12,12 @@
#(use-modules (srfi srfi-1))
acciaccatura =
-#(def-grace-function startAcciaccaturaMusic stopAcciaccaturaMusic)
+#(def-grace-function startAcciaccaturaMusic stopAcciaccaturaMusic
+ (_i "Create an acciaccatura"))
addQuote =
#(define-music-function (parser location name music) (string? ly:music?)
- (_i "Add a piece of music to be quoted ")
+ (_i "Add a piece of music to be quoted")
(add-quotable parser name music)
(make-music 'SequentialMusic 'void #t))
@@ -27,7 +28,7 @@ afterGrace =
#(define-music-function
(parser location main grace)
(ly:music? ly:music?)
-
+ (_i "Create grace note(s) after a main music expression.")
(let*
((main-length (ly:music-length main))
(fraction (ly:parser-lookup parser 'afterGraceFraction)))
@@ -50,6 +51,7 @@ afterGrace =
applyMusic =
#(define-music-function (parser location func music) (procedure? ly:music?)
+ (_i"Apply a given function to a music expression")
(func music))
@@ -93,6 +95,8 @@ autochange =
applyContext =
#(define-music-function (parser location proc) (procedure?)
+ (_i"Modify context properties procedurally.
+ Applications include: checking bar numbers, smart octavation.")
(make-music 'ApplyContext
'origin location
'procedure proc))
@@ -244,7 +248,7 @@ grace =
addInstrumentDefinition =
#(define-music-function
(parser location name lst) (string? list?)
-
+ (_i"Create a detailed list of the necessary changes for use with instrumentSwitch")
(set! instrument-definitions (acons name lst instrument-definitions))
(make-music 'SequentialMusic 'void #t))
diff --git a/ly/predefined-fretboards-init.ly b/ly/predefined-fretboards-init.ly
index df88ee7..5ee0ca6 100644
--- a/ly/predefined-fretboards-init.ly
+++ b/ly/predefined-fretboards-init.ly
@@ -21,8 +21,8 @@
addChordShape =
#(define-music-function (parser location key-symbol tuning shape-definition)
(symbol? pair? string-or-pair?)
- "Add chord shape @code{shape-definition} to the @code{chord-shape-table}
-hash with the key @code{(cons key-symbol tuning)}."
+ (_i "Add chord shape @code{shape-definition} to the @code{chord-shape-table}
+hash with the key @code{(cons key-symbol tuning)}.")
(hash-set! chord-shape-table
(cons key-symbol tuning)
shape-definition)
--
1.5.4.3
From 66debbf146ce9d92b385563bdfd9a65eef2c4d01 Mon Sep 17 00:00:00 2001
From: andrew <andrew@obi-wan.(none)>
Date: Sat, 17 Jan 2009 10:06:37 -0700
Subject: [PATCH] Docs: added @var to 8 doc strings
---
ly/music-functions-init.ly | 14 ++++++++------
ly/predefined-fretboards-init.ly | 4 ++--
2 files changed, 10 insertions(+), 8 deletions(-)
diff --git a/ly/music-functions-init.ly b/ly/music-functions-init.ly
index 1a27967..705641f 100644
--- a/ly/music-functions-init.ly
+++ b/ly/music-functions-init.ly
@@ -13,11 +13,12 @@
acciaccatura =
#(def-grace-function startAcciaccaturaMusic stopAcciaccaturaMusic
- (_i "Create an acciaccatura"))
+ (_i "Create an acciaccatura where @var{startAcciaccaturaMusic} contains
+ the grace notes and a slur extends to @var{stopAcciaccaturaMusic)"))
addQuote =
#(define-music-function (parser location name music) (string? ly:music?)
- (_i "Add a piece of music to be quoted")
+ (_i "Add a piece of @var{music} to be quoted and give it a @var{name}")
(add-quotable parser name music)
(make-music 'SequentialMusic 'void #t))
@@ -28,7 +29,7 @@ afterGrace =
#(define-music-function
(parser location main grace)
(ly:music? ly:music?)
- (_i "Create grace note(s) after a main music expression.")
+ (_i "Create @var{grace} note(s) after a @var{main} music expression.")
(let*
((main-length (ly:music-length main))
(fraction (ly:parser-lookup parser 'afterGraceFraction)))
@@ -51,7 +52,7 @@ afterGrace =
applyMusic =
#(define-music-function (parser location func music) (procedure? ly:music?)
- (_i"Apply a given function to a music expression")
+ (_i"Apply a given function, @var{func}, to a @var{music} expression")
(func music))
@@ -95,7 +96,7 @@ autochange =
applyContext =
#(define-music-function (parser location proc) (procedure?)
- (_i"Modify context properties procedurally.
+ (_i"Modify context properties with a @var{procedure}.
Applications include: checking bar numbers, smart octavation.")
(make-music 'ApplyContext
'origin location
@@ -248,7 +249,8 @@ grace =
addInstrumentDefinition =
#(define-music-function
(parser location name lst) (string? list?)
- (_i"Create a detailed list of the necessary changes for use with instrumentSwitch")
+ (_i"Create a detailed @var{list} of the necessary changes for use with
+ instrumentSwitch and give it a @var{name}")
(set! instrument-definitions (acons name lst instrument-definitions))
(make-music 'SequentialMusic 'void #t))
diff --git a/ly/predefined-fretboards-init.ly b/ly/predefined-fretboards-init.ly
index 5ee0ca6..544f9fd 100644
--- a/ly/predefined-fretboards-init.ly
+++ b/ly/predefined-fretboards-init.ly
@@ -21,8 +21,8 @@
addChordShape =
#(define-music-function (parser location key-symbol tuning shape-definition)
(symbol? pair? string-or-pair?)
- (_i "Add chord shape @code{shape-definition} to the @code{chord-shape-table}
-hash with the key @code{(cons key-symbol tuning)}.")
+ (_i "Add chord shape @var{shape-definition} to the @var{chord-shape-table}
+hash with the key @var{(cons key-symbol tuning)}.")
(hash-set! chord-shape-table
(cons key-symbol tuning)
shape-definition)
--
1.5.4.3