How do you assign slots to .wav files in rHow to sort a dataframe by multiple column(s)?How to join (merge) data frames (inner, outer, left, right)?Reading *.wav files in PythonHow to play .wav files with javaHow to make a great R reproducible examplePlaying .mp3 and .wav in Java?How to properly document S4 class slots using Roxygen2?How can we make xkcd style graphs?Find duration of wav file in rHow do you reverse a wav file?

Is a model fitted to data or is data fitted to a model?

Find last 3 digits of this monster number

What is the gram­mat­i­cal term for “‑ed” words like these?

How do ground effect vehicles perform turns?

Drawing a topological "handle" with Tikz

Is it improper etiquette to ask your opponent what his/her rating is before the game?

Some numbers are more equivalent than others

List of people who lose a child in תנ"ך

Longest common substring in linear time

Should I stop contributing to retirement accounts?

How do I implement a file system driver driver in Linux?

Translation of Scottish 16th century church stained glass

Should I install hardwood flooring or cabinets first?

Can I use my Chinese passport to enter China after I acquired another citizenship?

Greco-Roman egalitarianism

What's the difference between 違法 and 不法?

We have a love-hate relationship

Is XSS in canonical link possible?

What linear sensor for a keyboard?

Database accidentally deleted with a bash script

How do you respond to a colleague from another team when they're wrongly expecting that you'll help them?

Freedom of speech and where it applies

Journal losing indexing services

Can somebody explain Brexit in a few child-proof sentences?



How do you assign slots to .wav files in r


How to sort a dataframe by multiple column(s)?How to join (merge) data frames (inner, outer, left, right)?Reading *.wav files in PythonHow to play .wav files with javaHow to make a great R reproducible examplePlaying .mp3 and .wav in Java?How to properly document S4 class slots using Roxygen2?How can we make xkcd style graphs?Find duration of wav file in rHow do you reverse a wav file?













0















Hoping this will be a palm to the forehead for missing something.
Using R Consol and I'm trying to analyze .wav files. I've loaded seewave, tuneR, soundecology, warbleR, and many supporting packages. And this is the message I get;




bioacoustics::read_wav("A1.wav", time_exp=1, from=NULL, to=NULL)




Wave Object
Number of Samples: 1584000
Duration (seconds): 33
Samplingrate (Hertz): 48000
Channels (Mono/Stereo): Mono
PCM (integer format): TRUE
Bit (8/16/24/32/64): 24




fspec("A1.wav",channel=left,FFT_size=256,FFT_overlap=0.875, FFT_win="hann",LPF,HPF=0,tlim=NULL,flim=NULL, rotate=FALSE,to_dB=TRUE)
Error in slot(wave, "samp.rate") :
cannot get a slot ("samp.rate") from an object of type "character"
How/where do I assign the slots with this .wav information.
Thanks for helping,
Laurel











share|improve this question


























    0















    Hoping this will be a palm to the forehead for missing something.
    Using R Consol and I'm trying to analyze .wav files. I've loaded seewave, tuneR, soundecology, warbleR, and many supporting packages. And this is the message I get;




    bioacoustics::read_wav("A1.wav", time_exp=1, from=NULL, to=NULL)




    Wave Object
    Number of Samples: 1584000
    Duration (seconds): 33
    Samplingrate (Hertz): 48000
    Channels (Mono/Stereo): Mono
    PCM (integer format): TRUE
    Bit (8/16/24/32/64): 24




    fspec("A1.wav",channel=left,FFT_size=256,FFT_overlap=0.875, FFT_win="hann",LPF,HPF=0,tlim=NULL,flim=NULL, rotate=FALSE,to_dB=TRUE)
    Error in slot(wave, "samp.rate") :
    cannot get a slot ("samp.rate") from an object of type "character"
    How/where do I assign the slots with this .wav information.
    Thanks for helping,
    Laurel











    share|improve this question
























      0












      0








      0








      Hoping this will be a palm to the forehead for missing something.
      Using R Consol and I'm trying to analyze .wav files. I've loaded seewave, tuneR, soundecology, warbleR, and many supporting packages. And this is the message I get;




      bioacoustics::read_wav("A1.wav", time_exp=1, from=NULL, to=NULL)




      Wave Object
      Number of Samples: 1584000
      Duration (seconds): 33
      Samplingrate (Hertz): 48000
      Channels (Mono/Stereo): Mono
      PCM (integer format): TRUE
      Bit (8/16/24/32/64): 24




      fspec("A1.wav",channel=left,FFT_size=256,FFT_overlap=0.875, FFT_win="hann",LPF,HPF=0,tlim=NULL,flim=NULL, rotate=FALSE,to_dB=TRUE)
      Error in slot(wave, "samp.rate") :
      cannot get a slot ("samp.rate") from an object of type "character"
      How/where do I assign the slots with this .wav information.
      Thanks for helping,
      Laurel











      share|improve this question














      Hoping this will be a palm to the forehead for missing something.
      Using R Consol and I'm trying to analyze .wav files. I've loaded seewave, tuneR, soundecology, warbleR, and many supporting packages. And this is the message I get;




      bioacoustics::read_wav("A1.wav", time_exp=1, from=NULL, to=NULL)




      Wave Object
      Number of Samples: 1584000
      Duration (seconds): 33
      Samplingrate (Hertz): 48000
      Channels (Mono/Stereo): Mono
      PCM (integer format): TRUE
      Bit (8/16/24/32/64): 24




      fspec("A1.wav",channel=left,FFT_size=256,FFT_overlap=0.875, FFT_win="hann",LPF,HPF=0,tlim=NULL,flim=NULL, rotate=FALSE,to_dB=TRUE)
      Error in slot(wave, "samp.rate") :
      cannot get a slot ("samp.rate") from an object of type "character"
      How/where do I assign the slots with this .wav information.
      Thanks for helping,
      Laurel








      r wav slots






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 8 at 6:30









      Laurel GoldenLaurel Golden

      31




      31






















          1 Answer
          1






          active

          oldest

          votes


















          0














          If I read the code in your question correctly, you should probably do:



          myWave <- bioacoustics::read_wav("A1.wav", time_exp=1, from=NULL, to=NULL)

          bioacoustics::fspec(myWave, channel=left, FFT_size=256, FFT_overlap=0.875,
          FFT_win="hann", LPF, HPF=0, tlim=NULL, flim=NULL,
          rotate=FALSE, to_dB=TRUE)


          The error message indicates that you have passed an object of type character (i.e. "A1.wav") to the fspec function, which instead expects a Wave object, as created by bioacoustics::read_wav. The Wave object contains a slot called "samp.rate", so then everything should be fine.






          share|improve this answer























          • I still seem to be having an issue getting the slots right. Using the code, here's the error msg; bioacoustics::fspec(myWave, channel=left, FFT_size=256, FFT_overlap=0.875, + FFT_win="hann", LPF, HPF=0, tlim=NULL, flim=NULL, + rotate=FALSE, to_dB=TRUE) Error in slot(wave, channel) : object 'left' not found

            – Laurel Golden
            Mar 8 at 22:55












          • I tried the ACI in seewave and it works. I'll keep at bioacoustics to see what it wants. Thanks for the help.

            – Laurel Golden
            Mar 8 at 23:24










          Your Answer






          StackExchange.ifUsing("editor", function ()
          StackExchange.using("externalEditor", function ()
          StackExchange.using("snippets", function ()
          StackExchange.snippets.init();
          );
          );
          , "code-snippets");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "1"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55057863%2fhow-do-you-assign-slots-to-wav-files-in-r%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          0














          If I read the code in your question correctly, you should probably do:



          myWave <- bioacoustics::read_wav("A1.wav", time_exp=1, from=NULL, to=NULL)

          bioacoustics::fspec(myWave, channel=left, FFT_size=256, FFT_overlap=0.875,
          FFT_win="hann", LPF, HPF=0, tlim=NULL, flim=NULL,
          rotate=FALSE, to_dB=TRUE)


          The error message indicates that you have passed an object of type character (i.e. "A1.wav") to the fspec function, which instead expects a Wave object, as created by bioacoustics::read_wav. The Wave object contains a slot called "samp.rate", so then everything should be fine.






          share|improve this answer























          • I still seem to be having an issue getting the slots right. Using the code, here's the error msg; bioacoustics::fspec(myWave, channel=left, FFT_size=256, FFT_overlap=0.875, + FFT_win="hann", LPF, HPF=0, tlim=NULL, flim=NULL, + rotate=FALSE, to_dB=TRUE) Error in slot(wave, channel) : object 'left' not found

            – Laurel Golden
            Mar 8 at 22:55












          • I tried the ACI in seewave and it works. I'll keep at bioacoustics to see what it wants. Thanks for the help.

            – Laurel Golden
            Mar 8 at 23:24















          0














          If I read the code in your question correctly, you should probably do:



          myWave <- bioacoustics::read_wav("A1.wav", time_exp=1, from=NULL, to=NULL)

          bioacoustics::fspec(myWave, channel=left, FFT_size=256, FFT_overlap=0.875,
          FFT_win="hann", LPF, HPF=0, tlim=NULL, flim=NULL,
          rotate=FALSE, to_dB=TRUE)


          The error message indicates that you have passed an object of type character (i.e. "A1.wav") to the fspec function, which instead expects a Wave object, as created by bioacoustics::read_wav. The Wave object contains a slot called "samp.rate", so then everything should be fine.






          share|improve this answer























          • I still seem to be having an issue getting the slots right. Using the code, here's the error msg; bioacoustics::fspec(myWave, channel=left, FFT_size=256, FFT_overlap=0.875, + FFT_win="hann", LPF, HPF=0, tlim=NULL, flim=NULL, + rotate=FALSE, to_dB=TRUE) Error in slot(wave, channel) : object 'left' not found

            – Laurel Golden
            Mar 8 at 22:55












          • I tried the ACI in seewave and it works. I'll keep at bioacoustics to see what it wants. Thanks for the help.

            – Laurel Golden
            Mar 8 at 23:24













          0












          0








          0







          If I read the code in your question correctly, you should probably do:



          myWave <- bioacoustics::read_wav("A1.wav", time_exp=1, from=NULL, to=NULL)

          bioacoustics::fspec(myWave, channel=left, FFT_size=256, FFT_overlap=0.875,
          FFT_win="hann", LPF, HPF=0, tlim=NULL, flim=NULL,
          rotate=FALSE, to_dB=TRUE)


          The error message indicates that you have passed an object of type character (i.e. "A1.wav") to the fspec function, which instead expects a Wave object, as created by bioacoustics::read_wav. The Wave object contains a slot called "samp.rate", so then everything should be fine.






          share|improve this answer













          If I read the code in your question correctly, you should probably do:



          myWave <- bioacoustics::read_wav("A1.wav", time_exp=1, from=NULL, to=NULL)

          bioacoustics::fspec(myWave, channel=left, FFT_size=256, FFT_overlap=0.875,
          FFT_win="hann", LPF, HPF=0, tlim=NULL, flim=NULL,
          rotate=FALSE, to_dB=TRUE)


          The error message indicates that you have passed an object of type character (i.e. "A1.wav") to the fspec function, which instead expects a Wave object, as created by bioacoustics::read_wav. The Wave object contains a slot called "samp.rate", so then everything should be fine.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Mar 8 at 13:47









          RolandAScRolandASc

          2,9891623




          2,9891623












          • I still seem to be having an issue getting the slots right. Using the code, here's the error msg; bioacoustics::fspec(myWave, channel=left, FFT_size=256, FFT_overlap=0.875, + FFT_win="hann", LPF, HPF=0, tlim=NULL, flim=NULL, + rotate=FALSE, to_dB=TRUE) Error in slot(wave, channel) : object 'left' not found

            – Laurel Golden
            Mar 8 at 22:55












          • I tried the ACI in seewave and it works. I'll keep at bioacoustics to see what it wants. Thanks for the help.

            – Laurel Golden
            Mar 8 at 23:24

















          • I still seem to be having an issue getting the slots right. Using the code, here's the error msg; bioacoustics::fspec(myWave, channel=left, FFT_size=256, FFT_overlap=0.875, + FFT_win="hann", LPF, HPF=0, tlim=NULL, flim=NULL, + rotate=FALSE, to_dB=TRUE) Error in slot(wave, channel) : object 'left' not found

            – Laurel Golden
            Mar 8 at 22:55












          • I tried the ACI in seewave and it works. I'll keep at bioacoustics to see what it wants. Thanks for the help.

            – Laurel Golden
            Mar 8 at 23:24
















          I still seem to be having an issue getting the slots right. Using the code, here's the error msg; bioacoustics::fspec(myWave, channel=left, FFT_size=256, FFT_overlap=0.875, + FFT_win="hann", LPF, HPF=0, tlim=NULL, flim=NULL, + rotate=FALSE, to_dB=TRUE) Error in slot(wave, channel) : object 'left' not found

          – Laurel Golden
          Mar 8 at 22:55






          I still seem to be having an issue getting the slots right. Using the code, here's the error msg; bioacoustics::fspec(myWave, channel=left, FFT_size=256, FFT_overlap=0.875, + FFT_win="hann", LPF, HPF=0, tlim=NULL, flim=NULL, + rotate=FALSE, to_dB=TRUE) Error in slot(wave, channel) : object 'left' not found

          – Laurel Golden
          Mar 8 at 22:55














          I tried the ACI in seewave and it works. I'll keep at bioacoustics to see what it wants. Thanks for the help.

          – Laurel Golden
          Mar 8 at 23:24





          I tried the ACI in seewave and it works. I'll keep at bioacoustics to see what it wants. Thanks for the help.

          – Laurel Golden
          Mar 8 at 23:24



















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55057863%2fhow-do-you-assign-slots-to-wav-files-in-r%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          How to get text form Clipboard with JavaScript in Firefox 56?How to validate an email address in JavaScript?How do JavaScript closures work?How do I remove a property from a JavaScript object?How do you get a timestamp in JavaScript?How do I copy to the clipboard in JavaScript?How do I include a JavaScript file in another JavaScript file?Get the current URL with JavaScript?How to replace all occurrences of a string in JavaScriptHow to check whether a string contains a substring in JavaScript?How do I remove a particular element from an array in JavaScript?

          Can't initialize raids on a new ASUS Prime B360M-A motherboard2019 Community Moderator ElectionSimilar to RAID config yet more like mirroring solution?Can't get motherboard serial numberWhy does the BIOS entry point start with a WBINVD instruction?UEFI performance Asus Maximus V Extreme

          List of MPs elected to the English parliament in 1640 (April) Contents List of constituencies and members See also Notes References Navigation menueNational Archives – The Glynde Place ArchivesCobbett's Parliamentary history of England, from the Norman Conquest in 1066 to the year 1803'Aldermen in Parliament', The Aldermen of the City of London: Temp. Henry III – 1912onepage&q&f&#61, false 229