My 11yo son is learning the piano, and I rigged hi...
# present-company
b
My 11yo son is learning the piano, and I rigged him a midi->raspberry pi->RGB LED strip so keys he plays light up then fade (it's a 144/m strip so nearly 2 leds per key). Now i'd like him to program he visualizer himself. Tweak the colors, maybe do some analysis like recognize chords, try record/replay, maybe even ignore the music and make some game using the piano as input device? He knows Scratch/Snap!, and wants to learn python (which my current script happens to already use), but the audio/visual nature here just screams "missed FoC/live coding opportunity" šŸ˜† What would you recommend? [constraint: myself I know zero about music šŸ™‰]
ā¤ļø 4
I'm tempted to "unroll time". If he codes, he'll need access to a 2D screen anyway where he can code animations in in Snap! or whatever - and the LEDs will simply render one 1D line scanned out of the 2D image. Nice qualities: • A desired animation of LEDs over time can be statically drawn, even as a sprite. • a "lighted while pressed" visualization will by default build up a time/frequency chart of the melody. • Conversely, if he builds some kind of Synthesia "falling notes" game,, the leds will light up according to what he "should play". But I'm probably missing out on more intersting music-centric things to code. Should i use something like SonicPi? I guess I should check if that yamaha's MIDI is bi-dorectional ant can be made to play notes programmatically, not just report them...
j
SonicPi is great. Sam is a very good guy.
ā˜šŸ½ 1
ā˜ļø 1
b
And if you use [TidalCycles](https://tidalcycles.org/), its creator/maintainer is active here on this Slack.
r
This is very interesting. I am not sure of a platform or open source project that just makes it fun and easily interactive to create midi mappings + some dsp + theory. I would suggest he (you both) try to create a simple instrument - either a sampler or a synthesiser - then implement a midi mapping layer between your instrument and the midi led strips.
Perhaps you could also take an existing synth made in python and save some time there and focus on the fun of connecting it to the midi layer and getting some lights on / off
Personally, I really like using AudioKit and they have great examples in the form of a CookBook repo. It only works on apple platforms but you would be able to do most of the things you mention above.