Inherits from LEService : NSObject
Declared in LEPiezoTonePlayer.h

Overview

This service allows for playing of tones at a given frequency

Instance Methods

playFrequency:forMilliseconds:

Play a frequency for the given duration in ms

- (void)playFrequency:(NSUInteger)frequency forMilliseconds:(NSUInteger)ms

Parameters

frequency

The frequency to play (max allowed frequency is 1500)

ms

The duration to play (max supported is 65536 milliseconds).

Discussion

Play a frequency for the given duration in ms

Declared In

LEPiezoTonePlayer.h

playNote:octave:forMilliSeconds:

Play a note. The highest supported note is F# in 6th octave

- (void)playNote:(LEPiezoTonePlayerNote)note octave:(NSUInteger)octave forMilliSeconds:(NSUInteger)ms

Parameters

note

The note to play

octave

The octave in which to play the note

ms

The duration to play (max supported is 65536 milliseconds).

Discussion

Play a note. The highest supported note is F# in 6th octave

Declared In

LEPiezoTonePlayer.h

stopPlaying

Stop playing any currently playing tone.

- (void)stopPlaying

Discussion

Stop playing any currently playing tone.

Declared In

LEPiezoTonePlayer.h