Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 261231
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T22:24:53+00:00 2026-05-11T22:24:53+00:00

i have just created a drum app. The user taps on the individual buttons

  • 0

i have just created a drum app. The user taps on the individual buttons which triggers a short sound to play using the systemsound from AudioToolbox.
I now would like to add a UIButton which says “record”, and upon click, will record all Systemsounds being played, and then when the use presses the stop button; the program should then be able to playback the sound.

How do i go about doing this?! The whole process of the program being able to record the short sounds that the user triggers by tapping on the individual hit areas?!

Please let me know

Thanks

Pavan

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-11T22:24:53+00:00Added an answer on May 11, 2026 at 10:24 pm

    I’m not familiar with the audio hardware within the iPhone itself, but since it does not expose any internal synthesization routines I wouldn’t be surprised if its not possible to capture the outbound audio for reprocessing.

    I suspect you will find it much easier, particularly if you’re not familiar with programming audio hardware directly, to instead record the drum actions and time intervals and replay the the audio files in the same manner as originally played. This would also have the advantage that you could edit, slow down, speed up, and other tricks without altering the audio directly.

    As the drums are hit, you’d need to append to an NSMutableArray. The sample below is based on a drumType (tag for the drum button being hit for example), and a drumNextDelay which is the delay (NSTimeInterval) to the next drum hit. There’s obviously more ways of handling this, but its just an example.

    A rough version of the playback could be implemented by calling performSelector repeatedly with the next time interval, something like the following:

    - (void) startPerformance {
    self.drumIndex = -1;
    [self performSelector:@selector(playDrumBeat) withObject:nil afterDelay:0];
    }
    
    - (void) playDrumBeat {
    self.drumIndex++;
    [self playDrum:[[drumBeats objectAtIndex:self.drumIndex] drumType]];
    [self performSelector:@selector(playDrumBeat) withObject:nil afterDelay:[[drumBeats objectAtIndex:self.drumIndex] drumNextDelay]];
    }
    

    This can be prone to timing issues with the OS, but I’d pursue something like this for a first cut and see if it works.

    Barney

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have just created a report in Report Manager using a Stored Procedure which
I have just created a new silverlight app using Silverlight navigation template. All went
Have just started using Visual Studio Professional's built-in unit testing features, which as I
I have just created a AdHoc distribution provisioning profile for the app id 49776ZQRBG.com.gfeed.ride
I have just created a virtual directory and placed my app's files into it
I have just created a user in ASP.NET MVC ,and i want to insert
I have just created 2 pointers which has undefined behavior and try to invoke
I have just created a mid-sized web-application using Java, a custom MVC framework, javascript.
I have an MVC 3 application which uses asp.net authentication. I have just created
I have just created a cool app that work with SMS. I would like

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.