cnlohr / colorchord

Chromatic Sound to Light Conversion System
Other
673 stars 116 forks source link

ColorChordTimePloting #50

Open pjmole opened 7 years ago

pjmole commented 7 years ago

Charles! I have been playing with colorchord javascript and visualizations. A couple days a go I realized that there was no spectral time plot? screenshot at 2017-07-24 15 17 59

so here are the first few strums of "Dueling Banjo's". you see sound coming from bottom of screen like standard DFT, but Alpha is used to modulate the brightness of display on only bottom of display Colorchord octave coloring really enhances this type of display !!

First I add a line to index.html

<CANVAS style="background-image: url('http://localhost:8080/video');" id=DFTCanvas width="640" height="480" opacity="0.5" position="absolute" top="1px" left="1px" z-index="-1" > </CANVAS>

before the select WhichCanvas ( I like to have video background, if you run IP-Webcam on android it will pick it up, otherwise white background) then changes to GotDFT

first version dissapointed me now using colorchord_pjm_2017-07-26_13-41-10

Well I was upset that I did not have old dft so here are the embedded8266/web/page files I am now using with the most recent colorchord git ColorChordTimeLapse.zip

Above shows timelaspe data going up from middle of display but regular realtime DFT appears downwards though. Notice still gets 20Hz frame rate !!

A video of Scales Practice scalespractice

Scales.zip

and zip of my latest web/page files ColorScales.zip

This exercise has opened some bigger dreams in my head, say echo sounding, Charles have you considered to moving to the ESP32 and 16bit ADCs ?
cnlohr commented 7 years ago

OH MY GOSH MAKE PULL REQUESTS THIS STUFF IS TOO COOL.

cnlohr commented 7 years ago

GADSFASDAFGASF I AM KICKING MYSELF FOR DISAPPEARING FROM GITHUB FOR SO LONG

pjmole commented 7 years ago

"GADSFASDAFGASF" I have finally devised a dead simple "inifinity mirror" display for my projects!

Whooo.zip

These are my first pair, the one in front is a bit noisy. I have been trying to make a dead simple "infinity mirror" with those circular led modules but needed a good spacing hack. Using two old clear CD/DVD boxes, separate the halves, cover the flat sides of the wider parts with semi mirror tape. You can then sandwich reflecting mirror ... led module .... clear part of CD/DVD box .... reflecting mirror !!

Lay them flat under candy bowls, I am thinking of a beer cooler using submersible meter led string. "GADSFASDAFGASF"

pjmole commented 7 years ago

I have had an awakening experience, after years of avoiding apple products. I broke down and bought a B-grade I-Mac. Then I gave it the insult of installing google chrome .

When I started up chrome, it moaned about not supporting IOS 10. but I pressed on and opened colorchord with this TimePloting adaption, and WOW!!! I am getting 130-140Hz refresh rate with both oscilloscope and DFT displaying.

cnlohr commented 7 years ago

Start posting some of this to youtube!!! Otherwise it's difficult for people to find :-p

Fireflaker commented 6 years ago

Found it :) Planning to drive 300 ws2812 LEDs as an upgrade. Is the ram going to be enough? Plus, is it possible to build a version for ESP32?

cnlohr commented 6 years ago

It's more just a matter that the thing was never coded with more than 255 in mind? So there's some data types taht would need to change.

pjmole commented 6 years ago

Fireflaker I believe the code only has a maximum of 120 leds, five octaves of 24. To use more leds you could play with the FFT settings. I would like to see 3 leds per note. but that would only be 180 leds.

simple option is to light 2 leds for every iteration for a total of 240 blinkin' LEDS.

cnlohr commented 6 years ago

@Fireflaker Ah! You're referring to when using @pjmole 's mode? Or the regular mode?