From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id oEmhKdEOKmFmIwEAgWs5BA (envelope-from ) for ; Sat, 28 Aug 2021 12:24:17 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id APhGJdEOKmFXKAAAbx9fmQ (envelope-from ) for ; Sat, 28 Aug 2021 10:24:17 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 0DAF127929 for ; Sat, 28 Aug 2021 12:24:17 +0200 (CEST) Received: from localhost ([::1]:54688 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mJvVY-0000dY-1H for larch@yhetil.org; Sat, 28 Aug 2021 06:24:16 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50912) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mJvUq-0000dA-Ks for emacs-orgmode@gnu.org; Sat, 28 Aug 2021 06:23:32 -0400 Received: from mail-pf1-x430.google.com ([2607:f8b0:4864:20::430]:40617) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mJvUo-0004m6-VC for emacs-orgmode@gnu.org; Sat, 28 Aug 2021 06:23:32 -0400 Received: by mail-pf1-x430.google.com with SMTP id r13so7590241pff.7 for ; Sat, 28 Aug 2021 03:23:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=Qsw9XgqyOzZ/mX178lB3RQ9mr5h+jSzweCA2jY9tkvo=; b=ivG9LgFocRiTSj9pmnMgU1XphPSqgkNYAe5Aek5H2B58XACAJe1g6W4QLhiRV5vNri nLVvDHmXbqsePZZCB89ZBYqWzjTYuxwyEcddepKUd4FFhzVIJsAjl3Psi6jjjyvPE9EO FlVVoYmw4DeDlloWv5vf8ezn2/yKRqOGYiNDNF0JoANID5F8d0LZsRSGTJtIVtMkclW7 F922qmq/7OMTgFo3HATt2dksCYPcfpdNedorMsnVf2sz5rjlMcLcE8vnUQwAL6aII7xT P28ZveAKC1LMVTPAEsd2A+kCDeapb7N7n7K/cQzR7Tl39fKpEOeaIm/U+6/oa3lfeilL fdLQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=Qsw9XgqyOzZ/mX178lB3RQ9mr5h+jSzweCA2jY9tkvo=; b=FZF9qSByknYHliQMxs/xYjCTowWYILYifSGpZAMRnr44v2m6LMyNHNCjWpVqeBwLyM 30q0OWU++GGB1zmEqm6qMhLFaSL91FkDMgprEMulrEk/a8DdsHXzaZA0/ZnGo5hNNXJ8 n+F2tPE2KpUTMGgGsGPl0NOwWtMrMHKy868u6/h+rZt3Ev7OTJLxRrYRHyhHJdwdbTe3 Vju0UZ1WIsNGNITkbPx0F07l1IFmfLpagiLbWzhBPyw/SW79KUuoY1H+1GkTa/BRWDLp fmLt5LOfJSmB4TXEdX8I3AK6RhICFTeqPFRhdzCnjEim1AqALjgxmo3GdDTU+4RdHx6i KhsQ== X-Gm-Message-State: AOAM5324bnfKVdT2GrjVTH/8RYwYXOMRkwgxBlLZDki7Gq0SjXB4HmNn R+CPs8JIx9QeiFJusnoOv6J7eLlZXYFhuRJiR76vw4jr X-Google-Smtp-Source: ABdhPJyhxVu2P30rEVosOqp/qKvBPjftGKAIKr9wyjJN8PR+U4V761ZFK9XSRlArcBUV+5dGrMS8FbfpprvpefZ5umk= X-Received: by 2002:aa7:8617:0:b0:3f2:3cb2:33bc with SMTP id p23-20020aa78617000000b003f23cb233bcmr12013221pfn.36.1630146209328; Sat, 28 Aug 2021 03:23:29 -0700 (PDT) MIME-Version: 1.0 References: <87zgt4tlcy.fsf@autistici.org> <87ilzsm1d9.fsf@alphaville.usersys.redhat.com> <87tujall3t.fsf@alphaville.usersys.redhat.com> In-Reply-To: <87tujall3t.fsf@alphaville.usersys.redhat.com> From: Michael Maurer Date: Sat, 28 Aug 2021 12:27:58 +0200 Message-ID: Subject: Re: ob-lilypond.el doesn't generate midi files To: emacs-orgmode@gnu.org Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2607:f8b0:4864:20::430; envelope-from=maurer.michael@gmail.com; helo=mail-pf1-x430.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1630146257; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=Qsw9XgqyOzZ/mX178lB3RQ9mr5h+jSzweCA2jY9tkvo=; b=X9ef6urK6Lg1eS/hYx1IrSN/hMZy/eiZoD4ad60cpQfEE/m8QXBz6YASHkWJeWG4+pxm2T 2U05DfNkeYwVohC33enMlgRppqH7eKnODQs2G9DktWmDQZNVP7KQdWc48NUpevP9EaFx/e G/ZtTzYEIhUKpIW2MWmyED7ZpG5Nifca6O2mbsPPffcQ5O7oYKUH3rG1xZa0vm0nvVFVf2 PjeMXO6UeyU4BcBeNVb/qPtuNf5+8mDlTkaqhZoxeWBNFLUGAlR21GG7SE/NnxFudovvob 8sgaf+OF0Ox6MTDmq6NRXpkyRaJ7ma0iWP7SVPp1L8B5EDfoDAkFr0X2s9uU+Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1630146257; a=rsa-sha256; cv=none; b=KLq3xK4Pw/yNrmB0Y5jSoTbc6L14XApYkQLjIuSWfwehb3zh4Li6irHX5Tmd/29/1XNSSq OfEM56lMVQAb4+Vk/BO4I1mIXeTVIXrm/vrka+L6G/iKDCD9YDTbZEQxLLYfjBeU/1yTs1 maWpoD98W/KpPkh3TSGx/U5c5k1hsamnRBv+nwWwvE64/j4zcAiXhZbLT9WB0baOdipIkn n4CCn4+7D7kBCP+cHLKxq0K9lavxn4A9gsdawJHkrsNQwCawlHvTOS4SYLxViD3jB4Tsxh UMfyeSTL2U5aJkZOnf4UynfXGxaGizW4YSVGbcRLXstwlFtzuLed1ae9Wqq6sw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=ivG9LgFo; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -1.63 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=ivG9LgFo; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 0DAF127929 X-Spam-Score: -1.63 X-Migadu-Scanner: scn0.migadu.com X-TUID: RCHdwcPaq4gP On Fri, 27 Aug 2021 at 21:55, Nick Dokos wrote: > > Michael Maurer writes: > > > On Thu, 26 Aug 2021 at 21:54, Nick Dokos wrote: > > >> > >> Michael Maurer writes: > >> > >> > On Thu, 26 Aug 2021 at 15:03, Jonathan Gregory 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). > > > > > > Oh, I thought that it did not generate a midi file at all. So you are > saying that the midi file *is* produced and you *can* play it from the > command line with vlc, correct? > > If that's the case, check the value of the variable > `org-babel-lilypond-midi-command' and see what happens when you invoke > that command on the midi file. In my case, the command is `xdg-open' > (I'm using Gnome on Fedora 33) and it opens Banshee to play it which > fails because of missing codecs. I installed the missing codecs and > `xdg-open foo.midi' sends the file to Banshee which can play it fine. > > Also check if `org-babel-lilypond-arrange-mode' is t or nil: behavior > is very different depending on that. So out of curiosity I changed the entry for midi-player to random gibberish, and the same message pops up, "no midi file generated so can't play". Toggling arrange-mode has no effect. I can play the generated midi-file from the command line using vlc just fine.