genTrain: Generate auditory presentation

Description Usage Arguments Details

Description

Generate auditory presentations based on existing sound files.

Usage

1
2
3
4
genTrain(sound, species = NULL, infodb = NULL, tpres, intRend.type,
  intRend.length = NA, int.factor = 1, nbout = NA, bout.length = NA,
  intBout.type, intBout.length = NA, rate = NA, seed = NA, writewav = T,
  output, ext = "wav", report = T, returnoutput = F)

Arguments

sound

Source sound. Can also be a directory, or many directories, containing the sound file.

species

Species for each sound file.

tpres

Total duration of presentation in seconds (5 min for sound transmission)

intRend.type

Type of intervals between renditions (constant - mean natural interval –- median) (depends on species) - read from a database.

intRend.length

Length of the interval between rendtions. Only functional if intRend.type = "custom".

int.factor

Factor by which to multiply the length of the interval between renditions. (0.5, 1, or 2) (for sound transmission experiment).

nbout

Number of bouts in presentation (all experiments except sound transmission – only those in which bout interval type= random)

bout.length

Length of each bout (predetermined: 20s – behavior; 10s – sound transmission; 5s - ZENK)

intBout.type

Type of interval between bouts. Can take the values "random" or "constant".

intBout.length

Length of interval between bouts (depending on type of interval: range, number)

rate

Bout rate, in times per minute.

seed

Seed for random number generators.

writewav

Logical. Should presentation be written into a wave file?

output

Name of output file.

ext

Extension of output file. Omitted if already specified in output.

report

Logical. Should silence gap start times be reported?

returnoutput

Logical. Should output filename be returned?

infoDB

Databasee containing info on each source file.

nrend

Number of renditions per bout.

Details

If the length of the source audio files is such that the presentation would end being longer than T, the last instance of the source sound will be truncated in order for the duration of the presentation to be equal to T.


crodriguez-saltos/portableStim documentation built on May 12, 2019, 5:45 a.m.