Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Scroll Documents: Update page title prefix

Overview

One shot player with trigger pin

Discussion

WAV file player in which playback is triggered via an input pin. The input .trigger is a Boolean value which, if set, starts playback. The trigger must be an impulse of length 1 frame, or the initial frame of the WAV will be repeated while .trigger remains set. When .trigger is reset to 0, playback continues from the second frame until it stops at end of the file. If .trigger is set again while in the middle of playback then playback will restart.

...

The module supports only mono playback and first channel of the input wave file is used if it is a multi-channel wave file.

Type Definition

-Not Shown-

Variables

Properties

Name

Type

Usage

isHidden

Default value

Range

Units

wavLength

int

const

0

100400

Unrestricted

wavSR

int

const

0

48000

Unrestricted

nRate

float

const

0

1

Unrestricted

mRate

float

const

0

1

Unrestricted

Pins

Input Pins

Name: trigger

Description: Boolean trigger signal

...

Sample rate range: Unrestricted

Complex support: Real

Output Pins

Name: out

Description: Output audio

Data type: fract32

Scratch Pins

Channel count: 1

Block size: 1

...

Block size: 1

Sample rate: 48000

MATLAB Usage

File Name: one_shot_player_fract32_module.m

...