|
Add Staff.midiCC context property, refactor handling of MIDI control changes
Setting the Staff.midiCC context property to a list of (control number,
control value) pairs, where every control number and control value must
be an integer between the inclusive range from 0 to 127, will send the
corresponding raw control changes to the MIDI output on the MIDI channel
associated with the current context. For example,
\set Staff.midiCC = #'((7 . 100)) will set the MIDI volume control (#7)
to 100.
Most of the logic for handling MIDI control value initialization from
context properties (in Staff_performer::new_audio_staff),
changes (in
Midi_control_function_performer::announce_function_value_change), and
value conversion for output (in
Midi_control_function_value_change::to_string), was moved into the new
Midi_control_change_announcer class. All MIDI control changes are now
encoded using {Audio,Midi}_control_change items. This change makes the
old {Audio,Midi}_control_function_value_change classes obsolete.
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+374 lines, -185 lines) |
Patch |
 |
M |
Documentation/changes.tely
|
View
|
|
1 chunk |
+22 lines, -0 lines |
0 comments
|
Download
|
 |
M |
Documentation/notation/input.itely
|
View
|
|
3 chunks |
+18 lines, -2 lines |
0 comments
|
Download
|
 |
M |
lily/audio-item.cc
|
View
|
|
1 chunk |
+5 lines, -17 lines |
0 comments
|
Download
|
 |
M |
lily/include/audio-item.hh
|
View
|
|
1 chunk |
+4 lines, -27 lines |
0 comments
|
Download
|
 |
M |
lily/include/lily-proto.hh
|
View
|
|
2 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
A |
lily/include/midi-cc-announcer.hh
|
View
|
|
1 chunk |
+64 lines, -0 lines |
0 comments
|
Download
|
 |
M |
lily/include/midi-item.hh
|
View
|
|
1 chunk |
+13 lines, -13 lines |
0 comments
|
Download
|
 |
A |
lily/midi-cc-announcer.cc
|
View
|
|
1 chunk |
+139 lines, -0 lines |
0 comments
|
Download
|
 |
M |
lily/midi-control-function-performer.cc
|
View
|
|
5 chunks |
+43 lines, -35 lines |
0 comments
|
Download
|
 |
M |
lily/midi-item.cc
|
View
|
|
4 chunks |
+11 lines, -63 lines |
0 comments
|
Download
|
 |
M |
lily/staff-performer.cc
|
View
|
|
4 chunks |
+40 lines, -26 lines |
0 comments
|
Download
|
 |
M |
scm/c++.scm
|
View
|
|
1 chunk |
+7 lines, -0 lines |
0 comments
|
Download
|
 |
M |
scm/define-context-properties.scm
|
View
|
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
scm/lily.scm
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
Total messages: 6
|