unofficial mirror of
 help / color / mirror / Atom feed
* passing variables to lilypond code blocks
@ 2021-02-18 11:42 Victor A. Stoichita
  0 siblings, 0 replies; only message in thread
From: Victor A. Stoichita @ 2021-02-18 11:42 UTC (permalink / raw)
  To: emacs-orgmode

I’m trying to understand how ob-lilypond handles variables.
I have the following minimal example which compiles correctly:
#+begin_src lilypond :file test.png :cache no
  myVar = { e f g}
  \relative c' { a b c d \myVar }

Can I move the definition of myVar to a header argument of the 
source block?
When I write this: 
#+begin_src lilypond :file test.png :cache no :var 
 myVar="{ e f g }"
  \relative c' { a b c d \myVar }
The compiler complains: "unknown escaped string: `\myVar'".

This makes me think that myVar is not passed at all to the code 
block. What is the correct way to do this?

I know that I can do it with noweb syntax. However, I would prefer 
to use header args because I need those variables in all lilypond 
code blocks. Ultimately, I plan to pass them from 


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-02-18 11:45 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-18 11:42 passing variables to lilypond code blocks Victor A. Stoichita

unofficial mirror of

This inbox may be cloned and mirrored by anyone:

	git clone --mirror orgmode/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 orgmode orgmode/ \
	public-inbox-index orgmode

Example config snippet for mirrors.
Newsgroups are available over NNTP:

AGPL code for this site: git clone http://ou63pmih66umazou.onion/public-inbox.git