PortMidi.GetFilter
------------------

Queries current filter setting.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [PortMidi](component_PortMidi.md) | [4.2](newinversion42.md) | ✅ Yes | ✅ Yes | ❌ No | ❌ No | ❌ No |

MBS( "PortMidi.GetFilter"; StreamRef ) 

**MBS**( **"PortMidi.GetFilter";** /\* Queries current filter setting. \*/  
**$StreamRef**) /\* The reference to the midi stream. You create those with [PortMidi.OpenInput](PortMidiOpenInput.md) or [PortMidi.OpenOutput](PortMidiOpenOutput.md) and finally close them with [PortMidi.Close](PortMidiClose.md).e.g. $stream \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| StreamRef | The reference to the midi stream. You create those with [PortMidi.OpenInput](PortMidiOpenInput.md) or [PortMidi.OpenOutput](PortMidiOpenOutput.md) and finally close them with [PortMidi.Close](PortMidiClose.md). | $stream |

### Result

Returns value or error.

### Description

Queries current filter setting.  
### See also

- [PortMidi.Close](PortMidiClose.md)
- [PortMidi.OpenInput](PortMidiOpenInput.md)
- [PortMidi.OpenOutput](PortMidiOpenOutput.md)
- [PortMidi.SetFilter](PortMidiSetFilter.md)

This function checks for a license.

Created 18th August 2014 , last changed 18th August 2014

  
[PortMidi.GetDeviceName](PortMidiGetDeviceName.md) - [PortMidi.List](PortMidiList.md)

[HTML Version](PortMidiGetFilter.shtml)