Is it possible to record a short contained sound no longer than 60 milliseconds?












2















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?










share|improve this question







New contributor




Matthew Strom is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





















  • 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
    yesterday













  • @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
    yesterday











  • 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
    14 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
    11 hours ago






  • 1





    All of the feed back has been helpful by the way, thanks everyone!

    – Matthew Strom
    11 hours ago
















2















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?










share|improve this question







New contributor




Matthew Strom is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





















  • 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
    yesterday













  • @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
    yesterday











  • 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
    14 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
    11 hours ago






  • 1





    All of the feed back has been helpful by the way, thanks everyone!

    – Matthew Strom
    11 hours ago














2












2








2








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?










share|improve this question







New contributor




Matthew Strom is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












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






share|improve this question







New contributor




Matthew Strom is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question







New contributor




Matthew Strom is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question






New contributor




Matthew Strom is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked yesterday









Matthew StromMatthew Strom

112




112




New contributor




Matthew Strom is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





Matthew Strom is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






Matthew Strom is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.













  • 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
    yesterday













  • @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
    yesterday











  • 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
    14 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
    11 hours ago






  • 1





    All of the feed back has been helpful by the way, thanks everyone!

    – Matthew Strom
    11 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
    yesterday













  • @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
    yesterday











  • 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
    14 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
    11 hours ago






  • 1





    All of the feed back has been helpful by the way, thanks everyone!

    – Matthew Strom
    11 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
yesterday







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
yesterday















@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
yesterday





@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
yesterday













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
14 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
14 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
11 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
11 hours ago




1




1





All of the feed back has been helpful by the way, thanks everyone!

– Matthew Strom
11 hours ago





All of the feed back has been helpful by the way, thanks everyone!

– Matthew Strom
11 hours ago










2 Answers
2






active

oldest

votes


















2














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






share|improve this answer































    2














    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.






    share|improve this answer


























    • I will give this a try!

      – Matthew Strom
      yesterday











    • I +1'd because it's helpful and explanatory ;)

      – Marc W
      6 hours ago












    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.










    draft saved

    draft discarded


















    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









    2














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






    share|improve this answer




























      2














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






      share|improve this answer


























        2












        2








        2







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






        share|improve this answer













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







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered yesterday









        Joel PintericJoel Pinteric

        46539




        46539























            2














            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.






            share|improve this answer


























            • I will give this a try!

              – Matthew Strom
              yesterday











            • I +1'd because it's helpful and explanatory ;)

              – Marc W
              6 hours ago
















            2














            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.






            share|improve this answer


























            • I will give this a try!

              – Matthew Strom
              yesterday











            • I +1'd because it's helpful and explanatory ;)

              – Marc W
              6 hours ago














            2












            2








            2







            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.






            share|improve this answer















            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.







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited yesterday

























            answered yesterday









            MarkMark

            3,362820




            3,362820













            • I will give this a try!

              – Matthew Strom
              yesterday











            • I +1'd because it's helpful and explanatory ;)

              – Marc W
              6 hours ago



















            • I will give this a try!

              – Matthew Strom
              yesterday











            • I +1'd because it's helpful and explanatory ;)

              – Marc W
              6 hours ago

















            I will give this a try!

            – Matthew Strom
            yesterday





            I will give this a try!

            – Matthew Strom
            yesterday













            I +1'd because it's helpful and explanatory ;)

            – Marc W
            6 hours ago





            I +1'd because it's helpful and explanatory ;)

            – Marc W
            6 hours ago










            Matthew Strom is a new contributor. Be nice, and check out our Code of Conduct.










            draft saved

            draft discarded


















            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.




            draft saved


            draft discarded














            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





















































            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

            GameSpot

            日野市

            Tu-95轟炸機