emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Michael Maurer <maurer.michael@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: ob-lilypond.el doesn't generate midi files
Date: Fri, 27 Aug 2021 16:53:15 +0200	[thread overview]
Message-ID: <CAH-0+bBFbBJJF2x9YR1Tk5XSkE4mjz-uKcsvLvXdtc6-NYy2DA@mail.gmail.com> (raw)
In-Reply-To: <87ilzsm1d9.fsf@alphaville.usersys.redhat.com>

On Thu, 26 Aug 2021 at 21:54, Nick Dokos <ndokos@gmail.com> wrote:
>
> Michael Maurer <maurer.michael@gmail.com> writes:
>
> > On Thu, 26 Aug 2021 at 15:03, Jonathan Gregory <jgrg@autistici.org> wrote:
> >>
> >> Hi
> >>
> >> On 26 Aug 2021, Michael Maurer wrote:
> >>
> >> > I've installed lilypond and customized ob-lilypond to use the
> >> > appropriate helper programs, but although it generates & shows
> >> > pdfs just fine, generating a midi file it does not. I execute
> >> > tangle on the codeblock, and all I get is "No midi file
> >> > generated so can't play!". org-version 9.4.6 emacs 27.2 Win 10
> >>
> >> Can you also send a MWE of the code you're using to generate the
> >> score?
> >>
> >
> > I used a test file I copied over from Frescobaldi
> >
> > #+begin_src lilypond :file test.pdf
> > \version "2.18.2"
> > \score {
> > \drums {
> >   \time 2/4
> >   sn16 sn8 sn16 sn8 sn8:32 ~
> >   sn8 sn8 sn4:32 ~
> >   sn4 sn8 sn16 sn16
> >   sn4 r4
> > }
> >   \layout { }
> >   \midi { }
> > }
> > #+end_src
> >
> > In Frescobaldi this gets me both midi-output and pdf. In Emacs with
> > org it does say "Midi output to test.midi", but then there's that "no
> > midi file generated" message.
> >
>
> What happens if you save the contents of the source block into a file
> and run lilypond on the file from the command line?
>

Both pdf and midi files get generated. Btw, ob-lilypond does generate
the midi file as well, it just doesn't want to play it/recognize it.
Maybe it's related to what helper app I've configured to open it? (but
why that doesn't make sense, it's vlc btw).


  reply	other threads:[~2021-08-27 14:49 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-26 10:37 ob-lilypond.el doesn't generate midi files Michael Maurer
2021-08-26 12:55 ` Jonathan Gregory
2021-08-26 15:55   ` Michael Maurer
2021-08-26 16:04   ` Michael Maurer
2021-08-26 19:50     ` Nick Dokos
2021-08-27 14:53       ` Michael Maurer [this message]
2021-08-27 19:54         ` Nick Dokos
2021-08-28  8:20           ` Maxim Nikulin
2021-08-28 10:27           ` Michael Maurer
2021-08-28 13:03             ` Jonathan Gregory
2021-08-28 16:18               ` Michael Maurer
2021-08-29 11:16                 ` Michael Maurer
2021-08-30 17:02                   ` Jonathan Gregory
2022-11-01  2:01                     ` Ihor Radchenko
2022-11-01 11:22                       ` Jonathan Gregory
2022-11-01 11:51                         ` Ihor Radchenko

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=CAH-0+bBFbBJJF2x9YR1Tk5XSkE4mjz-uKcsvLvXdtc6-NYy2DA@mail.gmail.com \
    --to=maurer.michael@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /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).