Sound

This object controls the on-board speaker of the TI-Innovator™ Hub.

TI-Nspire CX II:from ti_hub import *

CE products: import sound

 

 

 

sound.tone()

Command:

sound.tone()

Command Syntax:

sound.tone(frequency, [time])

Range:

frequency = [0, 8000]

time = [0.1 100]

Describe:

SOUND is the on-board speaker and can generate a sound with a specified frequency. If time not specified, sound will play for 1 second default.

Result:

Play tone through on-board speaker.

Type or
Addressable Component:

Control

 

sound.note()

Command:

sound.note()

Command Syntax:

sound.note("note", [time])

Range:

note: This is a string that specifies the note to be played.

Note names are:

"C", "CS", "D", "DS", "E", "F", "FS", "G", "GS", "A", "AS", and "B".

And the octave numbers range from 1 to 9 (inclusive))

 

time = [0.1 100]

Describe:

SOUND is the on-board speaker and can generate a sound with a specified note. If time not specified, sound will play for 1 second default.

Example:

sound.note(“C5”, 2)

Result:

Play note through on-board speaker.

Type or
Addressable Component:

Control