Is it possible to record a short contained sound no longer than 60 milliseconds?
I wish to play a short sound in an app (60 Milliseconds is ideal), however I'm noticing glitches in the sound on the current clip I have made.
I'm wondering if these glitches have to do with any ambient noise and improper audio recording (by me). I.E.: audio with reverb is longer than the audio length (after cut).
So my question, Is it possible to record such a short sound and (after noise reduction) won't sound like a static glitchy mess?
I have a Zoom H4N, and am using a sample rate of 48000 Hz. I suppose if I lower my mic gain, I can try to eliminate some noise off the bat. Otherwise I'm not used to having to be this specific about recording audio, so any help is appreciated.
Just for a background on the sound I'm trying to record: Try picturing a short synthesized beep, except created through percussive means (ex: a clap, or a knock on wood, etc.). The more I think about it, I feel like the reverb of the short sound in the room might make this difficult.
Alternatively, would a MIDI sound be a better choice?
audio-recording sound-effects midi
New contributor
|
show 1 more comment
I wish to play a short sound in an app (60 Milliseconds is ideal), however I'm noticing glitches in the sound on the current clip I have made.
I'm wondering if these glitches have to do with any ambient noise and improper audio recording (by me). I.E.: audio with reverb is longer than the audio length (after cut).
So my question, Is it possible to record such a short sound and (after noise reduction) won't sound like a static glitchy mess?
I have a Zoom H4N, and am using a sample rate of 48000 Hz. I suppose if I lower my mic gain, I can try to eliminate some noise off the bat. Otherwise I'm not used to having to be this specific about recording audio, so any help is appreciated.
Just for a background on the sound I'm trying to record: Try picturing a short synthesized beep, except created through percussive means (ex: a clap, or a knock on wood, etc.). The more I think about it, I feel like the reverb of the short sound in the room might make this difficult.
Alternatively, would a MIDI sound be a better choice?
audio-recording sound-effects midi
New contributor
Hi Matthew and Welcome. A sample of the sound would help provide better answers, as we'd know what kind of distortion or artifacts you're referring to. Does it only sound distorted when played back through the phone's speaker/s?
– Marc W
22 hours ago
@MarcW How can I share a raw file snippet? (I'm encoding it into Raw 16-bit PCM). Otherwise I can take the clip from my audacity project and share that somewhere. Audacity doesn't seem to like to play short (<100 ms) audio previews in the project, but when I play longer previews, I can hear the sound fine. Otherwise the distortion in question is coming from the android speakers, which I am also debugging to see if my program is at fault (I'm using low level C++ code to play audio, or more specifically the Oboe native library).
– Matthew Strom
19 hours ago
Curious, why are you encoding it in RAW PCM? That's a headerless format I think (i.e. no SR/Bit Depth info). Also, you need to check Audacity's setting for auto-fades if it won't play short audio snippets. Because there's no other reason I can think of why it wouldn't play it fine. Check that first. Then check if a WAV version will play in any media player after export.
– Marc W
8 hours ago
I'm Currently using RAW PCM to output into a audio buffer on a phone app (that's the format google suggested). There is also a new option to use MP3 if I change some of my application. I might be having issues with Audacity since I'm on Linux, it might work better on windows. Otherwise I've tried using a fade at the end of the clip, and I think it sounds a bit better on some android devices. I also output a new sample to wav, and it does sound relatively fine, but I believe part of the issue may also be from my application code so I'll try some different things there as well
– Matthew Strom
6 hours ago
1
All of the feed back has been helpful by the way, thanks everyone!
– Matthew Strom
6 hours ago
|
show 1 more comment
I wish to play a short sound in an app (60 Milliseconds is ideal), however I'm noticing glitches in the sound on the current clip I have made.
I'm wondering if these glitches have to do with any ambient noise and improper audio recording (by me). I.E.: audio with reverb is longer than the audio length (after cut).
So my question, Is it possible to record such a short sound and (after noise reduction) won't sound like a static glitchy mess?
I have a Zoom H4N, and am using a sample rate of 48000 Hz. I suppose if I lower my mic gain, I can try to eliminate some noise off the bat. Otherwise I'm not used to having to be this specific about recording audio, so any help is appreciated.
Just for a background on the sound I'm trying to record: Try picturing a short synthesized beep, except created through percussive means (ex: a clap, or a knock on wood, etc.). The more I think about it, I feel like the reverb of the short sound in the room might make this difficult.
Alternatively, would a MIDI sound be a better choice?
audio-recording sound-effects midi
New contributor
I wish to play a short sound in an app (60 Milliseconds is ideal), however I'm noticing glitches in the sound on the current clip I have made.
I'm wondering if these glitches have to do with any ambient noise and improper audio recording (by me). I.E.: audio with reverb is longer than the audio length (after cut).
So my question, Is it possible to record such a short sound and (after noise reduction) won't sound like a static glitchy mess?
I have a Zoom H4N, and am using a sample rate of 48000 Hz. I suppose if I lower my mic gain, I can try to eliminate some noise off the bat. Otherwise I'm not used to having to be this specific about recording audio, so any help is appreciated.
Just for a background on the sound I'm trying to record: Try picturing a short synthesized beep, except created through percussive means (ex: a clap, or a knock on wood, etc.). The more I think about it, I feel like the reverb of the short sound in the room might make this difficult.
Alternatively, would a MIDI sound be a better choice?
audio-recording sound-effects midi
audio-recording sound-effects midi
New contributor
New contributor
New contributor
asked yesterday
Matthew StromMatthew Strom
112
112
New contributor
New contributor
Hi Matthew and Welcome. A sample of the sound would help provide better answers, as we'd know what kind of distortion or artifacts you're referring to. Does it only sound distorted when played back through the phone's speaker/s?
– Marc W
22 hours ago
@MarcW How can I share a raw file snippet? (I'm encoding it into Raw 16-bit PCM). Otherwise I can take the clip from my audacity project and share that somewhere. Audacity doesn't seem to like to play short (<100 ms) audio previews in the project, but when I play longer previews, I can hear the sound fine. Otherwise the distortion in question is coming from the android speakers, which I am also debugging to see if my program is at fault (I'm using low level C++ code to play audio, or more specifically the Oboe native library).
– Matthew Strom
19 hours ago
Curious, why are you encoding it in RAW PCM? That's a headerless format I think (i.e. no SR/Bit Depth info). Also, you need to check Audacity's setting for auto-fades if it won't play short audio snippets. Because there's no other reason I can think of why it wouldn't play it fine. Check that first. Then check if a WAV version will play in any media player after export.
– Marc W
8 hours ago
I'm Currently using RAW PCM to output into a audio buffer on a phone app (that's the format google suggested). There is also a new option to use MP3 if I change some of my application. I might be having issues with Audacity since I'm on Linux, it might work better on windows. Otherwise I've tried using a fade at the end of the clip, and I think it sounds a bit better on some android devices. I also output a new sample to wav, and it does sound relatively fine, but I believe part of the issue may also be from my application code so I'll try some different things there as well
– Matthew Strom
6 hours ago
1
All of the feed back has been helpful by the way, thanks everyone!
– Matthew Strom
6 hours ago
|
show 1 more comment
Hi Matthew and Welcome. A sample of the sound would help provide better answers, as we'd know what kind of distortion or artifacts you're referring to. Does it only sound distorted when played back through the phone's speaker/s?
– Marc W
22 hours ago
@MarcW How can I share a raw file snippet? (I'm encoding it into Raw 16-bit PCM). Otherwise I can take the clip from my audacity project and share that somewhere. Audacity doesn't seem to like to play short (<100 ms) audio previews in the project, but when I play longer previews, I can hear the sound fine. Otherwise the distortion in question is coming from the android speakers, which I am also debugging to see if my program is at fault (I'm using low level C++ code to play audio, or more specifically the Oboe native library).
– Matthew Strom
19 hours ago
Curious, why are you encoding it in RAW PCM? That's a headerless format I think (i.e. no SR/Bit Depth info). Also, you need to check Audacity's setting for auto-fades if it won't play short audio snippets. Because there's no other reason I can think of why it wouldn't play it fine. Check that first. Then check if a WAV version will play in any media player after export.
– Marc W
8 hours ago
I'm Currently using RAW PCM to output into a audio buffer on a phone app (that's the format google suggested). There is also a new option to use MP3 if I change some of my application. I might be having issues with Audacity since I'm on Linux, it might work better on windows. Otherwise I've tried using a fade at the end of the clip, and I think it sounds a bit better on some android devices. I also output a new sample to wav, and it does sound relatively fine, but I believe part of the issue may also be from my application code so I'll try some different things there as well
– Matthew Strom
6 hours ago
1
All of the feed back has been helpful by the way, thanks everyone!
– Matthew Strom
6 hours ago
Hi Matthew and Welcome. A sample of the sound would help provide better answers, as we'd know what kind of distortion or artifacts you're referring to. Does it only sound distorted when played back through the phone's speaker/s?
– Marc W
22 hours ago
Hi Matthew and Welcome. A sample of the sound would help provide better answers, as we'd know what kind of distortion or artifacts you're referring to. Does it only sound distorted when played back through the phone's speaker/s?
– Marc W
22 hours ago
@MarcW How can I share a raw file snippet? (I'm encoding it into Raw 16-bit PCM). Otherwise I can take the clip from my audacity project and share that somewhere. Audacity doesn't seem to like to play short (<100 ms) audio previews in the project, but when I play longer previews, I can hear the sound fine. Otherwise the distortion in question is coming from the android speakers, which I am also debugging to see if my program is at fault (I'm using low level C++ code to play audio, or more specifically the Oboe native library).
– Matthew Strom
19 hours ago
@MarcW How can I share a raw file snippet? (I'm encoding it into Raw 16-bit PCM). Otherwise I can take the clip from my audacity project and share that somewhere. Audacity doesn't seem to like to play short (<100 ms) audio previews in the project, but when I play longer previews, I can hear the sound fine. Otherwise the distortion in question is coming from the android speakers, which I am also debugging to see if my program is at fault (I'm using low level C++ code to play audio, or more specifically the Oboe native library).
– Matthew Strom
19 hours ago
Curious, why are you encoding it in RAW PCM? That's a headerless format I think (i.e. no SR/Bit Depth info). Also, you need to check Audacity's setting for auto-fades if it won't play short audio snippets. Because there's no other reason I can think of why it wouldn't play it fine. Check that first. Then check if a WAV version will play in any media player after export.
– Marc W
8 hours ago
Curious, why are you encoding it in RAW PCM? That's a headerless format I think (i.e. no SR/Bit Depth info). Also, you need to check Audacity's setting for auto-fades if it won't play short audio snippets. Because there's no other reason I can think of why it wouldn't play it fine. Check that first. Then check if a WAV version will play in any media player after export.
– Marc W
8 hours ago
I'm Currently using RAW PCM to output into a audio buffer on a phone app (that's the format google suggested). There is also a new option to use MP3 if I change some of my application. I might be having issues with Audacity since I'm on Linux, it might work better on windows. Otherwise I've tried using a fade at the end of the clip, and I think it sounds a bit better on some android devices. I also output a new sample to wav, and it does sound relatively fine, but I believe part of the issue may also be from my application code so I'll try some different things there as well
– Matthew Strom
6 hours ago
I'm Currently using RAW PCM to output into a audio buffer on a phone app (that's the format google suggested). There is also a new option to use MP3 if I change some of my application. I might be having issues with Audacity since I'm on Linux, it might work better on windows. Otherwise I've tried using a fade at the end of the clip, and I think it sounds a bit better on some android devices. I also output a new sample to wav, and it does sound relatively fine, but I believe part of the issue may also be from my application code so I'll try some different things there as well
– Matthew Strom
6 hours ago
1
1
All of the feed back has been helpful by the way, thanks everyone!
– Matthew Strom
6 hours ago
All of the feed back has been helpful by the way, thanks everyone!
– Matthew Strom
6 hours ago
|
show 1 more comment
2 Answers
2
active
oldest
votes
You can use any sound you like and at the length you want, if you use an simple audio editor like Audacity, or a more advanced solution that can offer MIDI/synths, and additional tracks like Pro Tools.
I would first source the sounds either by recording them or using an instrument or synth that you can record into a digital audio workstation, then edit and fade them to the length that is most compatible.
When exporting the sounds, ensure that it is also compatible with the app or mobile OS by also matching the correct sample rate and Bit depth. You might benefit by converting it to MP3 to save disk space (Audacity or iTunes can do this).
add a comment |
You're probably experiencing the joys of a non-zero crossing at the edit points. Sure, you can record a sound and then shorten it in a DAW, as Joel has mentioned, but you do need to make sure you put a short fade in and fade out at the start and end of the sample.
If you do not, the DAC will have to deal with outputting sample values that will ensure that you have a very hard edge at the start and end of the sample which will result in a very nasty audible click at the start and end of playback.
To fix this you need to fade that sample in gradually and then fade out again. Doesn't have to be a long fade, just enough to get from a sample value of 0 to your audio level and then back again to zero once you have finished.
I will give this a try!
– Matthew Strom
19 hours ago
I +1'd because it's helpful and explanatory ;)
– Marc W
1 hour ago
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "512"
};
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: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
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
},
noCode: true, onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Matthew Strom is a new contributor. Be nice, and check out our Code of Conduct.
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%2fsound.stackexchange.com%2fquestions%2f45657%2fis-it-possible-to-record-a-short-contained-sound-no-longer-than-60-milliseconds%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
You can use any sound you like and at the length you want, if you use an simple audio editor like Audacity, or a more advanced solution that can offer MIDI/synths, and additional tracks like Pro Tools.
I would first source the sounds either by recording them or using an instrument or synth that you can record into a digital audio workstation, then edit and fade them to the length that is most compatible.
When exporting the sounds, ensure that it is also compatible with the app or mobile OS by also matching the correct sample rate and Bit depth. You might benefit by converting it to MP3 to save disk space (Audacity or iTunes can do this).
add a comment |
You can use any sound you like and at the length you want, if you use an simple audio editor like Audacity, or a more advanced solution that can offer MIDI/synths, and additional tracks like Pro Tools.
I would first source the sounds either by recording them or using an instrument or synth that you can record into a digital audio workstation, then edit and fade them to the length that is most compatible.
When exporting the sounds, ensure that it is also compatible with the app or mobile OS by also matching the correct sample rate and Bit depth. You might benefit by converting it to MP3 to save disk space (Audacity or iTunes can do this).
add a comment |
You can use any sound you like and at the length you want, if you use an simple audio editor like Audacity, or a more advanced solution that can offer MIDI/synths, and additional tracks like Pro Tools.
I would first source the sounds either by recording them or using an instrument or synth that you can record into a digital audio workstation, then edit and fade them to the length that is most compatible.
When exporting the sounds, ensure that it is also compatible with the app or mobile OS by also matching the correct sample rate and Bit depth. You might benefit by converting it to MP3 to save disk space (Audacity or iTunes can do this).
You can use any sound you like and at the length you want, if you use an simple audio editor like Audacity, or a more advanced solution that can offer MIDI/synths, and additional tracks like Pro Tools.
I would first source the sounds either by recording them or using an instrument or synth that you can record into a digital audio workstation, then edit and fade them to the length that is most compatible.
When exporting the sounds, ensure that it is also compatible with the app or mobile OS by also matching the correct sample rate and Bit depth. You might benefit by converting it to MP3 to save disk space (Audacity or iTunes can do this).
answered yesterday
Joel PintericJoel Pinteric
46539
46539
add a comment |
add a comment |
You're probably experiencing the joys of a non-zero crossing at the edit points. Sure, you can record a sound and then shorten it in a DAW, as Joel has mentioned, but you do need to make sure you put a short fade in and fade out at the start and end of the sample.
If you do not, the DAC will have to deal with outputting sample values that will ensure that you have a very hard edge at the start and end of the sample which will result in a very nasty audible click at the start and end of playback.
To fix this you need to fade that sample in gradually and then fade out again. Doesn't have to be a long fade, just enough to get from a sample value of 0 to your audio level and then back again to zero once you have finished.
I will give this a try!
– Matthew Strom
19 hours ago
I +1'd because it's helpful and explanatory ;)
– Marc W
1 hour ago
add a comment |
You're probably experiencing the joys of a non-zero crossing at the edit points. Sure, you can record a sound and then shorten it in a DAW, as Joel has mentioned, but you do need to make sure you put a short fade in and fade out at the start and end of the sample.
If you do not, the DAC will have to deal with outputting sample values that will ensure that you have a very hard edge at the start and end of the sample which will result in a very nasty audible click at the start and end of playback.
To fix this you need to fade that sample in gradually and then fade out again. Doesn't have to be a long fade, just enough to get from a sample value of 0 to your audio level and then back again to zero once you have finished.
I will give this a try!
– Matthew Strom
19 hours ago
I +1'd because it's helpful and explanatory ;)
– Marc W
1 hour ago
add a comment |
You're probably experiencing the joys of a non-zero crossing at the edit points. Sure, you can record a sound and then shorten it in a DAW, as Joel has mentioned, but you do need to make sure you put a short fade in and fade out at the start and end of the sample.
If you do not, the DAC will have to deal with outputting sample values that will ensure that you have a very hard edge at the start and end of the sample which will result in a very nasty audible click at the start and end of playback.
To fix this you need to fade that sample in gradually and then fade out again. Doesn't have to be a long fade, just enough to get from a sample value of 0 to your audio level and then back again to zero once you have finished.
You're probably experiencing the joys of a non-zero crossing at the edit points. Sure, you can record a sound and then shorten it in a DAW, as Joel has mentioned, but you do need to make sure you put a short fade in and fade out at the start and end of the sample.
If you do not, the DAC will have to deal with outputting sample values that will ensure that you have a very hard edge at the start and end of the sample which will result in a very nasty audible click at the start and end of playback.
To fix this you need to fade that sample in gradually and then fade out again. Doesn't have to be a long fade, just enough to get from a sample value of 0 to your audio level and then back again to zero once you have finished.
edited 22 hours ago
answered 22 hours ago
MarkMark
3,362820
3,362820
I will give this a try!
– Matthew Strom
19 hours ago
I +1'd because it's helpful and explanatory ;)
– Marc W
1 hour ago
add a comment |
I will give this a try!
– Matthew Strom
19 hours ago
I +1'd because it's helpful and explanatory ;)
– Marc W
1 hour ago
I will give this a try!
– Matthew Strom
19 hours ago
I will give this a try!
– Matthew Strom
19 hours ago
I +1'd because it's helpful and explanatory ;)
– Marc W
1 hour ago
I +1'd because it's helpful and explanatory ;)
– Marc W
1 hour ago
add a comment |
Matthew Strom is a new contributor. Be nice, and check out our Code of Conduct.
Matthew Strom is a new contributor. Be nice, and check out our Code of Conduct.
Matthew Strom is a new contributor. Be nice, and check out our Code of Conduct.
Matthew Strom is a new contributor. Be nice, and check out our Code of Conduct.
Thanks for contributing an answer to Sound Design Stack Exchange!
- 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%2fsound.stackexchange.com%2fquestions%2f45657%2fis-it-possible-to-record-a-short-contained-sound-no-longer-than-60-milliseconds%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
Hi Matthew and Welcome. A sample of the sound would help provide better answers, as we'd know what kind of distortion or artifacts you're referring to. Does it only sound distorted when played back through the phone's speaker/s?
– Marc W
22 hours ago
@MarcW How can I share a raw file snippet? (I'm encoding it into Raw 16-bit PCM). Otherwise I can take the clip from my audacity project and share that somewhere. Audacity doesn't seem to like to play short (<100 ms) audio previews in the project, but when I play longer previews, I can hear the sound fine. Otherwise the distortion in question is coming from the android speakers, which I am also debugging to see if my program is at fault (I'm using low level C++ code to play audio, or more specifically the Oboe native library).
– Matthew Strom
19 hours ago
Curious, why are you encoding it in RAW PCM? That's a headerless format I think (i.e. no SR/Bit Depth info). Also, you need to check Audacity's setting for auto-fades if it won't play short audio snippets. Because there's no other reason I can think of why it wouldn't play it fine. Check that first. Then check if a WAV version will play in any media player after export.
– Marc W
8 hours ago
I'm Currently using RAW PCM to output into a audio buffer on a phone app (that's the format google suggested). There is also a new option to use MP3 if I change some of my application. I might be having issues with Audacity since I'm on Linux, it might work better on windows. Otherwise I've tried using a fade at the end of the clip, and I think it sounds a bit better on some android devices. I also output a new sample to wav, and it does sound relatively fine, but I believe part of the issue may also be from my application code so I'll try some different things there as well
– Matthew Strom
6 hours ago
1
All of the feed back has been helpful by the way, thanks everyone!
– Matthew Strom
6 hours ago