Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==PREPROCESSOR==
- // @import "%fb2k_profile_path%marc2003\common8.js"
- // @name "Spectrogram Seekbar"
- // @author "marc2003"
- // ==/PREPROCESSOR==
- /*
- This script requires SoX and ffmpeg to analyse your files. A full guide including
- download links can be found on this page:
- http://marc2003.x10host.com/spectrogram-seekbar
- */
- var sox_exe = fb.ProfilePath + "sox\\sox.exe";
- var ffmpeg_exe = fb.ProfilePath + "sox\\ffmpeg.exe";
- /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
- var p = new panel("Spectrogram Seekbar", ["custom_background"]);
- var s = new seekbar("spectrogram", 0, 0, 0, 0);
- function on_size() {
- p.size();
- s.w = p.w;
- s.h = p.h;
- }
- function on_paint(gr) {
- p.draw_background(gr);
- s.draw(gr);
- }
- function on_playback_new_track() {
- s.playback_new_track();
- }
- function on_playback_seek() {
- s.playback_seek();
- }
- function on_playback_stop() {
- s.playback_stop();
- }
- function on_mouse_wheel(step) {
- s.wheel(step);
- }
- function on_mouse_move(x, y) {
- p.move(x, y);
- s.move(x, y);
- }
- function on_mouse_lbtn_down(x, y) {
- s.lbtn_down(x, y);
- }
- function on_mouse_lbtn_up(x, y) {
- s.lbtn_up(x, y);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement