From 1fba147e54d801206dbdfeae1ddacc8461567a2c Mon Sep 17 00:00:00 2001 From: David Kastrup Date: Mon, 18 Nov 2013 12:37:59 +0100 Subject: [PATCH] Issue 3668: Let NullVoice have an existence in MIDI Issue 3457 omitted to introduce the NullVoice context into MIDI. This implementation is incomplete (see the TODO in performer-init.ly), but at least it does not let the context structure go off the deep end in MIDI. --- ly/performer-init.ly | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/ly/performer-init.ly b/ly/performer-init.ly index 0a1ac2d374..1a383607f1 100644 --- a/ly/performer-init.ly +++ b/ly/performer-init.ly @@ -26,6 +26,7 @@ \name Staff \accepts Voice \accepts CueVoice + \accepts NullVoice \defaultchild Voice \consists "Staff_performer" @@ -181,6 +182,20 @@ \name "Devnull" } +\context { + \type "Performer_Group" + \name NullVoice + \alias Staff + \alias Voice + %% needed for melismata + %% TODO: at least the tie performer likely does not work without the + %% Note_performer, but I don't know how to shut note output off in + %% MIDI. + \consists "Tie_performer" + \consists "Beam_performer" + \consists "Slur_performer" +} + \context { \Staff \name TabStaff -- 2.39.5