OLD | NEW |
1 /* | 1 /* |
2 This file is part of LilyPond, the GNU music typesetter. | 2 This file is part of LilyPond, the GNU music typesetter. |
3 | 3 |
4 Copyright (C) 1996--2020 Jan Nieuwenhuizen <janneke@gnu.org> | 4 Copyright (C) 1996--2020 Jan Nieuwenhuizen <janneke@gnu.org> |
5 | 5 |
6 LilyPond is free software: you can redistribute it and/or modify | 6 LilyPond is free software: you can redistribute it and/or modify |
7 it under the terms of the GNU General Public License as published by | 7 it under the terms of the GNU General Public License as published by |
8 the Free Software Foundation, either version 3 of the License, or | 8 the Free Software Foundation, either version 3 of the License, or |
9 (at your option) any later version. | 9 (at your option) any later version. |
10 | 10 |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 } | 113 } |
114 | 114 |
115 void | 115 void |
116 Score_performer::finish (SCM) | 116 Score_performer::finish (SCM) |
117 { | 117 { |
118 SCM channel_mapping = get_property (context (), "midiChannelMapping"); | 118 SCM channel_mapping = get_property (context (), "midiChannelMapping"); |
119 bool use_ports = scm_is_eq (channel_mapping, ly_symbol2scm ("voice")); | 119 bool use_ports = scm_is_eq (channel_mapping, ly_symbol2scm ("voice")); |
120 performance_->ports_ = use_ports; | 120 performance_->ports_ = use_ports; |
121 recurse_over_translators | 121 recurse_over_translators |
122 (context (), | 122 (context (), |
123 MFP0_WRAP (&Translator::finalize), | 123 MFP_WRAP (&Translator::finalize), |
124 MFP0_WRAP (&Translator_group::finalize), | 124 MFP_WRAP (&Translator_group::finalize), |
125 UP); | 125 UP); |
126 } | 126 } |
127 | 127 |
128 void | 128 void |
129 Score_performer::one_time_step (SCM) | 129 Score_performer::one_time_step (SCM) |
130 { | 130 { |
131 // audio_column_ can be 0 when prepare has not been called. The | 131 // audio_column_ can be 0 when prepare has not been called. The |
132 // condition is triggered when Simple_music_iterator implicitly | 132 // condition is triggered when Simple_music_iterator implicitly |
133 // creates a Score context, like when writing | 133 // creates a Score context, like when writing |
134 // | 134 // |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 void | 175 void |
176 Score_performer::initialize () | 176 Score_performer::initialize () |
177 { | 177 { |
178 performance_ = new Performance; | 178 performance_ = new Performance; |
179 performance_->unprotect (); | 179 performance_->unprotect (); |
180 set_property (context (), "output", performance_->self_scm ()); | 180 set_property (context (), "output", performance_->self_scm ()); |
181 performance_->midi_ = context ()->get_output_def (); | 181 performance_->midi_ = context ()->get_output_def (); |
182 | 182 |
183 Translator_group::initialize (); | 183 Translator_group::initialize (); |
184 } | 184 } |
OLD | NEW |