ScratchData LogoScratchData
Back to colorgram's profile

Music Visualizer X

COcolorgram•Created August 14, 2016
Music Visualizer X
318
242
5081 views
View on Scratch

Instructions

NEW (July 2020) Music Visualizer Z https://scratch.mit.edu/projects/409012136/

Description

An experimental music visualizer that works surprisingly well. Now with bass boo0o0st The X stands for extreme :D Inside is a preprogrammed 8-band real-time frequency visualizer plus other effects. No mic required for this project. Click like and leave a comment below. You can swap the song and rebuild the visualizer data manually, instructions are below. Music Visualizer Y (Can change the music much more easily) https://scratch.mit.edu/projects/124816242/ Music Visualizer Z (Easiest way to change music, 99% automated) https://scratch.mit.edu/projects/409012136/ Version log ---------- 2016y-09m-05d: v1.5: fix performance 2016y-08m-31d: v1.4: fix vignette 2016y-08m-14d: v1.1-1.3: flattened bars, new font, added red shift, added fog effect, added experimental bass boost toggle (LOL!) 2016y-08m-14d: v1.0: initial version How it works ---------- (Updated June 2020) Quite a few people asked how this works so hopefully this will help you understand: All sound is just a collection of vibrations with different amplitudes at different frequencies (Hz). For this project, I split a song into 8 'frequency bands' (sort of like colors of a rainbow) using the low/high pass filters in Audacity (open source software). How you decide where the cutoffs are is up to you, but your lower and upper bounds should be around 30Hz and 12KHz. (For this project, I used: 0-50Hz (band 1), 51-99Hz (band 2), 100-200, 201-500, 501-1000, 1001-4000, 4001-10k, 10k-16k (band 8)) Now, each of the 8 frequency bands represents a slice of the full song - with lower bands containing the low frequency data (bass), and the highest bands containing the high frequency data (treble). Then, you just need to record your computer playing each of those frequency bands while scratch records the 'loudness' values into a list using a microphone. You will need to do this 8 times for all 8 bands, with accurate timing (now you see how tedious this is) This project then just takes those lists and draws bars for each of them. Very straightforward, though of course you will need to be familiar with audacity, storing data to and reading from a list in scratch, and be comfortable using the 'timer' in scratch. If you decide to do this you will probably have to process the tracks in audacity before playback since you want scratch to record a good range of loudness values (eg not always 0, but not always 100). Unfortunately, you can't automate this process. (scratchtools comes close and is what I use in Music Visualizer Y, linked above) For the bass boost - it's just a separate bass only track that plays at the same time and its volume gets switched on/off.

Project Details

Project ID118308346
CreatedAugust 14, 2016
Last ModifiedJuly 30, 2020
SharedAugust 14, 2016
Visibilityvisible
CommentsAllowed