msb()
Calculates the most significant byte of a 14 bit value. High-end bits 8 to 14 of argument are bit-shifted down by 7 bits and returned as result by this function.
Function Prototype
msb(number)
Arguments
Argument Name | Data Type | Description |
---|---|---|
number |
Integer Number | Original 14 bit input value. [required] |
Return Value
Data Type | Description |
---|---|
Integer Number | High-end 7 bits of passed argument. |
Remarks
This functions neither allows finalness,
nor standard unit types for its argument number
.
Examples
- on init
- message("msb(0) = " & msb(0))
- message("lsb(0) = " & lsb(0))
- message("msb(1) = " & msb(1))
- message("lsb(1) = " & lsb(1))
- message("msb(2) = " & msb(2))
- message("lsb(2) = " & lsb(2))
- message("msb(128) = " & msb(128))
- message("lsb(128) = " & lsb(128))
- message("msb(129) = " & msb(129))
- message("lsb(129) = " & lsb(129))
- end on
See also
Availability
Since LinuxSampler 2.1.1.svn26.
Document Updated: 2019-12-30 | Author: Christian Schoenebeck