Franco Pasut Web Site

  • it
  • About
  • Contact
  • Posts
  • Privacy

Posts

December 30, 2021

LilyPond, ties and voices (advanced)

The object of this article

The object of the article is the same as my this previous article but now I have composed, using the LilyPond language, a short score for piano with a little bit more complex voices and ties combinations.

I have also created a colour image highlighting the points of interest.

The following terms from the LilyPond lexicon must, of course, be regarded:

  • oneVoice: a single voice line
  • voiceOne: the upper melody line of a polyphonic composition
  • voiceTwo: the lower melody line of a polyphonic composition

And now let’s have a look at the LilyPond code

Here’s the complete LilyPond code in which you will find each line commented and, in particular, the crossing points shown in the score below.:

read more
December 1, 2021

LilyPond, ties and voices

LilyPond: ties and voices

In the default LilyPond configuration, it is not possible to tie a note in a single-voice with the same note but belonging to a contextual multi-voices environment.

I recently had to resolve an author’s passage involving just such a problem and asked for help to the amazing LilyPond community.

So I learned a new “trick” that I would like to share with everyone: you can change the context in which ties operate.

read more
October 23, 2021

LilyPond: anacrusis, tuplets, multiple voices

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:

read more
October 9, 2021

Vim: some modalities to open single or multiple documents

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.

read more
October 1, 2021

Vim: searching for text containing a slash or a question mark

Vim: the search command

To activate a text search in Vim, press one of the following trigger keys in your keyboard:

  • the slash "/" key (do not confuse with the back-slash "\" key)
  • the question mark key.

By pressing the slash "/" key will activate a forward search.

By pressing the question mark "/" key will activate a backward search.

To move the cursor to the results in your document, press the "n" key (mnemonic for “next”). To invert the direction of the cursor, press the "N" key, (“upper n”).

read more
September 21, 2021

Vim, Markdown, Snippets, UltiSnips: how to get a well-formatted link with a single command

Objective of this post

The objective of this post is to get a correctly formatted link in Markdown by merging in a single command a fragment of text and an Internet address previously saved in the Vim clipboard.

Of course I assume that everybody that’s reading this post knows how to create a well formatted link in Markdown, i.e. text in square brackets and URL in round brackets.

Why did I ask myself this question?

read more
  • ««
  • «
  • 8
  • 9
  • 10
  • 11
  • 12
  • »
  • »»
© Franco Pasut Web Site 2026