From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/95262 Path: news.gmane.org!not-for-mail From: Robert Blackstone Newsgroups: gmane.comp.tex.context Subject: ConTeXt and LilyPond problem Date: Tue, 28 Jun 2016 12:46:24 +0200 Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Content-Type: multipart/mixed; boundary="Apple-Mail=_44353B5A-20DC-4C43-81A9-5E1B03FC8678" X-Trace: ger.gmane.org 1467110834 5101 80.91.229.3 (28 Jun 2016 10:47:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 28 Jun 2016 10:47:14 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Tue Jun 28 12:47:02 2016 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1bHqXl-0000XO-KX for gctc-ntg-context-518@m.gmane.org; Tue, 28 Jun 2016 12:47:01 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 9D42B10490; Tue, 28 Jun 2016 12:46:41 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id CAIUWw1aM5ZH; Tue, 28 Jun 2016 12:46:40 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id EAA73104F1; Tue, 28 Jun 2016 12:46:40 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 21DAD10499 for ; Tue, 28 Jun 2016 12:46:39 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id HjaRYl3o_mGl for ; Tue, 28 Jun 2016 12:46:38 +0200 (CEST) Original-Received: from mail-wm0-f47.google.com (mail-wm0-f47.google.com [74.125.82.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 5785310490 for ; Tue, 28 Jun 2016 12:46:28 +0200 (CEST) Original-Received: by mail-wm0-f47.google.com with SMTP id r201so21391526wme.1 for ; Tue, 28 Jun 2016 03:46:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:subject:from:in-reply-to:date:message-id:references:to; bh=yjuExSJzOSmDVxHtAI4ab8DoOGGb0zDWBib5XfsPk+Y=; b=RvSN+GmFdnBgKsDfNLpY1CkYDnqNlNN+FV2SZRyrgkpKxGyH7XPDzXsCsQaV5zNS9z MCX/1de7jheM3WhGaUnzqhg1SjB0qz8FSJyEz3K7y9eey/RI7+bw2iV6RJgyru+gcdSf HvscLWYFyUPmqZdNZedJ5j5D3wZDPr+qVyyec0hNpWW0/r9THcA6DZCA0kow6oNblR8h Yj2t+64Hp2Gg+3YwJCZKmD5FKN8+Pvdqu02sY8jg0Mz8ZP9WDjdzUclZDk1RaXuZ1wYU usJJE7srp8NgnWG5eyH05W6XRE/Zs6682qkDWuUSRX7ZSkXInnRQdNUKuRW+vNSAcDj0 HeBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date :message-id:references:to; bh=yjuExSJzOSmDVxHtAI4ab8DoOGGb0zDWBib5XfsPk+Y=; b=kOI4FV/tqmwSZcmhfKvAhaynKZMG1LSpkLPnwevLLZhej3AoEPFzC2oTeiFgqtI/Mh frbtKk6xWnqlK0k6qLEE4ETJdDu2E0T+nUZEQMIP6Fjxy/M4Q3uUD2vSBP+CZ+0c+SOJ R7QSets/sRBDkqxR6cdRbcZlZpJs0PEjwrsYyvy51tckdx8Vp5RUHksLcXr7zOutA6X5 td6oStwlVra3Yg4+7pLbl1IaKgSfLSml8syn6pXEajcd8hO7EfyFI0+CJk7E6hTkAY7F PqW0KD+ijKOpGH/pDFZOv1Egi8HqjvGy8NGjZvTH0ZJX9Rj1D1Le2jHkbPZfao3fz5D8 9vMQ== X-Gm-Message-State: ALyK8tILUxx5TdWtYeGVQ+wLyuGaqCgnpwfn/eLzolNnqRhrAa/zzZQ2evVtyFaOv170rg== X-Received: by 10.194.67.101 with SMTP id m5mr2590012wjt.129.1467110787860; Tue, 28 Jun 2016 03:46:27 -0700 (PDT) Original-Received: from [192.168.0.6] ([92.109.36.130]) by smtp.gmail.com with ESMTPSA id m5sm16391881wmm.10.2016.06.28.03.46.26 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 28 Jun 2016 03:46:27 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.1878.6) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.org gmane.comp.tex.context:95262 Archived-At: --Apple-Mail=_44353B5A-20DC-4C43-81A9-5E1B03FC8678 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On 28 Jun 2016, at 12:00 ,=20 Jean-Pierre Delange wrote >=20 > Please, would you mind to answer these questions : >=20 > 1) Are you running ConTeXt as "Standalone" or with another install = with LaTeX ? > 2) Is ConTeXt running under Linux or Windows ? > 3) What is the example you've tried to test ? > 4) Did you have created manually a "temp" file and a buffer as it is = said within the Context Garden page : "This works with ConTeXt MkII and = MkIV, but takes only the first page of multi-pages scores, and you must = create the folder "lilytemp" manually" ? >=20 Hello Jean-Pierre, Thanks for your reaction. Ref. 1: I am running ConTeXt as a standalone Ref. 2: ConTeXt is running under Mac OSX 10.9.5. I use TeXShop as the = editor. Ref. 3: I attach the example to this mail Ref. 4: Yes, I created a folder "lilytemp". It is in the same directory = as the .tex-file I want to compile. But I have no idea how and where to = create a buffer. My guess is that ConTeXt does not find the or even a lilypond executable = but I cannot see how and where I have to supply the path. Best regards, Robert Blackstone --Apple-Mail=_44353B5A-20DC-4C43-81A9-5E1B03FC8678 Content-Disposition: attachment; filename=LilyPond-ConTeXt-example-27-06-16.tex Content-Type: application/octet-stream; x-unix-mode=0644; name="LilyPond-ConTeXt-example-27-06-16.tex" Content-Transfer-Encoding: 7bit % LilyPond-ConTeXt-example-27-06-16 %Ref.:http://wiki.contextgarden.net/LilyPond %Subject: \def\LILYTEMP{lilytemp} % name of folder for LilyPond/buffer files \def\ParseLilypondFile#1% #1 is the name of the output file {\ctxlua{thirddata.parselilypondfile("#1")}} \startluacode thirddata = thirddata or {} -- create temp folder if missing if not lfs.isdir("\LILYTEMP") then lfs.mkdir("\LILYTEMP") end function thirddata.parselilypondfile(name) -- include all systems (pages) -- name is like \LILYTEMP/mainfile-temp-lilypond-21.pdf logs.report("LILYPOND","name='" .. name .. "'") local scname = string.gsub(name, '%.pdf$', '-systems.count') local syco = tonumber(io.loaddata(scname)) or 0 for nr = 1, syco do logs.report("LILYPOND","including system no." .. nr) context("\\setupfloats[location=right,frame=off]\\placefigure[none]{}{\\externalfigure[" .. string.gsub(name, '%.pdf$', '-' .. nr) .. "]}") end end \stopluacode \usemodule[filter] \defineexternalfilter[lilypond] [continue=yes, cache=yes, readcommand=\ParseLilypondFile, directory=\LILYTEMP/, output={\externalfilterbasefile.pdf}, filtercommand={lilypond -dbackend=eps -dinclude-eps-fonts -dno-gs-load-fonts -o"\LILYTEMP/\externalfilterbasefile" "\externalfilterinputfile"}] \starthiding \setuplayout[textwidth=6in] % matches line-width below \definefontfeature[main][protrusion=quality, expansion=quality] \definefontfamily[mainface][rm][Adobe Jenson Pro][features=main] \setupbodyfont[mainface,13pt] \setupalign[hz,hanging] \stophiding \setuppapersize[A4][A4] \usemodule[simplefonts] \setmainfont[Verdana] \setupbodyfont[10pt] %\setupinterlinespace[line=18pt] \definebodyfontenvironment[10pt][interlinespace=19pt] \definebodyfontenvironment[9pt] \definebodyfontenvironment[8pt] \setupindenting[yes,20pt]%,next] \setuppagenumbering[alternative=doublesided] \setuplayout[ location=doublesided, topspace=10mm, header=10mm,` footer=10mm, height=260mm, %was 266,265,263 backspace=40mm, leftmargin=12mm, rightmargin=0mm, width=fit] \starttext \input zapf \startlilypond \layout{ indent=0\mm ragged-right = ##f } \paper { myStaffSize = #20 #(define fonts (make-pango-font-tree "Adobe Jenson Pro" "Myriad Pro" "Myriad Pro" (/ myStaffSize 20))) line-width=6\in oddFooterMarkup=##f oddHeaderMarkup=##f bookTitleMarkup = ##f scoreTitleMarkup = ##f } melody = \relative c'' { \clef treble \key c \major \time 4/4 a b c d } text = \lyricmode { Aaa Bee Cee Dee } upper = \relative c'' { \clef treble \key c \major \time 2/4 a4 b c d } lower = \relative c { \clef bass \key c \major \time 2/4 a2 c } \score { << \new Voice = "mel" { \autoBeamOff \melody } \new Lyrics \lyricsto mel \text \new PianoStaff << \new Staff = "upper" \upper \new Staff = "lower" \lower >> >> \layout { \context { \Staff \RemoveEmptyStaves } } } \stoplilypond \input tufte \stoptext --Apple-Mail=_44353B5A-20DC-4C43-81A9-5E1B03FC8678 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly90ZXguYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHA6Ly9mb3VuZHJ5LnN1cGVsZWMu ZnIvcHJvamVjdHMvY29udGV4dHJldi8Kd2lraSAgICAgOiBodHRwOi8vY29udGV4dGdhcmRlbi5u ZXQKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX18= --Apple-Mail=_44353B5A-20DC-4C43-81A9-5E1B03FC8678--