Custom Note Filter

Version 01.60.00
Added 20 Apr 2011 (last updated 22 Aug 2021)

For use with Sibelius 5, Sibelius 6, Sibelius 7.1, Sibelius 7.5, Sibelius 8.x, Sibelius 18.x, Sibelius 19.x, Sibelius 20.x, Sibelius 21.x, Sibelius 22.x, Sibelius 23.x and Sibelius 24.x

A filter that will filter selected Note objects. By default it will filter for notes with ties, but it is designed to be modified. Change the condition in the IsDesiredObject method. The remaining code will filter objects that pass the IsObjectDesired test.

Updated 17 April 2016 to check for empty selections as ask to select entire score.

Updated 10 October 2019. Version 01.50.00. This plugin now will run only in Sibelius version 6.2 or later. It is now completely in the public domain, so that any code within the file may be used in and other plugins without attribution (or support).

As before this plugin is intended to be a template for making your own filtering plugins. I recommend making a copy of the plugin and changing the value of the variable "_PluginMenuName" to be the new plugin name. If you install the plugin "Copy Plugin", it will make a copy of any other plugin and update _PluginMenuName if that variable is available.

In most cases all you should need to change is the code in the method "IsDesiredObject" to produce a new filter. The trick is knowing exactly what to ask for, but at least the structure of getting objects and selecting them will be taken care of by the existing code. Happy filtering!

EDIT changed. See below. The default code will filter for quarter notes from the original selection.

Updated 22 August 2021. Version 01.60.00. Made tracing of results options based on the global variable g_fTraceResults. Made results a Trace call rather than a message box. Made minor code cleanups.

Changed default action to filter for Note-object-specific properties. By default, it now filters for Notes wholse notestyle is not NormalNoteStyle. Internal documentation was also updated.

Plug-in written by Bob Zawalich.