- && newstate == UNISONO)
- {
- if (!unisono_event_)
- {
- unisono_event_ = new Stream_event (ly_symbol2scm ("unisono-event"));
- unisono_event_->unprotect ();
- }
-
-
- Context *out = (last_playing_ == SOLO2 ? second_iter_ : first_iter_)
- ->get_outlet ();
- out->event_source ()->broadcast (unisono_event_);
- playing_state_ = UNISONO;
- }
+ && newstate == UNISONO)
+ {
+ Context *out = (last_playing_ == SOLO2 ? second_iter_ : first_iter_)
+ ->get_outlet ();
+ if (!unisono_event_)
+ {
+ unisono_event_ = new Stream_event
+ (out->make_event_class (ly_symbol2scm ("unisono-event")));
+ unisono_event_->unprotect ();
+ }
+
+ out->event_source ()->broadcast (unisono_event_);
+ playing_state_ = UNISONO;
+ }