Whither ActivityPub?

Two things after that last post:

  1. the correct solution to the theme problem is to create a Child Theme of which I looked at the docs and contemplated spending my afternoon crafting that for my short 4-line hack, or just use Emacs Tramp to capture those lines, do the Theme upgrade, refresh, paste back and save. Emacs won.
  2. nothing went out! Or almost nothing. Followers did not receive the post, but they did receive an edit I made to the profile.

So this post is really a test while I follow what logs there are in hopes something shows as having changed since two posts ago…

Returning after a long gap…

It has been a while, and this poor blog was not so much neglected as it became broken, as did a rush of other web services, all of them caused by ill-effects of well-intended upgrades. It was amazing, really, the damage that could be caused by something like an added mimetype mapping, totally stymied all support channels, similarly an old java app vs a remote API silently switched to HTTPS (Java8 does not follow redirects). And then however it happened when Debian decides to upgrade only command-line php8.3 to 8.4 and excessively weird things happen.

And those all now back in action, my attention returns here, having forgotten nearly everything I did learn about \(\LaTeX\) math and Lilypond support (I have notes, no worries) although I can report an answer to the puzzle of the previous posts, the extraneous paragraph tags WordPress likes to insert, I’m not sure who suggested it, but all it took was tagging the following to the end of wp-content/themes/twentysixteen/functions.php

// Prevent WP from adding <p> tags on all post types
function disable_wp_auto_p( $content ) {
  remove_filter( 'the_content', 'wpautop' );
  remove_filter( 'the_excerpt', 'wpautop' );
  return $content;
}
add_filter( 'the_content', 'disable_wp_auto_p', 0 );

So thank you to whom ever it was that hipped me to that trick. It fixes blank spaces and also fixes the annoying footnote issue. Yay, three cheers for the Fediverse!

Back to the posting problem, I’d long since forgotten what the block was but drafting this post was a clear reminder: while the error says the backend is undefined, what it means is the elpa version of the ox-wp.el is broken, or I broke it somehow, and while there is a function in the kit to regenerate this file, don’t do it! I’m sure there is a trick, however a better trick turned out to be fetching the version from the git repo.

And here we are.

Hello? LilyPond?

Further Adventures in LilyPond

Ok, this is a very naive exploration of what needs to be done in the hands of someone who, sure, knows how to code in elisp but hasn’t since long before the whole Doom Emacs renaissance and use-package and countless other things, plus, being lazy, I won’t read the code unless it’s the last option. So …

Continue reading “Hello? LilyPond?”

Hello, Lilypond

Explorations in music engraving via org-mode

Somewhere there’s Music

If I can express the speed of light, what about sound? My next quest in this adventure is leveraging org-babel to generate snippets of music notation. Like, how difficult can that be?

On my way in, I know very little. I might know a great deal about music notations, sure, but all I know of Lilypond is two decades1 old and even then I was more into Musescore. What I do know of Lilypond is it is emaculately academic about notation, and that sounds like a nice thing to have.

From what I (dimly) recall, it retains a latex-like feel to the notation. It can’t be any worse than CSound, which is a topic in itself. For starters, though, is it possible to not only render some snip of score, but to have the process render and ready a MIDI? That’s the proof of concept du jour.
Adventures in Org-Babel-Lilypond