Old 11-13-2012, 02:16 PM   #1
Sergenious
Human being with feelings
 
Sergenious's Avatar
 
Join Date: Dec 2010
Location: Slovenia
Posts: 175
Default I made a spectral stamper JS effect for REAPER

I had some free time and I made "spectroimagestamper" JS effect for REAPER.

As a difference to many other similar tools, this one does not generate noise, but stamps the image over the actual audio spectrogram. So the spectrogram must be quite rich for the image to be visible. Inside the silent parts, it won't be visible.

https://stash.reaper.fm/v/14544/spectroimagestamper.zip



With REAPER logo on one of my (black metal) songs as a test, it looks like this:


Usage:
Copy "spectroimagestamper" from the ZIP file into "%APPDATA%\REAPER\Effects" and refresh FX Browser list.

However, because of all JS effects specifics, it's a little difficult to prepare and convert the images into proper format:

Use any image (with reasonable small size), convert it to grayscale and save it to RAW image file (without any header). Open the RAW file as 8-bit mono unsigned audio file and save it as WAVE file. Put WAVE file into "%APPDATA%\REAPER\Data\images".

Next (after reloading of the effect) you will be able to select your image, represented as WAVE file. Enter the proper image size values. You can freely change every other parameter.

You can get already prepared Reaper logo image in the attachment (width = 420, height = 226).
Attached Images
File Type: jpg spectroimagestamper_params.jpg (31.6 KB, 3323 views)
File Type: jpg spectroimagestamper_spectro.jpg (65.0 KB, 25468 views)
Attached Files
File Type: zip spectroimagestamper.zip (224.0 KB, 397 views)
__________________
This signature is intentionally left blank.

My music (metal)

Last edited by Sergenious; 11-14-2012 at 02:38 AM.
Sergenious is offline   Reply With Quote
Old 11-13-2012, 03:09 PM   #2
hopi
Human being with feelings
 
hopi's Avatar
 
Join Date: Oct 2008
Location: Right Hear
Posts: 15,618
Default

curious... so does this then alter the sound of the wav file? or do you use it for something other? like to 'watermark' a file???
__________________
...should be fixed for the next build... http://tinyurl.com/cr7o7yl
https://soundcloud.com/hopikiva
hopi is offline   Reply With Quote
Old 11-13-2012, 03:14 PM   #3
Sergenious
Human being with feelings
 
Sergenious's Avatar
 
Join Date: Dec 2010
Location: Slovenia
Posts: 175
Default

Quote:
Originally Posted by hopi View Post
curious... so does this then alter the sound of the wav file? or do you use it for something other? like to 'watermark' a file???
Yes this alters the wav file. It's meant for fun or as "Easter egg" inside the songs. I wouldn't use it for watermarking, as the effect can be heard clearly.
__________________
This signature is intentionally left blank.

My music (metal)
Sergenious is offline   Reply With Quote
Old 11-13-2012, 03:19 PM   #4
Reno.thestraws
Human being with feelings
 
Reno.thestraws's Avatar
 
Join Date: Nov 2009
Location: Belgium
Posts: 10,474
Default

I'm completly stunned by the programmation skills that you need to realize such a thing.

Can you explain a situation in which this plug will be useful?

I don't get it?

It's probably due to my ignorance
__________________
http://www.residenceemilia.com
Reno.thestraws is offline   Reply With Quote
Old 11-13-2012, 03:28 PM   #5
Sergenious
Human being with feelings
 
Sergenious's Avatar
 
Join Date: Dec 2010
Location: Slovenia
Posts: 175
Default

Quote:
Originally Posted by Reno.thestraws View Post
I'm completly stunned by the programmation skills that you need to realize such a thing.

Can you explain a situation in which this plug will be useful?

I don't get it?

It's probably due to my ignorance
As said, it's just meant for fun. Some musicians may want to add their logo into the songs, etc.
__________________
This signature is intentionally left blank.

My music (metal)
Sergenious is offline   Reply With Quote
Old 11-13-2012, 04:38 PM   #6
witti
Human being with feelings
 
witti's Avatar
 
Join Date: May 2012
Posts: 1,216
Default

Thank you!

Reminds me of the Beepmap plugin in combination with the Spectroman plugin in FL Studio, where the Beepmap generates a sound from a picture and the Spectroman displays it. I hope it will also work with the JS spectrometer. It's the only spectrometer i use.
witti is offline   Reply With Quote
Old 11-14-2012, 12:26 AM   #7
Sergenious
Human being with feelings
 
Sergenious's Avatar
 
Join Date: Dec 2010
Location: Slovenia
Posts: 175
Default

Quote:
Originally Posted by witti View Post
Thank you!

Reminds me of the Beepmap plugin in combination with the Spectroman plugin in FL Studio, where the Beepmap generates a sound from a picture and the Spectroman displays it. I hope it will also work with the JS spectrometer. It's the only spectrometer i use.
Beepmap generates sound from the image, but spectroimagestamper does not generate, but uses the image as the “equalizer“ to modify the existing sound/music. So it may sound more natural

I haven't tried it with JS spectrometer, but I think it should work.
__________________
This signature is intentionally left blank.

My music (metal)

Last edited by Sergenious; 11-14-2012 at 02:37 AM.
Sergenious is offline   Reply With Quote
Old 11-14-2012, 04:32 AM   #8
planetnine
Human being with feelings
 
planetnine's Avatar
 
Join Date: Oct 2007
Location: Lincoln, UK
Posts: 7,942
Default

That's cool. Hidden messages to send for xmas, woo...

There was a plug that Justin developed one xmas where you drew a silly line diagram and it tuned it into tones that could be seen on Spectro, but it was not EQ like you've done here.

Can you control the depth of EQ? How subtle can it be made and still be visible?

Going to have to have a play...


>
__________________
Nathan, Lincoln, UK. | Item Marker Tool. (happily retired) | Source Time Position Tool. | CD Track Marker Tool. | Timer Recording Tool. | dB marks on MCP faders FR.
planetnine is online now   Reply With Quote
Old 11-14-2012, 05:14 AM   #9
Sergenious
Human being with feelings
 
Sergenious's Avatar
 
Join Date: Dec 2010
Location: Slovenia
Posts: 175
Default

Quote:
Originally Posted by planetnine View Post
Can you control the depth of EQ? How subtle can it be made and still be visible?
Yes, from today on, there is additional parameter "Effect level". It can also be used in automation, to selectively control the affected sound part.

However, what you see is what you get. If you see it, you will hear it. So it's hard or even impossible to make it subtle. However, you can mask it with fast and dynamic music, because in most cases, this "images" are heard like flanger or phaser effects.
__________________
This signature is intentionally left blank.

My music (metal)
Sergenious is offline   Reply With Quote
Old 11-14-2012, 05:21 AM   #10
sinkmusic
Human being with feelings
 
sinkmusic's Avatar
 
Join Date: Feb 2006
Location: decepticon mothership in a hidden place inside a mountain
Posts: 3,754
Default

Oh, it's a bit like the Aphex Twin spectrogram on the "equation" track on Windowlicker ?



https://www.youtube.com/watch?v=6RxGQKcdkEw

http://www.bastwood.com/?page_id=10

Thank you for sharing !
sinkmusic is online now   Reply With Quote
Old 11-14-2012, 05:32 AM   #11
Sergenious
Human being with feelings
 
Sergenious's Avatar
 
Join Date: Dec 2010
Location: Slovenia
Posts: 175
Default

Quote:
Originally Posted by sinkmusic View Post
Oh, it's a bit like the Aphex Twin spectrogram on the "equation" track on Windowlicker ?
Yes, this is exactly what "spectroimagestamper" can do

For this, you would need to prepare some very wide image, with long "Duration".
__________________
This signature is intentionally left blank.

My music (metal)
Sergenious is offline   Reply With Quote
Old 11-15-2012, 07:41 AM   #12
Sergenious
Human being with feelings
 
Sergenious's Avatar
 
Join Date: Dec 2010
Location: Slovenia
Posts: 175
Default

Quote:
Originally Posted by witti View Post
Wow, that looks amazing. JS spectrometer can display even clearer picture than Spectro. I suppose you used some constant low-frequency sawtooth tone, which is full of harmonics?
__________________
This signature is intentionally left blank.

My music (metal)
Sergenious is offline   Reply With Quote
Old 11-15-2012, 08:19 AM   #13
Sergenious
Human being with feelings
 
Sergenious's Avatar
 
Join Date: Dec 2010
Location: Slovenia
Posts: 175
Default

Quote:
Originally Posted by witti View Post
It's only a 440Hz sine wave normalized to 0dB
But sine wave doesn't have any harmonics. So I suppose what is seen, is the dithering / denormalization / quantization noise?
Try with 30Hz sawtooth tone
__________________
This signature is intentionally left blank.

My music (metal)
Sergenious is offline   Reply With Quote
Old 11-15-2012, 08:20 AM   #14
planetnine
Human being with feelings
 
planetnine's Avatar
 
Join Date: Oct 2007
Location: Lincoln, UK
Posts: 7,942
Default

... and a few even harmonics


>
__________________
Nathan, Lincoln, UK. | Item Marker Tool. (happily retired) | Source Time Position Tool. | CD Track Marker Tool. | Timer Recording Tool. | dB marks on MCP faders FR.
planetnine is online now   Reply With Quote
Old 05-02-2013, 11:26 AM   #15
heda
Human being with feelings
 
heda's Avatar
 
Join Date: Jun 2012
Location: Spain
Posts: 7,269
Default

sounds fun Trying this but I can't get it working. I don't know how to convert the grayscale bitmap to raw.. and then to wav 8 bit...
heda is offline   Reply With Quote
Old 11-04-2014, 03:10 AM   #16
arielgusguerra
Human being with feelings
 
Join Date: Nov 2014
Posts: 2
Default I made a spectral stamper JS effect for REAPER

Hi Sergenious,

I tried to install the file but it's not recognized neither as a .dll or anything else.

I moved the "spectroimagestamper" file (that has no extension) to my effects folder and Reaper doesn't recognize it.

Am I missing something?

Thanks
arielgusguerra is offline   Reply With Quote
Old 11-04-2014, 03:27 AM   #17
hamish
Human being with feelings
 
hamish's Avatar
 
Join Date: Sep 2007
Location: The Reflection Free Zone
Posts: 3,026
Default

are you sure you have put it into REAPER/Effects and not REAPER/Plugins/FX?

the file 'spectroimagestamper' is a JS script, not a .dll.

I just checked and it's working fine in REAPER v4.61
hamish is offline   Reply With Quote
Old 11-04-2014, 08:04 AM   #18
evosilica
Human being with feelings
 
Join Date: Jan 2011
Location: Austria/Europe
Posts: 216
Default

Has anyone tested how well this method survives mp3 compression?
evosilica is offline   Reply With Quote
Old 11-04-2014, 12:48 PM   #19
hamish
Human being with feelings
 
hamish's Avatar
 
Join Date: Sep 2007
Location: The Reflection Free Zone
Posts: 3,026
Default

Short answer: yes.

Long answer: mp3 compression will be the least of your worries here unless you are fairly good with graphics file editing.

I used IrfanView (thanks witti) and managed to get a simple two word text spectropainted onto a pink noise sample.

It took me about 1 hr and 10 attempts to get settings in the JS that worked well. Tip: See the settings in witti post #12.

A simple generalisation here would be that the more clear the spectopainted image is, the less like music this will sound. Hope that helps.
hamish is offline   Reply With Quote
Old 11-11-2014, 02:22 AM   #20
evosilica
Human being with feelings
 
Join Date: Jan 2011
Location: Austria/Europe
Posts: 216
Default

Quote:
Originally Posted by hamish View Post
Short answer: yes.

Long answer: mp3 compression will be the least of your worries here unless you are fairly good with graphics file editing.
Either you didn't understand my question or I didn't understand you answer.

I was asking, if the image survives mp3 compression. Can you still see the image after it has been compressed?
As mp3 compression removes a lot of frequencies, this usually destroys (or at least heavily degrades) any kind of sprectral paint image, as it makes no sense from a psychoacoustic perspective.
Since this method "only" alters existing frequencies, I was wondering, if it probably is more resistant to lossy compression.

Will have try it out...
evosilica is offline   Reply With Quote
Old 11-11-2014, 03:53 AM   #21
hamish
Human being with feelings
 
hamish's Avatar
 
Join Date: Sep 2007
Location: The Reflection Free Zone
Posts: 3,026
Default

Quote:
Originally Posted by evosilica View Post
I was asking, if the image survives mp3 compression. Can you still see the image after it has been compressed?
The answer is 'Yes'.

Quote:
Originally Posted by evosilica View Post
Will have try it out...
When you try it out you may find it is difficult to get an image, the source audio, the image map and the plugin settings need to be chosen properly. But if you follow the steps given carefully enough you should get an image.

I haven't tried with the 0dBFS 440 Hz sine wave that witti used, the visual result is impressive, but it obviously would sound like nothing more than a 440 Hz diapason.

If you want to obtain an interesting spectrogram image and an interesting sonic, then you will need a lot of ideas and time.
hamish is offline   Reply With Quote
Old 04-11-2017, 03:18 PM   #22
inarisound
Human being with feelings
 
inarisound's Avatar
 
Join Date: Dec 2016
Location: Los Angeles
Posts: 226
Default

Sergenious, that's a great tool! dose it still work in new version of Reaper?

I've done everything as instructed still no luck.... tho I can hear the EQ of the song were I try to apply it dose change.


Is there any possibility for you to make a small tut or gif how to make it work?


sincerely yours,

inari
inarisound is offline   Reply With Quote
Old 08-08-2022, 02:37 PM   #23
eyeball226
Human being with feelings
 
Join Date: Oct 2010
Posts: 42
Default

I'm not having any luck with this either. I can't even successfully view the example "reaper.wav" in a spectrograph. It is audibly and visibly doing something to the spectrum and I can see a repeating pattern the length of the duration setting. However there is nothing legible there at all. Is it possible some change to JSFX has broken this plugin?
eyeball226 is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 03:52 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.