Skip to content
CoyoteMIDI
  • Upgrade to PRO
  • My account
  • Help
  • Contact
  • Shopping Cart
CoyoteMIDI
  • Shopping Cart
  • Upgrade to PRO
  • My account
  • Help
  • Contact

CoyoteScript (PRO only)

CoyoteScript Basics
  • Collection Operations
  • Command Nesting
  • Comments
  • Documentation Syntax
  • Events
  • Logical and Comparison operators
  • Math Operations
  • Triggers
  • Using Scripts
  • Variables
CoyoteScript Commands
  • After
  • Before
  • Case
  • Ceiling
  • Click
  • Cooldown
  • CopyFile
  • Cos
  • Count
  • CreateFolder
  • Date
  • DeleteFile
  • DeleteFolder
  • Else
  • Floor
  • Foreach
  • GetFiles
  • GetFolders
  • GetMouse
  • GetPixel
  • GetRecordingVolume
  • HeldNotes
  • If
  • Indicator
  • IsProcessFocused
  • IsProcessRunning
  • Key
  • KeyState
  • KillProcess
  • MapKeys
  • MapValues
  • Max
  • MessageBox
  • Midi
  • Min
  • MoveFile
  • MoveFolder
  • MoveMouse
  • ParseJSON
  • Print
  • Random
  • Repeat
  • Rest
  • Return
  • Round
  • RunScript
  • SearchImage
  • SearchPixel
  • SetFocusedProcess
  • SetRecordingEnabled
  • SetRecordingVolume
  • SetVolume
  • Sin
  • Split
  • StartProcess
  • Switch
  • Tan
  • Time
  • Wait
  • Web
  • While
  • Write
CoyoteScript Events
  • Key
  • Midi
  • Process
  • ScriptsLoaded
  • Shutdown
  • Startup
  • Time
  • WindowChanged
  • WindowsSession

Basic Operation

  • CoyoteMIDI FAQ
  • Getting Started
  • Overview
  • Using CoyoteMIDI with a DAW (loopback MIDI)

Other

  • Version Changelog
  • Home
  • Docs
  • CoyoteScript (PRO only)
  • CoyoteScript Events
  • Midi

Midi

midi (<eventType>) (<note number/control number/program/pitchbend value>) (<velocity/control value>)

Triggers whenever CoyoteMIDI recieves a MIDI event from an input device.

Parameters:

  1. The type of MIDI event to listen for. Valid event types are “NOTE”, “CONTROLCHANGE”, “PITCHBEND”, and “PROGRAMCHANGE”.
  2. The MIDI number for the event. For example, for “NOTE”, this is the note number, for “CONTROLCHANGE”, this is the control change number, and for “PITCHBEND”, this is the pitch.
  3. The MIDI value for the event. For example, the note velocity, or the control change value. This parameter would be unused for pitchbend and program changes. The default value is 127.

Variable map:

  • type: The type of MIDI event.
  • channel: The MIDI channel number, ranging from 0 to 15.
  • note: The note number, if the MIDI event type is Note.
  • velocity: The note velocity, if the MIDI event type is Note.
  • controlnumber: The control change number, if the MIDI event type is ControlChange.
  • controlvalue: The control change value, if the MIDI event type is ControlChange.
  • pitchbend: The pitchbend value, if the MIDI event type is PitchBend.
  • program: The program change number, if the MIDI event type is ProgramChange.

Return: True or false to control whether the MIDI event should be ignored in CoyoteMIDI and not be sent to the MIDI output devices.

 

Share This Article :
  • Facebook
  • Twitter
  • LinkedIn
  • Pinterest
Updated on July 21, 2022
WindowsSession
© 2023 - CoyoteMIDI | All rights reserved