makeSource: Generating source impulse response.

Description Usage Arguments Value

View source: R/makeSource.R

Description

A function that generates source impulse response.

Usage

1
2
3
4
5
makeSource(sourceModel = c("toneburst", "plb", "hertz", "hunter", "reed",
  "akay"), plate = NA, sphere = NA, riseTime = 1.5e-06,
  forceAmplitude = 1, centerFreq = 2e+05, cyclesNum = 5,
  duration = 0.0001024, xunit = c("time", "samples"),
  samp.rate = 1e+07, bit = 32)

Arguments

sourceModel

The source model, Default: c("toneburst", "plb", "hertz", "hunter", "reed", "akay")

plate

The plate specification produced by makePlate, Default: NA

sphere

The solid sphere specification produced by makeSphere, Default: NA

riseTime

The plb rise time, in s, Default: 1.5e-06

forceAmplitude

The plb and tone burst force amplitude, in N, Default: 1

centerFreq

The tone burst center frequency, in Hz, Default: 2e+05

cyclesNum

The tone burst number of cycles, Default: 5

duration

Duration of the Wave in xunit, Default: 0.0001024

xunit

Character indicating which unit is used in argument duration. If xunit = "time", the unit is time in s, otherwise the number of samples, Default: c("time", "samples")

samp.rate

Sampling rate of the Wave, in Hz, Default: 1e+07

bit

Resolution of the Wave and rescaling unit, Default: 32. This may be 1 for rescaling to numeric values in [-1,1], 8 (i.e. 8-bit) for rescaling to integers in [0, 254], 16 (i.e. 16-bit) for rescaling to integers in [-32767, 32767], 24 (i.e. 24-bit) for rescaling to integers in [-8388607, 8388607], 32 (i.e. 32-bit) for rescaling either to integers in [-2147483647, 2147483647], 64 (i.e. 64-bit) for rescaling to numeric values in [-1, 1] (FLOAT_IEEE Wave format), and 0 for not rescaling at all.

Value

The source impulse response waveform as a source object.


gmxavier/pongaR documentation built on Sept. 7, 2021, 1:06 p.m.