Loudness

LOUNDESS input sensor support routines for sound loudness sensors.

Add Input Device

Item

Description

Loudness

Supports sound loudness sensors.


CE products: from loudness import *

TI-Nspire CX II: from ti_hub import *

 

 

The function to create the object is pasted from the menu.

var=loudness("port")

Command:

var=loudness("port")

Command
Syntax:

var=loudness("port")

Range:

Describe:

Creates an object for the thermistor sensor.

Result:

Type or
Addressable
Component:

Control

 

var.measurement()

Command:

var.measurement()

Command
Syntax:

var.measurement()

Python
Code
Sample:

TI Nspire CX II:

from ti_hub import *

l1 = loudness("IN 1")

ld_val = l1.measurement()

print("Loudness value is: ", ld_val)

 

CE products:

from loudness import *

l1 = loudness("IN 1")

ld_val = l1.measurement()

print("Loudness value is: ", ld_val)

Range:

Describe:

Returns the measured value of the loudness sensor.

Result:

 

Type or
Addressable
Component:

Control

 

var.range(min,max)

Command:

var.range(min,max)

Command
Syntax:

var.range(min,max)

Range:

Describe:

Sets the range of returned values for the loudness sensor. This needs to be called before the “var.measurement()” function for it to take effect.

Result:

Type or
Addressable
Component:

Control