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 Basics
  • Math Operations

Math Operations

In CoyoteScript you can execute mathematical operations. Mathematical operations, combined with variables, are the foundation for creating dynamic code that can handle a whole range of scenarios or process a whole range of values all within a few lines of script.

 

CoyoteScripts hosts most, if not all mathematical operators that you may be familiar with. These include:

  1. “+” or “add” for addition.
  2. “-” or “remove” for subtraction.
  3. “*” for multiplication.
  4. “/” for division.

Parenthesis can be used to control the order of the mathematical operations.

Examples:

  1. “(7 + 3) * 5 / (5 + 5)” would calculate to “5”.
  2. “$a – 5 * 3” where $a = 5 would calculate to “-10”
Share This Article :
  • Facebook
  • Twitter
  • LinkedIn
  • Pinterest
Updated on March 25, 2022
Logical and Comparison operatorsUsing Scripts
© 2023 - CoyoteMIDI | All rights reserved