Grasshopper

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.

Views: 576

Comment

You need to be a member of Grasshopper to add comments!

Comment by djordje on March 18, 2013 at 10:32am

Me gusta !!!

Comment by Vicente Soler on March 17, 2013 at 2:28pm

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.

piano_midi_02.gh

 

Mateusz, can you guess this one?

Comment by Vicente Soler on March 14, 2013 at 5:49pm

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

 

Comment by Patrick Bedarf on March 14, 2013 at 4:34pm

super sweet. can you tell a bit more in detail?

Comment by Vicente Soler on March 12, 2013 at 5:04pm

Yes.... it's my gf's fault...

 

 

Actually it's more like http://youtu.be/s1ERVXHNSJQ but without the crazy piano skills.

Comment by Mateusz Zwierzycki on March 12, 2013 at 4:31pm

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service