Converting frequencies to semitones/pitches on image files created by spectrograms
-
- KVRian
- Topic Starter
- 847 posts since 20 May, 2010
For this thread i take the spectrogram image that harmor creates out of this sound:
Here is the preset:
http://s000.tinyupload.com/?file_id=896 ... 1240543881
Photoshop is unable to do these back and forth:
1. F -.log.- P.
2. P -.exp.- F.
Logarithms and Exponentiators.
Since i don't have the image pixel height convertor.
It turned out like this:
I expected to hear 3 note chords.
Here is the preset:
http://s000.tinyupload.com/?file_id=896 ... 1240543881
Photoshop is unable to do these back and forth:
1. F -.log.- P.
2. P -.exp.- F.
Logarithms and Exponentiators.
Since i don't have the image pixel height convertor.
It turned out like this:
I expected to hear 3 note chords.
You do not have the required permissions to view the files attached to this post.
Last edited by Jedinhopy on Wed May 06, 2015 4:55 pm, edited 1 time in total.
-
- Banned
- 12368 posts since 30 Apr, 2002 from i might peeramid
i need to code one of these.
because the y axis in the image in every spectral analyser i have is totally whack. all of the "musical information" (within the range of human voice pitching) is crammed down in the bottom four pixels. imo that "linear to logarithmic" conversion should have been considered when creating the bmp, not when analysing it.
i'd just get angry and threaten to punch the developer when you go to their town so they know they can't be a punk
"thanks for that free, totally useless spectral analysis"!
because the y axis in the image in every spectral analyser i have is totally whack. all of the "musical information" (within the range of human voice pitching) is crammed down in the bottom four pixels. imo that "linear to logarithmic" conversion should have been considered when creating the bmp, not when analysing it.
i'd just get angry and threaten to punch the developer when you go to their town so they know they can't be a punk
"thanks for that free, totally useless spectral analysis"!
you come and go, you come and go. amitabha neither a follower nor a leader be tagore "where roads are made i lose my way" where there is certainty, consideration is absent.
-
- Banned
- 12368 posts since 30 Apr, 2002 from i might peeramid
it's a bad strategy, really... i complain, hoping that a developer who already has done this will notice and go "oh, i can help.."
but other developers stopped paying attention to my manipulations some time ago i can't even get mystran to say anything nice any more. maybe the secret masonic police have moved in on both sides of him as well with their horrible brain projectors.
but it really is a sad thing... people say, "spectral analysis, we can do!""
but you turn the x axis on it's side, and they are all like "oh f**k off this has to be pixel by pixel..." like the god of dsp accuracy will smite them.
maybe the whole concept of image processing is too mysterious for audio dsp coders.
you come and go, you come and go. amitabha neither a follower nor a leader be tagore "where roads are made i lose my way" where there is certainty, consideration is absent.
-
- Banned
- 12368 posts since 30 Apr, 2002 from i might peeramid
basically, i want someone to use his brains and not put on an uptempo record every time i have to do a death dedication about a goddamn dog.
because otherwise, it gets ugly. "maybe i shove your musical information in four pixels, and see if you can retrieve it."
because otherwise, it gets ugly. "maybe i shove your musical information in four pixels, and see if you can retrieve it."
you come and go, you come and go. amitabha neither a follower nor a leader be tagore "where roads are made i lose my way" where there is certainty, consideration is absent.
-
- KVRian
- Topic Starter
- 847 posts since 20 May, 2010
For example try to fit a 10 minutes song with 10 octaves into a spectrogram that creates a BMP file with this fixed resolution:xoxos wrote:basically, i want someone to use his brains and not put on an uptempo record every time i have to do a death dedication about a goddamn dog.
because otherwise, it gets ugly. "maybe i shove your musical information in four pixels, and see if you can retrieve it."
128x48.
The width is 128 pixels and the height is 48 pixels.
10 minutes fits into 128 pixels on the width and 10 octaves fits into 48 rows on the height.
-
- KVRAF
- 7540 posts since 7 Aug, 2003 from San Francisco Bay Area
xoxos wrote:basically, i want someone to use his brains and not put on an uptempo record every time i have to do a death dedication about a goddamn dog.
because otherwise, it gets ugly. "maybe i shove your musical information in four pixels, and see if you can retrieve it."
The letter U and the numeral two.
Could someone just hurry up already and port Matlab to VST?
Incomplete list of my gear: 1/8" audio input jack.
-
- KVRian
- 1461 posts since 26 Jun, 2002 from London, UK
In Wolfram Mathematica 10 (available for free and usable for this sort of stuff on a Raspberry Pi2 running the Noobs distro):
wav = Import[
"C:\\Users\\Mark\\Downloads\\The original sound 100bpm\\The \
original sound 100bpm.wav"][[1, 1, 1]];
Colorize@ImageAdjust@
ImageTransformation[
Image[Reverse@
Transpose[
Abs[Fourier[#][[1 ;; 512]]] & /@
Partition[wav, 1024, 256]]], {#[[1]], #[[2]]^2} &]
This part: {#[[1]], #[[2]]^2} is an argument to the ImageTransformation function. Here, for illustrative purposes, I've kept the x-coordinates as they are and squared the y-coordinates to stretch it out.
It looks like this:
Edit: Sorry, I've probably missed it, but the idea is to import the wave in to Harmor and then do the analysis, right?
I'll do that now
wav = Import[
"C:\\Users\\Mark\\Downloads\\The original sound 100bpm\\The \
original sound 100bpm.wav"][[1, 1, 1]];
Colorize@ImageAdjust@
ImageTransformation[
Image[Reverse@
Transpose[
Abs[Fourier[#][[1 ;; 512]]] & /@
Partition[wav, 1024, 256]]], {#[[1]], #[[2]]^2} &]
This part: {#[[1]], #[[2]]^2} is an argument to the ImageTransformation function. Here, for illustrative purposes, I've kept the x-coordinates as they are and squared the y-coordinates to stretch it out.
It looks like this:
Edit: Sorry, I've probably missed it, but the idea is to import the wave in to Harmor and then do the analysis, right?
I'll do that now
You do not have the required permissions to view the files attached to this post.
Wavetables for DUNE2/3, Blofeld, IL Harmor, Hive and Serum etc: http://charlesdickens.neocities.org/
£10 for lifetime updates including wavetable editor for Windows.
Music: https://soundcloud.com/markholt
£10 for lifetime updates including wavetable editor for Windows.
Music: https://soundcloud.com/markholt
-
- KVRian
- 1461 posts since 26 Jun, 2002 from London, UK
After going through Harmor (same transformation as above):
You do not have the required permissions to view the files attached to this post.
Wavetables for DUNE2/3, Blofeld, IL Harmor, Hive and Serum etc: http://charlesdickens.neocities.org/
£10 for lifetime updates including wavetable editor for Windows.
Music: https://soundcloud.com/markholt
£10 for lifetime updates including wavetable editor for Windows.
Music: https://soundcloud.com/markholt
-
- KVRAF
- 7540 posts since 7 Aug, 2003 from San Francisco Bay Area
Okay, just so I'm actually clear on what the the issue here is, you want to take the logarithmic spectrogram out of Harmor, convert it to linear, mess with it in Photoshop, convert it to logarithmic, and bring it back into Harmor?
Incomplete list of my gear: 1/8" audio input jack.
-
- KVRian
- Topic Starter
- 847 posts since 20 May, 2010
Yes.deastman wrote:Okay, just so I'm actually clear on what the the issue here is, you want to take the logarithmic spectrogram out of Harmor, convert it to linear, mess with it in Photoshop, convert it to logarithmic, and bring it back into Harmor?
-
- KVRian
- 1461 posts since 26 Jun, 2002 from London, UK
I get that, just wanted to show that the information for transformation is there. I don't have time to do this properly atm. I have a presentation to prepare for at work today, which incidentally is on image processing!deastman wrote:Okay, just so I'm actually clear on what the the issue here is, you want to take the logarithmic spectrogram out of Harmor, convert it to linear, mess with it in Photoshop, convert it to logarithmic, and bring it back into Harmor?
Wavetables for DUNE2/3, Blofeld, IL Harmor, Hive and Serum etc: http://charlesdickens.neocities.org/
£10 for lifetime updates including wavetable editor for Windows.
Music: https://soundcloud.com/markholt
£10 for lifetime updates including wavetable editor for Windows.
Music: https://soundcloud.com/markholt
-
- KVRAF
- 11052 posts since 19 Jun, 2008 from Seattle
I too, would put you at the top of my Christmas mailing list {if I had one} for coming up with something ('Windows friendly'), that accomplished this.cytospur wrote:I get that, just wanted to show that the information for transformation is there. I don't have time to do this properly atm. I have a presentation to prepare for at work today, which incidentally is on image processing!deastman wrote:Okay, just so I'm actually clear on what the the issue here is, you want to take the logarithmic spectrogram out of Harmor, convert it to linear, mess with it in Photoshop, convert it to logarithmic, and bring it back into Harmor?
I'm not a musician, but I've designed sounds that others use to make music. http://soundcloud.com/obsidiananvil