MATRIXSYNTH: Bubbles on Monome 100h with SkyMonome API and accelerometer


Sunday, April 25, 2010

Bubbles on Monome 100h with SkyMonome API and accelerometer


YouTube via pjskyman — April 25, 2010 — "Another demo of the SkyMonome API I developped especially for my needs (http://skymonome.org ). An ADXL203 accelerometer permits the "fall" of the bubbles. This Monome 100h is in construction. It will be a quad 40h in a plexiglas package.
Music : an unpublished track of PJ Skyman ( http://www.pjskyman.fr )
Code used to do this :
Monome monome=new Monome("Monome",MonomeSize.MONOME_256,"localhost","/40h",8000,8080);
/*the following variable is declared as a class member in order to be accessed by the two next listeners*/
inertiaMirroredFrameWindow=new InertiaMirroredFrameWindow(new PictureFrame(ImageIO.read(new File("C:\\...bmp")),false));
monome.addComponent(new FrameGroup("Bubbles",0,0,16,16,inertiaMirroredFrameWindow));
Analog analogX=new Analog("X-axis",0);
analogX.addAnalogListener(new AnalogListener()
{
public void analogMoved(AnalogEvent analogEvent)
{
inertiaMirroredFrameWindow.setXIncrement((analogEvent.getValue()-.5f)*25f);
}
});
monome.addComponent(analogX);
Analog analogY=new Analog("Y-axis",1);
analogY.addAnalogListener(new AnalogListener()
{
public void analogMoved(AnalogEvent analogEvent)
{
inertiaMirroredFrameWindow.setYIncrement((-analogEvent.getValue()+.5f)*25f);
}
});
monome.addComponent(analogY);
monome.refresh();"

No comments:

Post a Comment

Note: comments that insult people will be removed. Critique on gear is allowed. Do not ask if listings are still available. Click through auction links to check yourself. Posts and pics remain for historical purposes. To reduce spam, comments for posts older than one week are not displayed until approved (usually same day).

PREVIOUS PAGE NEXT PAGE HOME



Switched On Make Synthesizer Evolution Vintage Synthesizers Creating Sound Fundlementals of Synthesizer Programming Kraftwerk

© Matrixsynth - All posts are presented here for informative, historical and educative purposes as applicable within fair use.
MATRIXSYNTH is supported by affiliate links that use cookies to track clickthroughs and sales. See the privacy policy for details.
MATRIXSYNTH - EVERYTHING SYNTH