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 grammatical 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?
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
add a comment |
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
add a comment |
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
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
r wav slots
asked Mar 8 at 6:30
Laurel GoldenLaurel Golden
31
31
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
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.
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
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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.
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
add a comment |
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.
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
add a comment |
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.
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.
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
add a comment |
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
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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