PortMidi.CurrentEvent
---------------------

Queries current event.

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

MBS( "PortMidi.CurrentEvent" ) ### Parameters

none

### Result

Returns list of values or error.

### Description

Queries current event.  
Returns several values: status, data1, data2 and timestamp.  
You can use this to show current note playing.  
### Examples

Queries current event:

 MBS ( "PortMidi.CurrentEvent" )  
<small>  
Example result:   
128  
56  
95  
0</small>### Release notes

- **Version 7.1**
    - Added [PortMidi.CurrentEvent](http://www.mbsplugins.eu/PortMidiCurrentEvent.shtml) function.

### Blog Entries

- [MBS FileMaker Plugin, version 7.1pr3](https://www.mbsplugins.de/archive/2017-02-22/MBS_FileMaker_Plugin_version_7/monkeybreadsoftware_blog_filemaker)

This function is free to use.

Created 10th February 2017 , last changed 11st February 2017

  
[PortMidi.Close](PortMidiClose.md) - [PortMidi.DeviceCount](PortMidiDeviceCount.md)

[HTML Version](PortMidiCurrentEvent.shtml)