X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fmidi-control-function-performer.cc;h=90ea063f736d1c3af3a884ba7cc5858506d1ff7e;hb=306c0929457ca5dd92a8f5edeb72515301e55c87;hp=36f21637763e5bf94686a6abcdc1c52157831156;hpb=0b544cfb7332615ef809b71b57ab656741311ae1;p=lilypond.git diff --git a/lily/midi-control-function-performer.cc b/lily/midi-control-function-performer.cc index 36f2163776..90ea063f73 100644 --- a/lily/midi-control-function-performer.cc +++ b/lily/midi-control-function-performer.cc @@ -1,9 +1,9 @@ /* This file is part of LilyPond, the GNU music typesetter. - Copyright (C) 2013--2014 by Heikki Tauriainen . + Copyright (C) 2013--2015 by Heikki Tauriainen . Adapted from performer implementations - Copyright (C) 1996--2014 Jan Nieuwenhuizen , + Copyright (C) 1996--2015 Jan Nieuwenhuizen , Han-Wen Nienhyus and others. LilyPond is free software: you can redistribute it and/or modify @@ -39,7 +39,7 @@ class Midi_control_function_performer : public Performer { public: TRANSLATOR_DECLARATIONS (Midi_control_function_performer); - DECLARE_LISTENER (announce_function_value_change); + void announce_function_value_change (SCM); ~Midi_control_function_performer (); void connect_to_context (Context *c); @@ -58,7 +58,7 @@ void Midi_control_function_performer::connect_to_context (Context *c) { c->events_below ()-> - add_listener (GET_LISTENER (announce_function_value_change), + add_listener (GET_LISTENER (Midi_control_function_performer, announce_function_value_change), ly_symbol2scm ("SetProperty")); } @@ -66,16 +66,14 @@ void Midi_control_function_performer::disconnect_from_context (Context *c) { c->events_below ()-> - remove_listener (GET_LISTENER (announce_function_value_change), + remove_listener (GET_LISTENER (Midi_control_function_performer, announce_function_value_change), ly_symbol2scm ("SetProperty")); } -IMPLEMENT_LISTENER (Midi_control_function_performer, - announce_function_value_change) void Midi_control_function_performer::announce_function_value_change (SCM sev) { - Stream_event *ev = unsmob_stream_event (sev); + Stream_event *ev = unsmob (sev); SCM sym = ev->get_property ("symbol"); if (!scm_is_symbol (sym)) return; @@ -125,6 +123,7 @@ ADD_TRANSLATOR (Midi_control_function_performer, /* read */ "midiBalance " "midiPanPosition " + "midiExpression " "midiReverbLevel " "midiChorusLevel ",