algorithmic modeling for Rhino
Direct MIDI device to GH. Real time capture of the viewport.
This is a reply to the following thread:
http://www.grasshopper3d.com/group/ghowl/forum/topics/physical-sliders?page=4
See the end of the thread for the definition and more info.
Tags:
Comment
Me gusta !!!
I made a few changes to the component since the output didn't really match how a piano behaves.
The pedal should work properly now (except for sympathetic resonance). If a key is released and the pedal is on it behaves as if the key is still pressed.
When a key is pressed the intensity quickly falls over time. After a few milliseconds (depending on the initial value) it stays fixed at a fraction of the initial intensity.
Mateusz, can you guess this one?
Sure, I explained a bit in the thread linked in the description. I just realized it belongs to the gHowl group so maybe it some can't view it.
I'll copy here the relevant text:
I just bought a midi to usb cable and was able to connect Grasshopper with my digital piano realtime through a simple VB.NET component, no need for any other intermediate software. I used this library http://midiservices.codeplex.com/ (but there are several others).
The VB component outputs a list of 88 values that correspond to the intensity of each piano key at the current time (if the pedal is on and a key is depressed the value is halved, if the pedal is off the value is 0).
The rest of the definition is just to do something with this data. It uses these values to display each note as different floating colors that move with the wind (using Kangaroo). The strength of the wind changes as the music dynamics change.
If there are several devices connected you might have to change the line device.Open(0) to another number.
Definition: piano_midi.gh
super sweet. can you tell a bit more in detail?
Yes.... it's my gf's fault...
Actually it's more like http://youtu.be/s1ERVXHNSJQ but without the crazy piano skills.
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by
You need to be a member of Grasshopper to add comments!