emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: adam <ahcnz@orcon.net.nz>
To: Oliver Heck <oliver.heck@posteo.de>, emacs-orgmode@gnu.org
Subject: Re: Org-babel-lilypond always renders full pages
Date: Thu, 02 Apr 2020 12:23:34 +1300	[thread overview]
Message-ID: <4b4d8c35b580aa4f6f17de84aaf17e2cf13e662b.camel@orcon.net.nz> (raw)
In-Reply-To: <dc2a62c2-09f6-7b61-daeb-aef818f6fba4@posteo.de>

On Wed, 2020-04-01 at 11:02 +0200, Oliver Heck wrote:
> > Off-topic:  Oliver is exporting/engraving to a fixed-resolution png. An alternative
> > is to export scalable vector graphics of the score to PDF.
> 
> PDF does scale better, but it does not help because I need the original 
> size embedded.
> 
> Logically it works fine when full staves are rendered (at least they all 
> have an identical scaling factor then), but I often have very small 
> snippets like single bars or fretboard diagrams.
> 
> Oliver
> 

Understood, Oliver.  And I'm sorry for crashing in. 


FYI,  I have had the most success in using the pdf-example.org  of this page, 
https://orgmode.org/worg/org-contrib/babel/languages/ob-doc-lilypond.html 

as that exports EPS to PDF, not what you're after. 

I've cut  pdf-example.org down and include an import from  midi2ly  as shown here. 

This helps, as the imported ly file has its \layout { .. } block which 
is informative and allows further editing along with the imported score.  


* Importing from MIDI 
Lorem ipsum dolor sit amet, consectetur ... etc 

#+LaTeX: \linebreak
#+ATTR_LaTeX: width=17cm
#+begin_src lilypond :file patterns-1.eps :noweb yes

\include "patterns1-midi.ly"

#+end_src

#+RESULTS:
[[file:patterns-1.eps]]

  reply	other threads:[~2020-04-01 23:23 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-29 21:11 Org-babel-lilypond always renders full pages Oliver Heck
2020-03-29 23:58 ` Jonathan Gregory
2020-03-30  4:34   ` Oliver Heck
2020-03-30  5:35     ` stardiviner
2020-03-30  5:54       ` Oliver Heck
2020-03-30  5:58       ` stardiviner
2020-03-31 13:48         ` Jonathan Gregory
2020-03-31 21:36           ` adam
2020-04-01  9:02             ` Oliver Heck
2020-04-01 23:23               ` adam [this message]
2020-04-02  8:35           ` stardiviner
2020-04-02 22:56             ` Jonathan Gregory
2020-04-05  3:10               ` stardiviner
2020-04-06 21:39                 ` Nick Dokos
2020-03-31 13:43     ` Jonathan Gregory
2020-03-31 14:54       ` Oliver Heck
2020-03-30  6:55   ` Oliver Heck

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4b4d8c35b580aa4f6f17de84aaf17e2cf13e662b.camel@orcon.net.nz \
    --to=ahcnz@orcon.net.nz \
    --cc=emacs-orgmode@gnu.org \
    --cc=oliver.heck@posteo.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).