Posts

Showing posts from October, 2021

LilyPond: anacrusis, tuplets, multiple voices

Image
A very short introduction LilyPond is an incredible and powerful language for writing music scores. Every musician should learn it. But writing code is more suitable for programmers than for musicians and many attempts have to be made to write complete scores. In this post I show you some coding snippets regarding anacrusis, tuplets and multiple voices (If you’re reading this article you know what they are). Here is the basic patterns for each of them in LilyPond language: Musical item LilyPond pattern Anacrusis \partial x followed by a x duration note Tuplets \tuplet x/y {n1 n2 n3} : n(1, 2, 3) are the notes with “x” total duration instead of “y” Multiple voices << {musical expression 1} \\ {musical expession 2} , that’s the double backslash construct Colored items in a real score In the image shown at the top of the page you can see a fragment of a real score, limited to the first two measures, from the Piano Sonata No. 2 op. 19 , Sona

Vim: some modalities to open single or multiple documents

Image
Synthesis table Some Vim commands we’ll talk about: I write To get vim document_name To run Vim and open a document gvim document_name To run Graphical Vim and open a document vim file-1 file-2 file-n To run Vim and open multiple documents vim -p file-1 file-2 file-n To run Vim and open multiple documents in tabs vim -o file-1 file-2 file-n To run Vim and open multiple documents in separate windows with horizontal rows vim -O file-1 file-2 file-n To run Vim and open multiple documents in separate windows with vertical rows sp doc_name To split a new file while Vim is running vs doc_name To vertical split a new file while Vim is running tabe doc_name To open a new file in a dedicated tab while Vim is running Vim offers a lot of options to open or create single or multiple files from the command line or while the application is running. Here is a brief review, with a few video clips, of the commands I use most frequently, under