+ bool neighbor_found = false;
+ for (SCM adj = me->get_property ("adjacent-hairpins");
+ ly_c_pair_p (adj); adj = ly_cdr (adj))
+ {
+ /*
+ FIXME: this will fuck up in case of polyphonic
+ notes in other voices. Need to look at note-columns
+ in the current staff/voice.
+ */
+
+ Spanner *pin = unsmob_spanner (ly_car (adj));
+ if (pin
+ && (pin->get_bound (LEFT)->get_column() == b
+ || pin->get_bound (RIGHT)->get_column() == b))
+ neighbor_found = true;
+ }
+