MIDI_VOLUME

MIDI_VOLUME V

CHANGES THE VOLUME OF NOTES PLAYED TO THE MIDI OUTPUT

  • Type: Command
  • Parameter: 1
  • Group: MIDI

ACTION

The command MIDI_VOLUME V changes the volume of notes played to the MIDI output.

V must be between 1 and 127.

By default, volume is 100.

SYNTAX: MIDI_VOLUME V

  • V = MIDI code for the volume (integer or real).

USE

  • The command MIDI_VOLUME is used to change the volume of notes individually played on a MIDI output.

ERROR

  • If MIDI output is not ON (MIDI_ON).
  • If value V is less than 1 or more than 127.
  • If value V is not a correct expression.

EXAMPLE

midi_on

rem set of 5 quarter notes (crotchets) C

rem played more and more loud

midi_volume 60:midi_play 60,4

midi_volume 80:midi_play 60,4

midi_volume 100:midi_play 60,4

midi_volume 110:midi_play 60,4

midi_volume 120:midi_play 60,4

midi_off

SEE ALSO

MIDI_INSTRUMENT

MIDI_OFF

MIDI_ON

MIDI_PLAY