Generating waveform from any music file ios
I'm looking for how to draw the sound waves according to music.
I want waves like this image
here is some discussion about displaying Waves from music
- WaveForm on IOS
- rendering a waveform on an iphone
- audio waveform visualisation with iPhone
Github Example Links
- https://github.com/gyetvan-andras/cocoa-waveform
- https://github.com/benalavi/waveform
- https://github.com/JingWZ/WaveView
- https://github.com/gyetvan-andras/cocoa-waveform
- https://github.com/ioslovers/ATTabandHoldAudioRecord
- https://github.com/hezone/ECGWavesPlayer
- https://github.com/iluvcapra/JHWaveform
But not getting any idea about this type of wavefrom, is this possible to draw waves like this image?
ios iphone signal-processing waveform wave
add a comment |
I'm looking for how to draw the sound waves according to music.
I want waves like this image
here is some discussion about displaying Waves from music
- WaveForm on IOS
- rendering a waveform on an iphone
- audio waveform visualisation with iPhone
Github Example Links
- https://github.com/gyetvan-andras/cocoa-waveform
- https://github.com/benalavi/waveform
- https://github.com/JingWZ/WaveView
- https://github.com/gyetvan-andras/cocoa-waveform
- https://github.com/ioslovers/ATTabandHoldAudioRecord
- https://github.com/hezone/ECGWavesPlayer
- https://github.com/iluvcapra/JHWaveform
But not getting any idea about this type of wavefrom, is this possible to draw waves like this image?
ios iphone signal-processing waveform wave
1
Your image doesn't appear to have any relationship to an actual waveform. Where are you seeing that?
– duskwuff
Oct 31 '13 at 6:58
i want to display wavefrom like this. Please check this image, markhadleyuk.com/wp-content/uploads/2012/01/…
– Vishal Khatri
Nov 11 '13 at 9:50
There are no resources on how to generate a waveform like the ones in your images because they are fake. An audio waveform from a song doesn't look like that. The image in your OP looks like sine waves with a window function. The link in your comment might be real audio data with a low-pass filter but if you are here asking how to do this that is way beyond you. Sorry. There is a plethora of information in the links you've posted and on the web. I don't understand what you want for an answer.
– Radiodef
Nov 12 '13 at 19:56
you can refer this stackoverflow.com/questions/5032775/… and can make changes in generating image code
– S S
Nov 13 '13 at 6:37
add a comment |
I'm looking for how to draw the sound waves according to music.
I want waves like this image
here is some discussion about displaying Waves from music
- WaveForm on IOS
- rendering a waveform on an iphone
- audio waveform visualisation with iPhone
Github Example Links
- https://github.com/gyetvan-andras/cocoa-waveform
- https://github.com/benalavi/waveform
- https://github.com/JingWZ/WaveView
- https://github.com/gyetvan-andras/cocoa-waveform
- https://github.com/ioslovers/ATTabandHoldAudioRecord
- https://github.com/hezone/ECGWavesPlayer
- https://github.com/iluvcapra/JHWaveform
But not getting any idea about this type of wavefrom, is this possible to draw waves like this image?
ios iphone signal-processing waveform wave
I'm looking for how to draw the sound waves according to music.
I want waves like this image
here is some discussion about displaying Waves from music
- WaveForm on IOS
- rendering a waveform on an iphone
- audio waveform visualisation with iPhone
Github Example Links
- https://github.com/gyetvan-andras/cocoa-waveform
- https://github.com/benalavi/waveform
- https://github.com/JingWZ/WaveView
- https://github.com/gyetvan-andras/cocoa-waveform
- https://github.com/ioslovers/ATTabandHoldAudioRecord
- https://github.com/hezone/ECGWavesPlayer
- https://github.com/iluvcapra/JHWaveform
But not getting any idea about this type of wavefrom, is this possible to draw waves like this image?
ios iphone signal-processing waveform wave
ios iphone signal-processing waveform wave
edited Jan 2 at 3:56
Dale Burrell
3,27232554
3,27232554
asked Oct 31 '13 at 6:28
Vishal KhatriVishal Khatri
4412931
4412931
1
Your image doesn't appear to have any relationship to an actual waveform. Where are you seeing that?
– duskwuff
Oct 31 '13 at 6:58
i want to display wavefrom like this. Please check this image, markhadleyuk.com/wp-content/uploads/2012/01/…
– Vishal Khatri
Nov 11 '13 at 9:50
There are no resources on how to generate a waveform like the ones in your images because they are fake. An audio waveform from a song doesn't look like that. The image in your OP looks like sine waves with a window function. The link in your comment might be real audio data with a low-pass filter but if you are here asking how to do this that is way beyond you. Sorry. There is a plethora of information in the links you've posted and on the web. I don't understand what you want for an answer.
– Radiodef
Nov 12 '13 at 19:56
you can refer this stackoverflow.com/questions/5032775/… and can make changes in generating image code
– S S
Nov 13 '13 at 6:37
add a comment |
1
Your image doesn't appear to have any relationship to an actual waveform. Where are you seeing that?
– duskwuff
Oct 31 '13 at 6:58
i want to display wavefrom like this. Please check this image, markhadleyuk.com/wp-content/uploads/2012/01/…
– Vishal Khatri
Nov 11 '13 at 9:50
There are no resources on how to generate a waveform like the ones in your images because they are fake. An audio waveform from a song doesn't look like that. The image in your OP looks like sine waves with a window function. The link in your comment might be real audio data with a low-pass filter but if you are here asking how to do this that is way beyond you. Sorry. There is a plethora of information in the links you've posted and on the web. I don't understand what you want for an answer.
– Radiodef
Nov 12 '13 at 19:56
you can refer this stackoverflow.com/questions/5032775/… and can make changes in generating image code
– S S
Nov 13 '13 at 6:37
1
1
Your image doesn't appear to have any relationship to an actual waveform. Where are you seeing that?
– duskwuff
Oct 31 '13 at 6:58
Your image doesn't appear to have any relationship to an actual waveform. Where are you seeing that?
– duskwuff
Oct 31 '13 at 6:58
i want to display wavefrom like this. Please check this image, markhadleyuk.com/wp-content/uploads/2012/01/…
– Vishal Khatri
Nov 11 '13 at 9:50
i want to display wavefrom like this. Please check this image, markhadleyuk.com/wp-content/uploads/2012/01/…
– Vishal Khatri
Nov 11 '13 at 9:50
There are no resources on how to generate a waveform like the ones in your images because they are fake. An audio waveform from a song doesn't look like that. The image in your OP looks like sine waves with a window function. The link in your comment might be real audio data with a low-pass filter but if you are here asking how to do this that is way beyond you. Sorry. There is a plethora of information in the links you've posted and on the web. I don't understand what you want for an answer.
– Radiodef
Nov 12 '13 at 19:56
There are no resources on how to generate a waveform like the ones in your images because they are fake. An audio waveform from a song doesn't look like that. The image in your OP looks like sine waves with a window function. The link in your comment might be real audio data with a low-pass filter but if you are here asking how to do this that is way beyond you. Sorry. There is a plethora of information in the links you've posted and on the web. I don't understand what you want for an answer.
– Radiodef
Nov 12 '13 at 19:56
you can refer this stackoverflow.com/questions/5032775/… and can make changes in generating image code
– S S
Nov 13 '13 at 6:37
you can refer this stackoverflow.com/questions/5032775/… and can make changes in generating image code
– S S
Nov 13 '13 at 6:37
add a comment |
3 Answers
3
active
oldest
votes
you can refer this link Drawing waveform with AVAssetReader and can make change in generating image code.
add a comment |
Disclaimer: A lot of this has been discovered through trial and error, I may have some serious false assumptions in play here:
You would need to use the AudioUnits framework. When initialising the playback you can create an AURenderCallbackStruct. You can specify in this struct a playback callback function which provides you with a few arguments which will contain the information you need.
the callback function will have a signature like this:
static OSStatus recordingCallback (void *inRefCon,
AudioUnitRenderActionFlags *ioActionFlags,
const AudioTimeStamp *inTimeStamp,
UInt32 inBusNumber,
UInt32 inNumberFrames,
AudioBufferList *ioData)
In here there is an array of audio data which can be used for getting amplitude of the audio buffer for each frequency bin, or for calculating the DB value of the frequency bin.
I don't know what that graph is showing, but it looks to me like a smoothed display of the amplitudes of each of the sample bins.
Audio Units are not simple, but its worth playing with for a while until you get a grip.
Here is a skeleton of my callback function so you have more of a grasp as to what I mean:
EDIT: removed dead link, I've lost this code sorry
If your playing back media in realtime this is the correct answer, you can get the audio data being outputted through this callback.
– kezi
Jun 13 '14 at 5:14
add a comment |
I, too have been trying sincerely for the last three months but I didn't find a solution. For the time being I used static images based on the type of song (static data songs). I added the images to a UIScrollView
and changed the contentOffset
based on the current position of the audio.
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%2f19699780%2fgenerating-waveform-from-any-music-file-ios%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
you can refer this link Drawing waveform with AVAssetReader and can make change in generating image code.
add a comment |
you can refer this link Drawing waveform with AVAssetReader and can make change in generating image code.
add a comment |
you can refer this link Drawing waveform with AVAssetReader and can make change in generating image code.
you can refer this link Drawing waveform with AVAssetReader and can make change in generating image code.
edited May 23 '17 at 11:54
Community♦
11
11
answered Nov 13 '13 at 6:39
S SS S
3241415
3241415
add a comment |
add a comment |
Disclaimer: A lot of this has been discovered through trial and error, I may have some serious false assumptions in play here:
You would need to use the AudioUnits framework. When initialising the playback you can create an AURenderCallbackStruct. You can specify in this struct a playback callback function which provides you with a few arguments which will contain the information you need.
the callback function will have a signature like this:
static OSStatus recordingCallback (void *inRefCon,
AudioUnitRenderActionFlags *ioActionFlags,
const AudioTimeStamp *inTimeStamp,
UInt32 inBusNumber,
UInt32 inNumberFrames,
AudioBufferList *ioData)
In here there is an array of audio data which can be used for getting amplitude of the audio buffer for each frequency bin, or for calculating the DB value of the frequency bin.
I don't know what that graph is showing, but it looks to me like a smoothed display of the amplitudes of each of the sample bins.
Audio Units are not simple, but its worth playing with for a while until you get a grip.
Here is a skeleton of my callback function so you have more of a grasp as to what I mean:
EDIT: removed dead link, I've lost this code sorry
If your playing back media in realtime this is the correct answer, you can get the audio data being outputted through this callback.
– kezi
Jun 13 '14 at 5:14
add a comment |
Disclaimer: A lot of this has been discovered through trial and error, I may have some serious false assumptions in play here:
You would need to use the AudioUnits framework. When initialising the playback you can create an AURenderCallbackStruct. You can specify in this struct a playback callback function which provides you with a few arguments which will contain the information you need.
the callback function will have a signature like this:
static OSStatus recordingCallback (void *inRefCon,
AudioUnitRenderActionFlags *ioActionFlags,
const AudioTimeStamp *inTimeStamp,
UInt32 inBusNumber,
UInt32 inNumberFrames,
AudioBufferList *ioData)
In here there is an array of audio data which can be used for getting amplitude of the audio buffer for each frequency bin, or for calculating the DB value of the frequency bin.
I don't know what that graph is showing, but it looks to me like a smoothed display of the amplitudes of each of the sample bins.
Audio Units are not simple, but its worth playing with for a while until you get a grip.
Here is a skeleton of my callback function so you have more of a grasp as to what I mean:
EDIT: removed dead link, I've lost this code sorry
If your playing back media in realtime this is the correct answer, you can get the audio data being outputted through this callback.
– kezi
Jun 13 '14 at 5:14
add a comment |
Disclaimer: A lot of this has been discovered through trial and error, I may have some serious false assumptions in play here:
You would need to use the AudioUnits framework. When initialising the playback you can create an AURenderCallbackStruct. You can specify in this struct a playback callback function which provides you with a few arguments which will contain the information you need.
the callback function will have a signature like this:
static OSStatus recordingCallback (void *inRefCon,
AudioUnitRenderActionFlags *ioActionFlags,
const AudioTimeStamp *inTimeStamp,
UInt32 inBusNumber,
UInt32 inNumberFrames,
AudioBufferList *ioData)
In here there is an array of audio data which can be used for getting amplitude of the audio buffer for each frequency bin, or for calculating the DB value of the frequency bin.
I don't know what that graph is showing, but it looks to me like a smoothed display of the amplitudes of each of the sample bins.
Audio Units are not simple, but its worth playing with for a while until you get a grip.
Here is a skeleton of my callback function so you have more of a grasp as to what I mean:
EDIT: removed dead link, I've lost this code sorry
Disclaimer: A lot of this has been discovered through trial and error, I may have some serious false assumptions in play here:
You would need to use the AudioUnits framework. When initialising the playback you can create an AURenderCallbackStruct. You can specify in this struct a playback callback function which provides you with a few arguments which will contain the information you need.
the callback function will have a signature like this:
static OSStatus recordingCallback (void *inRefCon,
AudioUnitRenderActionFlags *ioActionFlags,
const AudioTimeStamp *inTimeStamp,
UInt32 inBusNumber,
UInt32 inNumberFrames,
AudioBufferList *ioData)
In here there is an array of audio data which can be used for getting amplitude of the audio buffer for each frequency bin, or for calculating the DB value of the frequency bin.
I don't know what that graph is showing, but it looks to me like a smoothed display of the amplitudes of each of the sample bins.
Audio Units are not simple, but its worth playing with for a while until you get a grip.
Here is a skeleton of my callback function so you have more of a grasp as to what I mean:
EDIT: removed dead link, I've lost this code sorry
edited Jun 13 '14 at 23:08
answered Nov 10 '13 at 12:40
JConwayJConway
429513
429513
If your playing back media in realtime this is the correct answer, you can get the audio data being outputted through this callback.
– kezi
Jun 13 '14 at 5:14
add a comment |
If your playing back media in realtime this is the correct answer, you can get the audio data being outputted through this callback.
– kezi
Jun 13 '14 at 5:14
If your playing back media in realtime this is the correct answer, you can get the audio data being outputted through this callback.
– kezi
Jun 13 '14 at 5:14
If your playing back media in realtime this is the correct answer, you can get the audio data being outputted through this callback.
– kezi
Jun 13 '14 at 5:14
add a comment |
I, too have been trying sincerely for the last three months but I didn't find a solution. For the time being I used static images based on the type of song (static data songs). I added the images to a UIScrollView
and changed the contentOffset
based on the current position of the audio.
add a comment |
I, too have been trying sincerely for the last three months but I didn't find a solution. For the time being I used static images based on the type of song (static data songs). I added the images to a UIScrollView
and changed the contentOffset
based on the current position of the audio.
add a comment |
I, too have been trying sincerely for the last three months but I didn't find a solution. For the time being I used static images based on the type of song (static data songs). I added the images to a UIScrollView
and changed the contentOffset
based on the current position of the audio.
I, too have been trying sincerely for the last three months but I didn't find a solution. For the time being I used static images based on the type of song (static data songs). I added the images to a UIScrollView
and changed the contentOffset
based on the current position of the audio.
edited Nov 8 '16 at 15:16
Robert
3,05932741
3,05932741
answered Oct 31 '13 at 6:51
TendulkarTendulkar
5,15112252
5,15112252
add a comment |
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%2f19699780%2fgenerating-waveform-from-any-music-file-ios%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
1
Your image doesn't appear to have any relationship to an actual waveform. Where are you seeing that?
– duskwuff
Oct 31 '13 at 6:58
i want to display wavefrom like this. Please check this image, markhadleyuk.com/wp-content/uploads/2012/01/…
– Vishal Khatri
Nov 11 '13 at 9:50
There are no resources on how to generate a waveform like the ones in your images because they are fake. An audio waveform from a song doesn't look like that. The image in your OP looks like sine waves with a window function. The link in your comment might be real audio data with a low-pass filter but if you are here asking how to do this that is way beyond you. Sorry. There is a plethora of information in the links you've posted and on the web. I don't understand what you want for an answer.
– Radiodef
Nov 12 '13 at 19:56
you can refer this stackoverflow.com/questions/5032775/… and can make changes in generating image code
– S S
Nov 13 '13 at 6:37