2 This file is part of LilyPond, the GNU music typesetter.
4 Copyright (C) 1996--2014 Jan Nieuwenhuizen <janneke@gnu.org>
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
8 the Free Software Foundation, either version 3 of the License, or
9 (at your option) any later version.
11 LilyPond is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with LilyPond. If not, see <http://www.gnu.org/licenses/>.
23 #include "audio-element.hh"
27 class Audio_item : public Audio_element
30 Audio_column *audio_column_;
34 Audio_column *get_column () const;
36 virtual void render ();
39 Audio_item (Audio_item const &);
40 Audio_item &operator = (Audio_item const &);
43 class Audio_dynamic : public Audio_item
52 class Audio_span_dynamic : public Audio_element
56 vector<Audio_dynamic *> dynamics_;
60 virtual void render ();
61 void add_absolute (Audio_dynamic *);
62 Audio_span_dynamic (Real min_volume, Real max_volume);
65 class Audio_key : public Audio_item
68 Audio_key (int acc, bool major);
74 class Audio_instrument : public Audio_item
77 Audio_instrument (string instrument_string);
82 class Audio_note : public Audio_item
85 Audio_note (Pitch p, Moment m, bool tie_event, Pitch transposition, int velocity);
87 // with tieWaitForNote, there might be a skip between the tied notes!
88 void tie_to (Audio_note *, Moment skip = 0);
89 Audio_note *tie_head ();
90 virtual string to_string () const;
95 Audio_dynamic *dynamic_;
102 class Audio_piano_pedal : public Audio_item
109 class Audio_text : public Audio_item
114 TEXT = 1, COPYRIGHT, TRACK_NAME, INSTRUMENT_NAME, LYRIC,
118 Audio_text (Audio_text::Type type, const string &text_string);
124 class Audio_tempo : public Audio_item
127 Audio_tempo (int per_minute_4);
132 class Audio_time_signature : public Audio_item
135 Audio_time_signature (int beats, int one_beat);
141 class Audio_control_function_value_change : public Audio_item
144 // Supported control functions.
147 BALANCE = 0, PAN_POSITION, EXPRESSION, REVERB_LEVEL, CHORUS_LEVEL,
148 // pseudo value for representing the size of the enum; must be kept last
152 Audio_control_function_value_change (Control control, Real value);
154 // Information about a context property corresponding to a control function
155 // (name, the corresponding enumeration value, and the allowed range for the
156 // value of the context property).
157 struct Context_property
165 // Mapping from supported control functions to the corresponding context
167 static const Context_property context_properties_[];
173 int moment_to_ticks (Moment);
174 Real moment_to_real (Moment);
175 Moment remap_grace_duration (Moment);
177 #endif // AUDIO_ITEM_HH