Description Usage Arguments Details Value Author(s) Examples

Create and display one or more sinusoids.

1 2 3 |

`freqs` |
A vector of frequencies, one for each desired sinusoid. |

`amps` |
A vector of peak amplitudes, one for each desired sinusoid. |

`dur` |
The desired duration of the sinusoids, in milliseconds. |

`phases` |
A vector of initial phases, one for each desired sinusoid, expressed in radians. |

`fs` |
The desired sampling frequency of the sinusoids. |

`sum` |
If TRUE, the sum the generated sinusoids is also found. |

`show` |
If TRUE, the generated sinusoids are plotted. If sum is TRUE, a second plot is created to display the sum of the sinusoids. |

`colors` |
An optional vector of colors used to plot the individual sinusoids. If the number of colors given is less than the number of frequencies specified, the colors are repeated. |

A number of sinusoids are generated, and optionally plotted and/or returned. The number of frequencies specified must equal the number of amplitudes and initial phases.

A dataframe with the following columns:

`time` |
The time, in milliseconds, at which is sample is taken. |

`waveN` |
A series of columns, each indicating the amplitude of wave N at a given time. |

`sum` |
A column indicating the sum of all of the sinusoids. |

Santiago Barreda <sbarreda@ucdavis.edu>

1 2 3 4 5 6 7 |

phonTools documentation built on May 19, 2017, 6:24 a.m.

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.