Page 1 of 1
Use imagemagick to find recurring patterns in waveform ?
Posted: 2018-01-22T13:43:09-07:00
by Rye
So... as there are no sufficient tools at hand (that I can find at the current point in time) that allow me to
analyze music waveforms for repeating patterns:
Would it be possible to use Imagemagick to:
1.) Feed it a Picture of a waveform
2.) Get it to "mark" repeating patterns in such image ?
For example take this waveform:
Code: Select all
https://image.ibb.co/ftRkEG/2018_01_22_223715_2.jpg
Thanks in advance for any hints.
- Rye
Re: Use imagemagick to find recurring patterns in waveform ?
Posted: 2018-01-22T13:44:14-07:00
by fmw42
I do not know how Imagemagick would help. It is an image processor, not a wave analysis tool.
Re: Use imagemagick to find recurring patterns in waveform ?
Posted: 2018-01-22T13:47:46-07:00
by Bonzo
I would guess you could do a sub image? search but how do you decide what to search for?
Re: Use imagemagick to find recurring patterns in waveform ?
Posted: 2018-01-22T13:52:48-07:00
by Rye
fmw42 wrote: ↑2018-01-22T13:44:14-07:00
I do not know how Imagemagick would help. It is an image processor, not a wave analysis tool.
Indeed, but you can see, I'm talking about analysing "
a picture of the waveform" to find
rough pattern similarities
-
not the music file itself.
While I know this is probably not the best take on this thematic, I figured that imagemagick might be able to recognize patterns in images in such manner.
What to search for ?
Exactly. That is the problem.
The only thing that is clear (from the picture I provided for example) is:
The only eligible pixels for this search are to be "
blue"
Aside from this, maybe it is possible to define a range ?
For example "look for
pattern within a 40x191 to 600x191"
range or something that
match up exactly ?
While I have a rough idea what should be achieved here, I don't know the exact way of handling is.
If the problem is unclear, I can provide a "mock up" of sorts to clear up what result would fit in range.
EDIT:
I added a waveform sample image atop that has the ususal program shenanigans removed, leaving only the wave form, maybe it's simpler that way ?
Re: Use imagemagick to find recurring patterns in waveform ?
Posted: 2018-01-22T14:39:37-07:00
by snibgo
Rye wrote:1.) Feed it a Picture of a waveform
I wouldn't start from there. Start from the waveform itself, not a graph of the waveform. So the image is Nx1 pixels, not NxM. The problem is then much smaller.
Then you can crop out whatever small section you want, and search for that in the rest of the image.
Re: Use imagemagick to find recurring patterns in waveform ?
Posted: 2018-01-24T13:48:05-07:00
by Rye
That sounds like a reasonable suggestion.