utilities Module

Functions to check the bounds of int8, int16, int32 values.


Uses

  • module~~utilities~~UsesGraph module~utilities utilities iso_fortran_env iso_fortran_env module~utilities->iso_fortran_env

Used by

  • module~~utilities~~UsedByGraph module~utilities utilities module~midi_file_class MIDI_file_class module~midi_file_class->module~utilities module~music music module~music->module~utilities program~blues blues program~blues->module~midi_file_class program~blues->module~music program~canon canon program~canon->module~midi_file_class program~canon->module~music program~circle_of_fifths circle_of_fifths program~circle_of_fifths->module~midi_file_class program~circle_of_fifths->module~music program~la_folia la_folia program~la_folia->module~midi_file_class program~la_folia->module~music program~motifs motifs program~motifs->module~midi_file_class program~motifs->module~music program~third_kind third_kind program~third_kind->module~midi_file_class program~third_kind->module~music

Functions

public function checked_int16(i) result(i16)

Receives a default kind integer, checks its bounds (Fortran signed int), fixes it if needed, and returns an int16:

Arguments

Type IntentOptional Attributes Name
integer, intent(in) :: i

Return Value integer(kind=int16)

public function checked_int32(i) result(i32)

Receives a default kind integer, checks its bounds (Fortran signed int), fixes it if needed, and returns an int32.

Arguments

Type IntentOptional Attributes Name
integer, intent(in) :: i

Return Value integer(kind=int32)

public function checked_int8(i, upper) result(i8)

Receives a default kind integer, checks its MIDI bounds (15 or 127), fixes it if needed, and returns an int8:

Arguments

Type IntentOptional Attributes Name
integer, intent(in) :: i
integer, intent(in), optional :: upper

Return Value integer(kind=int8)