musicMatrix | R Documentation |
This function save a matrix in audio file as *.wav
musicMatrix(ma,destination)
ma |
a matrix. The time in second unit is in the firt column. The intensity of the FID is in the second column. |
destination |
Name of the .wav file |
This function uses
- three functions from the package tuneR:
Wave
, normalize
and writeWave
;
- one function from the package seewave:
savewav
.
No return value.
Stefano Cacciatore
Cacciatore S, Saccenti E, Piccioli M. Hypothesis: the sound of the individual metabolic phenotype? Acoustic detection of NMR experiments. OMICS. 2015 Mar;19(3):147-56.
data(AU)
musicMatrix(AU$sample1A,"audio.wav")
# The function unlink deletes the file
unlink("audio.wav")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.