/*
This file is part of LilyPond, the GNU music typesetter.
- Copyright (C) 1996--2011 Jan Nieuwenhuizen <janneke@gnu.org>
+ Copyright (C) 1996--2014 Jan Nieuwenhuizen <janneke@gnu.org>
LilyPond is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
void
Score_performer::one_time_step (SCM)
{
+ // audio_column_ can be 0 when prepare has not been called. The
+ // condition is triggered when Simple_music_iterator implicitly
+ // creates a Score context, like when writing
+ //
+ // \score { { | c4 c c c } \midi { } }
+ //
+ // The same situation happens with the Score_engraver group, but it
+ // would appear not to suffer any bad side effects.
+
+ if (!audio_column_)
+ audio_column_ = new Audio_column (context ()->now_mom ());
if (to_boolean (context ()->get_property ("skipTypesetting")))
{
if (!skipping_)
Translator_group::initialize ();
}
-