Giter Club home page Giter Club logo

ear's Introduction

An R package for perception-based auditory and music analysis

CRAN status lifecycle

This is a version in development of the eaR package, an open-source R tool for perception-based auditory analysis. eaR provides user-friendly and flexible tool oriented to facilitate the workflow of researchers interested in content analysis and automatic extraction of auditory and 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.

Install the Package

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")

A short glipmse to auditory nerve images, the atom of eaR

The eaR package contains an adapted version of the auditory periphery model proposed by Van Immerseel and Martens (1992). The model simulates the cochlear mechanical filtering using an array of overlapping band-pass filters. An audio signal can be then represented as a auditory nerve image (ANI), which is multivariate vector of neural discharges in different frequency bands.

To calculate the ANI and periodicity pitch image (PPI) of the SchumannKurioseGeschichte dataset, type:

library(eaR)
data(SchumannKurioseGeschichte)
ANIs <- CalcANI(SchumannKurioseGeschichte, 22050) #auditory nerve image
PPs <- PeriodicityPitch(ANIs)
PlotImage(PPs)

After running the code, you will get an image as follows,


which is a transformation of the auditory nerve image into a coherent pitch representation.

Version 0.2.1

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. This version includes the functions detailed in the following table. In addition, you can check whether the functions and documentation are available.

Function Status Documentation Migrated
AdaptLevel ☑️ ☑️ Yes
as.Wave -- -- No
BellShape ☑️ -- Yes
CalcANI ☑️ ☑️ Yes
CalcNoteFrequency ☑️ ☑️ No
CalcOnsetsFromANI 🔴 -- Yes
CalcProfile -- -- No
CalcRMS ☑️ -- Yes
Clip ☑️ -- Yes
ContextualityIndex ☑️ ☑️ Yes
CreateMask ☑️ -- Yes
FindAllPeaks ☑️ -- Yes
FindNearestMinima ☑️ -- Yes
LeakyIntegration ☑️ ☑️ Yes
OnsetPattern 🔴 -- Yes
OnsetPatternFilter 🔴 -- Yes
OnsetPeakDetection 🔴 -- Yes
OnsetPeakDetection1Channel 🔴 -- Yes
PeriodicityPitch ☑️ ☑️ Yes
PlotImage ☑️ ☑️ No
RoughnessFFT ☑️ ☑️ Yes
ShepardTone ☑️ ☑️ Yes
ShepardToneComplex ☑️ ☑️ Yes

🔴 (Deprecated) | ☑️ (Working)

ear's People

Contributors

jorensix avatar m-vidal avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

nmtmoura

ear's Issues

Linux compilation

* installing *source* package ‘eaR’ ...
** using staged installation
** libs
rm -f AudiProg.o Audimod.o Hcmbank.o IPEMAuditoryModel.o IPEMAuditoryModel_wrapper.o RcppExports.o command.o cpu.o cpupitch.o decimation.o ecebank.o filenames.o filterbank.o pario.o sigio.o wav.o
gcc-11  -I"/home/hornik/tmp/R/include" -DNDEBUG  -I'/home/hornik/lib/R/Library/4.2/x86_64-linux-gnu/Rcpp/include' -I/usr/local/include -DUSE_TYPE_CHECKING_STRICT -D_FORTIFY_SOURCE=2  -fpic  -g -O2 -Wall -pedantic -mtune=native  -c AudiProg.c -o AudiProg.o
gcc-11  -I"/home/hornik/tmp/R/include" -DNDEBUG  -I'/home/hornik/lib/R/Library/4.2/x86_64-linux-gnu/Rcpp/include' -I/usr/local/include -DUSE_TYPE_CHECKING_STRICT -D_FORTIFY_SOURCE=2  -fpic  -g -O2 -Wall -pedantic -mtune=native  -c Audimod.c -o Audimod.o
gcc-11  -I"/home/hornik/tmp/R/include" -DNDEBUG  -I'/home/hornik/lib/R/Library/4.2/x86_64-linux-gnu/Rcpp/include' -I/usr/local/include -DUSE_TYPE_CHECKING_STRICT -D_FORTIFY_SOURCE=2  -fpic  -g -O2 -Wall -pedantic -mtune=native  -c Hcmbank.c -o Hcmbank.o
gcc-11  -I"/home/hornik/tmp/R/include" -DNDEBUG  -I'/home/hornik/lib/R/Library/4.2/x86_64-linux-gnu/Rcpp/include' -I/usr/local/include -DUSE_TYPE_CHECKING_STRICT -D_FORTIFY_SOURCE=2  -fpic  -g -O2 -Wall -pedantic -mtune=native  -c IPEMAuditoryModel.c -o IPEMAuditoryModel.o
g++-11  -std=gnu++14 -I"/home/hornik/tmp/R/include" -DNDEBUG  -I'/home/hornik/lib/R/Library/4.2/x86_64-linux-gnu/Rcpp/include' -I/usr/local/include -DUSE_TYPE_CHECKING_STRICT -D_FORTIFY_SOURCE=2  -fpic  -g -O2 -Wall -pedantic -mtune=native  -c IPEMAuditoryModel_wrapper.cpp -o IPEMAuditoryModel_wrapper.o
g++-11  -std=gnu++14 -I"/home/hornik/tmp/R/include" -DNDEBUG  -I'/home/hornik/lib/R/Library/4.2/x86_64-linux-gnu/Rcpp/include' -I/usr/local/include -DUSE_TYPE_CHECKING_STRICT -D_FORTIFY_SOURCE=2  -fpic  -g -O2 -Wall -pedantic -mtune=native  -c RcppExports.cpp -o RcppExports.o
gcc-11  -I"/home/hornik/tmp/R/include" -DNDEBUG  -I'/home/hornik/lib/R/Library/4.2/x86_64-linux-gnu/Rcpp/include' -I/usr/local/include -DUSE_TYPE_CHECKING_STRICT -D_FORTIFY_SOURCE=2  -fpic  -g -O2 -Wall -pedantic -mtune=native  -c command.c -o command.o
command.c: In function ‘strindex’:
command.c:96:3: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]
   96 |  {for (j=i,k=0;((t[k]!='\0') && (s[j]==t[k]));j++,k++) ;
      |   ^~~
command.c:97:3: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’
   97 |   if ((k>0) && (t[k]=='\0')) return i;
      |   ^~
command.c: In function ‘get_string’:
command.c:217:17: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
  217 |                 if (feof(ascii_file)) strcpy(answer,""); break;
      |                 ^~
command.c:217:58: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
  217 |                 if (feof(ascii_file)) strcpy(answer,""); break;
      |                                                          ^~~~~
command.c: In function ‘get_sequence’:
command.c:323:3: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
  323 |   if (cmnd_src==ascii) fclose(ascii_file); cmnd_src=inpt;
      |   ^~
command.c:323:44: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
  323 |   if (cmnd_src==ascii) fclose(ascii_file); cmnd_src=inpt;
      |                                            ^~~~~~~~
command.c: In function ‘get_string’:
command.c:215:17: warning: ignoring return value of ‘fgets’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  215 |                 fgets(answer, maxstrlen, stdin );; break;
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
command.c:216:17: warning: ignoring return value of ‘fgets’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  216 |    case ascii:  fgets(answer,maxstrlen,stdin);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
command.c:218:17: warning: ignoring return value of ‘fgets’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  218 |    case buffer: fgets(answer,maxstrlen,seq_buffer);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
command.c: In function ‘put_sequence’:
command.c:342:3: warning: ignoring return value of ‘fgets’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  342 |   fgets(answer,maxstrlen,seq_buffer);
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
command.c:346:4: warning: ignoring return value of ‘fgets’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  346 |    fgets(answer,maxstrlen,seq_buffer);
      |    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
command.c: In function ‘open_readfile’:
command.c:492:4: warning: ignoring return value of ‘system’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  492 |    system(tmp);
      |    ^~~~~~~~~~~
command.c:494:4: warning: ignoring return value of ‘system’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  494 |    system(tmp);
      |    ^~~~~~~~~~~
command.c: In function ‘close_readfile’:
command.c:521:61: warning: ignoring return value of ‘system’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  521 |  if (remove_uncompressed_file) {strcpy(tmp,"rm rfxxx.xxx"); system(tmp);}
      |                                                             ^~~~~~~~~~~
gcc-11  -I"/home/hornik/tmp/R/include" -DNDEBUG  -I'/home/hornik/lib/R/Library/4.2/x86_64-linux-gnu/Rcpp/include' -I/usr/local/include -DUSE_TYPE_CHECKING_STRICT -D_FORTIFY_SOURCE=2  -fpic  -g -O2 -Wall -pedantic -mtune=native  -c cpu.c -o cpu.o
gcc-11  -I"/home/hornik/tmp/R/include" -DNDEBUG  -I'/home/hornik/lib/R/Library/4.2/x86_64-linux-gnu/Rcpp/include' -I/usr/local/include -DUSE_TYPE_CHECKING_STRICT -D_FORTIFY_SOURCE=2  -fpic  -g -O2 -Wall -pedantic -mtune=native  -c cpupitch.c -o cpupitch.o
cpupitch.c: In function ‘autocorrelation_analysis’:
cpupitch.c:139:2: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]
  139 |  for (m=0;m<=max_T0;m++) R[m]=0; t=2*n / Ne;
      |  ^~~
cpupitch.c:139:34: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’
  139 |  for (m=0;m<=max_T0;m++) R[m]=0; t=2*n / Ne;
      |                                  ^
gcc-11  -I"/home/hornik/tmp/R/include" -DNDEBUG  -I'/home/hornik/lib/R/Library/4.2/x86_64-linux-gnu/Rcpp/include' -I/usr/local/include -DUSE_TYPE_CHECKING_STRICT -D_FORTIFY_SOURCE=2  -fpic  -g -O2 -Wall -pedantic -mtune=native  -c decimation.c -o decimation.o
gcc-11  -I"/home/hornik/tmp/R/include" -DNDEBUG  -I'/home/hornik/lib/R/Library/4.2/x86_64-linux-gnu/Rcpp/include' -I/usr/local/include -DUSE_TYPE_CHECKING_STRICT -D_FORTIFY_SOURCE=2  -fpic  -g -O2 -Wall -pedantic -mtune=native  -c ecebank.c -o ecebank.o
gcc-11  -I"/home/hornik/tmp/R/include" -DNDEBUG  -I'/home/hornik/lib/R/Library/4.2/x86_64-linux-gnu/Rcpp/include' -I/usr/local/include -DUSE_TYPE_CHECKING_STRICT -D_FORTIFY_SOURCE=2  -fpic  -g -O2 -Wall -pedantic -mtune=native  -c filenames.c -o filenames.o
filenames.c: In function ‘type1_name’:
filenames.c:85:22: warning: argument to ‘sizeof’ in ‘snprintf’ call is the same expression as the destination; did you mean to provide an explicit length? [-Wsizeof-pointer-memaccess]
   85 |  snprintf(res, sizeof(res), "%s%4.4d", filename_prefix,nr);
      |                      ^
filenames.c:85:30: warning: ‘%s’ directive output may be truncated writing up to 1024 bytes into a region of size 8 [-Wformat-truncation=]
   85 |  snprintf(res, sizeof(res), "%s%4.4d", filename_prefix,nr);
      |                              ^~        ~~~~~~~~~~~~~~~
In file included from /usr/include/stdio.h:866,
                 from command.h:26,
                 from filenames.c:49:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:70:10: note: ‘__builtin___snprintf_chk’ output between 5 and 1036 bytes into a destination of size 8
   70 |   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   71 |                                    __bos (__s), __fmt, __va_arg_pack ());
      |                                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gcc-11  -I"/home/hornik/tmp/R/include" -DNDEBUG  -I'/home/hornik/lib/R/Library/4.2/x86_64-linux-gnu/Rcpp/include' -I/usr/local/include -DUSE_TYPE_CHECKING_STRICT -D_FORTIFY_SOURCE=2  -fpic  -g -O2 -Wall -pedantic -mtune=native  -c filterbank.c -o filterbank.o
gcc-11  -I"/home/hornik/tmp/R/include" -DNDEBUG  -I'/home/hornik/lib/R/Library/4.2/x86_64-linux-gnu/Rcpp/include' -I/usr/local/include -DUSE_TYPE_CHECKING_STRICT -D_FORTIFY_SOURCE=2  -fpic  -g -O2 -Wall -pedantic -mtune=native  -c pario.c -o pario.o
pario.c: In function ‘read_frame’:
pario.c:125:3: warning: ignoring return value of ‘fgets’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  125 |  {fgets(answer,maxstrlen,readfile);
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
pario.c:131:3: warning: ignoring return value of ‘fgets’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  131 |  {fgets(answer,maxstrlen,readfile);
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gcc-11  -I"/home/hornik/tmp/R/include" -DNDEBUG  -I'/home/hornik/lib/R/Library/4.2/x86_64-linux-gnu/Rcpp/include' -I/usr/local/include -DUSE_TYPE_CHECKING_STRICT -D_FORTIFY_SOURCE=2  -fpic  -g -O2 -Wall -pedantic -mtune=native  -c sigio.c -o sigio.o
sigio.c: In function ‘read_header’:
sigio.c:145:2: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  145 |  fread(&c4,1,4,readfile); /* 1 */
      |  ^~~~~~~~~~~~~~~~~~~~~~~
sigio.c:146:2: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  146 |  fread(&c4,1,4,readfile); /* 2 */
      |  ^~~~~~~~~~~~~~~~~~~~~~~
sigio.c:147:2: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  147 |  fread(&c4,1,4,readfile); /* 3 */
      |  ^~~~~~~~~~~~~~~~~~~~~~~
sigio.c:148:2: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  148 |  fread(&c4,1,4,readfile); /* 4 */
      |  ^~~~~~~~~~~~~~~~~~~~~~~
sigio.c:149:2: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  149 |  fread(&c4,1,4,readfile); /* 5 */
      |  ^~~~~~~~~~~~~~~~~~~~~~~
sigio.c:150:2: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  150 |  fread(&c2,1,2,readfile); /* 6 */
      |  ^~~~~~~~~~~~~~~~~~~~~~~
sigio.c:151:2: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  151 |  fread(&c2,1,2,readfile); /* 7 */
      |  ^~~~~~~~~~~~~~~~~~~~~~~
sigio.c:152:2: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  152 |  fread(&c4,1,4,readfile); /* 8 */
      |  ^~~~~~~~~~~~~~~~~~~~~~~
sigio.c:156:2: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  156 |  fread(&c4,1,4,readfile); /* 9 */
      |  ^~~~~~~~~~~~~~~~~~~~~~~
sigio.c:157:2: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  157 |  fread(&c2,1,2,readfile); /* 10 */
      |  ^~~~~~~~~~~~~~~~~~~~~~~
sigio.c:158:2: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  158 |  fread(&c2,1,2,readfile); /* 11 */
      |  ^~~~~~~~~~~~~~~~~~~~~~~
sigio.c:167:2: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  167 |  fread(&c4,1,4,readfile); /* 12 */
      |  ^~~~~~~~~~~~~~~~~~~~~~~
sigio.c:168:2: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  168 |  fread(&c4,1,4,readfile); /* 13 */
      |  ^~~~~~~~~~~~~~~~~~~~~~~
sigio.c: In function ‘read_new_record’:
sigio.c:180:3: warning: ignoring return value of ‘fscanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  180 |  {fscanf(readfile,"%s\n",rbuf);
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
sigio.c: In function ‘one_wave_sample’:
sigio.c:202:11: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  202 |  {case 1: fread(&c1,1,size,readfile); read_ptr++;
      |           ^~~~~~~~~~~~~~~~~~~~~~~~~~
sigio.c:206:11: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  206 |   case 2: fread(&c2,1,size,readfile); read_ptr+=2;
      |           ^~~~~~~~~~~~~~~~~~~~~~~~~~
sigio.c:212:11: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  212 |   case 4: fread(&c4,1,size,readfile); read_ptr+=4;
      |           ^~~~~~~~~~~~~~~~~~~~~~~~~~
sigio.c: In function ‘one_binary_sample’:
sigio.c:229:31: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  229 |  if (!read_ptr) {if (size==2) fread(&c2,1,size,readfile);
      |                               ^~~~~~~~~~~~~~~~~~~~~~~~~~
sigio.c:230:23: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  230 |                  else fread(&c1,1,size,readfile); /* size=1 */
      |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~
sigio.c:235:12: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  235 |   {case 1: fread(&c1vol,1,size,readfile);
      |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
sigio.c:240:12: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  240 |    case 2: fread(&c2vol,1,size,readfile);
      |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gcc-11  -I"/home/hornik/tmp/R/include" -DNDEBUG  -I'/home/hornik/lib/R/Library/4.2/x86_64-linux-gnu/Rcpp/include' -I/usr/local/include -DUSE_TYPE_CHECKING_STRICT -D_FORTIFY_SOURCE=2  -fpic  -g -O2 -Wall -pedantic -mtune=native  -c wav.c -o wav.o
wav.c: In function ‘read_wav_info’:
wav.c:19:5: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   19 |     fread(x,1,4,fp);
      |     ^~~~~~~~~~~~~~~
wav.c:24:5: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   24 |     fread(x,1,4,fp);
      |     ^~~~~~~~~~~~~~~
wav.c:29:5: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   29 |     fread(x,1,4,fp);
      |     ^~~~~~~~~~~~~~~
wav.c:36:9: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   36 |         fread(x,1,4,fp);
      |         ^~~~~~~~~~~~~~~
wav.c:42:13: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   42 |             fread(x,1,4,fp);
      |             ^~~~~~~~~~~~~~~
wav.c:49:13: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   49 |             fread(x,1,4,fp);
      |             ^~~~~~~~~~~~~~~
wav.c:59:13: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   59 |             fread(x,1,4,fp);
      |             ^~~~~~~~~~~~~~~
wav.c:61:13: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   61 |             fread(x,1,4,fp);
      |             ^~~~~~~~~~~~~~~
wav.c:63:13: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   63 |             fread(x,1,4,fp);
      |             ^~~~~~~~~~~~~~~
wav.c:72:9: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   72 |         fread(x,1,4,fp);
      |         ^~~~~~~~~~~~~~~
wav.c:82:9: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   82 |         fread(x,1,4,fp);
      |         ^~~~~~~~~~~~~~~
wav.c:86:13: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   86 |             fread(x,1,4,fp);
      |             ^~~~~~~~~~~~~~~
wav.c:94:9: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   94 |         fread(x,1,4,fp);
      |         ^~~~~~~~~~~~~~~
g++-11 -std=gnu++14 -shared -L/home/hornik/tmp/R/lib -Wl,-O1 -o eaR.so AudiProg.o Audimod.o Hcmbank.o IPEMAuditoryModel.o IPEMAuditoryModel_wrapper.o RcppExports.o command.o cpu.o cpupitch.o decimation.o ecebank.o filenames.o filterbank.o pario.o sigio.o wav.o -L/home/hornik/tmp/R/lib -lR
/usr/bin/ld: IPEMAuditoryModel_wrapper.o:/srv/hornik/tmp/CRAN/eaR.Rcheck/00_pkg_src/eaR/src/IPEMAuditoryModel.h:71: multiple definition of `mSoundFileFormat'; IPEMAuditoryModel.o:/srv/hornik/tmp/CRAN/eaR.Rcheck/00_pkg_src/eaR/src/IPEMAuditoryModel.h:71: first defined here
/usr/bin/ld: IPEMAuditoryModel_wrapper.o:/srv/hornik/tmp/CRAN/eaR.Rcheck/00_pkg_src/eaR/src/IPEMAuditoryModel.h:70: multiple definition of `mSampleFrequency'; IPEMAuditoryModel.o:/srv/hornik/tmp/CRAN/eaR.Rcheck/00_pkg_src/eaR/src/IPEMAuditoryModel.h:70: first defined here
/usr/bin/ld: IPEMAuditoryModel_wrapper.o:/srv/hornik/tmp/CRAN/eaR.Rcheck/00_pkg_src/eaR/src/IPEMAuditoryModel.h:69: multiple definition of `mOutputFilePath'; IPEMAuditoryModel.o:/srv/hornik/tmp/CRAN/eaR.Rcheck/00_pkg_src/eaR/src/IPEMAuditoryModel.h:69: first defined here
/usr/bin/ld: IPEMAuditoryModel_wrapper.o:/srv/hornik/tmp/CRAN/eaR.Rcheck/00_pkg_src/eaR/src/IPEMAuditoryModel.h:68: multiple definition of `mOutputFileName'; IPEMAuditoryModel.o:/srv/hornik/tmp/CRAN/eaR.Rcheck/00_pkg_src/eaR/src/IPEMAuditoryModel.h:68: first defined here
/usr/bin/ld: IPEMAuditoryModel_wrapper.o:/srv/hornik/tmp/CRAN/eaR.Rcheck/00_pkg_src/eaR/src/IPEMAuditoryModel.h:67: multiple definition of `mInputFilePath'; IPEMAuditoryModel.o:/srv/hornik/tmp/CRAN/eaR.Rcheck/00_pkg_src/eaR/src/IPEMAuditoryModel.h:67: first defined here
/usr/bin/ld: IPEMAuditoryModel_wrapper.o:/srv/hornik/tmp/CRAN/eaR.Rcheck/00_pkg_src/eaR/src/IPEMAuditoryModel.h:66: multiple definition of `mInputFileName'; IPEMAuditoryModel.o:/srv/hornik/tmp/CRAN/eaR.Rcheck/00_pkg_src/eaR/src/IPEMAuditoryModel.h:66: first defined here
/usr/bin/ld: IPEMAuditoryModel_wrapper.o:/srv/hornik/tmp/CRAN/eaR.Rcheck/00_pkg_src/eaR/src/IPEMAuditoryModel.h:65: multiple definition of `mFreqDist'; IPEMAuditoryModel.o:/srv/hornik/tmp/CRAN/eaR.Rcheck/00_pkg_src/eaR/src/IPEMAuditoryModel.h:65: first defined here
/usr/bin/ld: IPEMAuditoryModel_wrapper.o:/srv/hornik/tmp/CRAN/eaR.Rcheck/00_pkg_src/eaR/src/IPEMAuditoryModel.h:64: multiple definition of `mFirstFreq'; IPEMAuditoryModel.o:/srv/hornik/tmp/CRAN/eaR.Rcheck/00_pkg_src/eaR/src/IPEMAuditoryModel.h:64: first defined here
/usr/bin/ld: IPEMAuditoryModel_wrapper.o:/srv/hornik/tmp/CRAN/eaR.Rcheck/00_pkg_src/eaR/src/IPEMAuditoryModel.h:63: multiple definition of `mNumOfChannels'; IPEMAuditoryModel.o:/srv/hornik/tmp/CRAN/eaR.Rcheck/00_pkg_src/eaR/src/IPEMAuditoryModel.h:63: first defined here
collect2: error: ld returned 1 exit status
make: *** [/home/hornik/tmp/R/share/make/shlib.mk:10: eaR.so] Error 1
ERROR: compilation failed for package ‘eaR’
* removing ‘/srv/hornik/tmp/CRAN/eaR.Rcheck/eaR’

Package Check

Warning 1:
File ‘eaR/libs/eaR.so’:
Found ‘___stderrp’, possibly from ‘stderr’ (C)
Object: ‘wav.o’
Found ‘_exit’, possibly from ‘exit’ (C)
Object: ‘wav.o’
Found ‘_printf’, possibly from ‘printf’ (C)
Objects: ‘AudiProg.o’, ‘Audimod.o’, ‘Hcmbank.o’, ‘command.o’,
‘cpu.o’, ‘cpupitch.o’, ‘filterbank.o’, ‘sigio.o’, ‘wav.o’
Found ‘_putchar’, possibly from ‘putchar’ (C)
Object: ‘filterbank.o’
Found ‘_puts’, possibly from ‘printf’ (C), ‘puts’ (C)
Objects: ‘command.o’, ‘cpu.o’, ‘filterbank.o’, ‘pario.o’, ‘sigio.o’

Compiled code should not call entry points which might terminate R nor
write to stdout/stderr instead of to the console, nor use Fortran I/O
nor system RNGs.

See ‘Writing portable packages’ in the ‘Writing R Extensions’ manual.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.