what do you mean can be recorded
im a little younger than you so i can put it as simple as i can
to simple have a button that has a button that says "F# Scale" and whe you touch it it plays you can do this....
fi
start a new project (view based) (or skip this step to add to you existing project) call it i will scale
first we need to add the audio player framework.
so under FrameWorks (in xcode) right or control click on UIKit.frameWork
then click reveal in finder.
scroll to the top and find "AVFoundation.framework"
drag that folder into the frameworks folder in xcode.
When you drag it in you should get a message in xcode at the top there should be a check box and it says "Copy items to destination group folder(if needed)"
un check the box so there is NO check mark on it.
No go into your scaleViewControler.h
make a IBAction and call it playSound (you can call it what ever you want to i would name it what the audio is).
you make the Action by typing this AFTER THE Brackets
{
}
so
put this code without the
@interface tutorial_for_DudeViewController : UIViewController {
}
Code:
@interface tutorial_for_DudeViewController : UIViewController {
}
- (IBAction)playSound;
Now hit command B then save all then go to your viewController .m
below
#import "scaleViewController.h"
type
Code:
#import<AVFoundation/AVAudioPlayer.h>
so the top of you .m file should look like this
Code:
#import "scale.h"
#import<AVFoundation/AVAudioPlayer.h>
@implementation tutorial_for_DudeViewController
Good.
Now go to finder and find the image you want the button to be drag that into the you xcode project check the box that says copy if needed at the top
do the same thing with your audio file
Now we can make the sound play.
below
@implementation scale
type
Code:
- (IBAction)playSound {
NSString *path = [[NSBundle mainBundle] pathForResource:@"SOUND FILE" ofType:@"wav"];
AVAudioPlayer* theAudio = [[AVAudioPlayer alloc] initWithContentsOfURL:[NSURL fileURLWithPath:path] error:NULL];
theAudio.delegate = self;
}
NOTE at the top the IBAction should be the same ibaction that we made in the .h
NOTE the SOUND FILE on line 2 should be the name of your audio file that you dragged in. And the wav should be change to your audio file extension.
To make it look good i would make custom buttons or a program
I use GIMP (its free) and almost as good as photoshop
If you have photoshop i would use that
Make everything custom dont use just a white background use images that you make.
In my app that im working on i have around 200-300 custom images that i made
It makes it look nice