This is a version in development of eaR package, an open-source auditory R tool for perception-based music analysis. We provide a user-friendly and flexible tool oriented to facilitate the workflow of researchers interested in content analysis and automatic extraction and description of musical features. Routines are mainly designed according to the Auditory Short Term Memory (ASTM) model developed by Marc Leman and previously implemented in IPEM Toolbox.
Before downloading eaR, you should have installed devtools and load it:
install.packages("devtools")
library("devtools")
After that, to download eaR, you can type in the R prompt:
install_github("m-vidal/eaR")
You will get a message confirming that your eaR Package has been installed correctly.
:exclamation: Note for Mac users:
Running the Auditory Model makes it necessary to give permissions to execute the file .../Auditory_Model/ASTMunix
. To install correctly all dependecies, once the package is download type in the R prompt:
library(eaR)
InstallAuditoryModel("mac")
Otherwise, for a manual setting see Readme.txt.
Artificial Neural Networks are information processing systems whose structure and operating are inspired by the biological ones. Thus, Auditory Images are, in essence, the basis elements that represents features related to an acoustic signal, particurally, a set of harmonic oscillators distributed in pitch-related frequency bands.
The kernel of eaR Package is an adapted version of Van Immerseel and Martens (1992) model of the auditory periphery. The auditory model -written in c-code- simulates the cochlear mechanical filtering using an array of overlapping band-pass filters. The output of the model is the primary image or auditory nerve image (ANI), which represents the rate-code of neural discharge in a set of channels C
.
The package was designed through the object class ANI
, which at least must contain an image, the sample frequency of the image and a set of frequencies or periods used in their transformations. Unlike in IPEM Toolbox, the formulation of the class ANI
facilitates interaction in the use of the functions and prevent disorderly data.
To calculate the ANI of the SchumannKurioseGeschichte dataset, type:
R> s <- SchumannKurioseGeschichte
R> ANIs <- CalcANI(s, 22050)
R> PPs <- PeriodicityPitch(ANIs)
R> PlotImage(PPs)
You will get an image as follows,
As described in the documentation, eaR Package is a tool for auditory information processing that inferences on sound patterns to simulate the perception of humans listening to music.
This version includes the functions detailed in the following table. In addition, you can check whether the functions and documentation are available as it is a beta version. Note that the documentation is under revision yet.
Function | Status | Documentation | Migrated |
| :--- | :---: | :---: | :---:
AdaptLevel
|:heavy_check_mark:|:heavy_check_mark:|Yes|
as.Wave
|--|--|No|
BellShape
|:heavy_check_mark:|--|Yes|
CalcANI
|:heavy_check_mark:|:heavy_check_mark:|Yes|
CalcNoteFrequency
|:heavy_check_mark:|:heavy_check_mark:|No|
CalcOnsetsFromANI
|:heavy_check_mark:|--|Yes|
CalcProfile
|--|--|No|
CalcRMS
|:heavy_check_mark:|--|Yes|
Clip
|:heavy_check_mark: |--|Yes |
ContextualityIndex
|:heavy_check_mark: |:heavy_check_mark:|Yes|
CreateMask
|:heavy_check_mark: |--|Yes|
FindAllPeaks
|:heavy_check_mark:|--|Yes|
FindNearestMinima
|:heavy_check_mark:|--|Yes|
InstallAuditoryModel
|:heavy_check_mark:|:heavy_check_mark:|No|
LeakyIntegration
|:heavy_check_mark: |:heavy_check_mark:|Yes|
OnsetPattern
|:heavy_check_mark:|--|Yes|
OnsetPatternFilter
|:heavy_check_mark:|--|Yes|
OnsetPeakDetection
|:heavy_check_mark:|--|Yes|
OnsetPeakDetection1Channel
|:heavy_check_mark:|:heavy_check_mark:|Yes|
PeriodicityPitch
|:heavy_check_mark: |:heavy_check_mark:|Yes|
PlotImage
|:heavy_check_mark:|:heavy_check_mark:|No|
RoughnessFFT
|:heavy_check_mark:|:heavy_check_mark:|Yes|
ShepardTone
|:heavy_check_mark:|:heavy_check_mark:|Yes|
ShepardToneComplex
|:heavy_check_mark:|:heavy_check_mark:|Yes|
eaR uses a core application written in c-code which is fully executable in R environments. Both the eaR Package code and the auditory model c-code are released under the GPL.
eaR
Package was build on R version 3.6.1.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.