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

          Thal And Out Agency railway station See also References External links Navigation menuOfficial Web Site of Pakistan RailwaysArchivedOfficial Web Site of Pakistan Railwayseeexpanding ite

          Understanding generators in Python2019 Community Moderator ElectionGenerator function not working pythonFor loop not executing two timesGenerators - Printing generated valuesWhy can a python generator only be used once?What exactly do generators do?What does the “yield” keyword do?What does “list comprehension” mean? How does it work and how can I use it?sklearn Kfold acces single fold instead of for loopIs a generator the callable? Which is the generator?Apply Border To Range Of Cells Using OpenpyxlCalling an external command in PythonWhat are metaclasses in Python?What is the difference between @staticmethod and @classmethod?Finding the index of an item given a list containing it in PythonDifference between append vs. extend list methods in PythonHow can I safely create a nested directory in Python?Does Python have a ternary conditional operator?Understanding slice notationUnderstanding Python super() with __init__() methodsDoes Python have a string 'contains' substring method?

          How can I change the color of pagination dots of UIPageControl?How to change UIPageControl dotsIs there a way to change page indicator dots colorCustomize dot with image of UIPageControl at index 0 of UIPageControlNo visible @interface for 'NSObject<PageControlDelegate>' declares the selector 'pageControlPageDidChange:'How to change the color of pagination dots in UIPageControl with a different color per pagepagecontrol indicator custom image instead of DefaultChanging the colour of UIPageControl dots in MonoTouchpagecontrol selectable page visibility color?Alternative way to load ViewControllers on a UIPageControlHow to set only layer.border-color for UIpage control dots in swiftHow can I develop for iPhone using a Windows development machine?How to change the name of an iOS app?UITableView - change section header coloruipagecontrol indicator(dot)issueCustom UIPageControl dots color not changingchange the interspace between UIPageControl dotsHow to change Status Bar text color in iOSHow can I change image tintColor in iOS and WatchKitUIPageControl dots with larger space in between each dotsHow to change the color of pagination dots in UIPageControl with a different color per page