Is there any accelerometer object ?

Discuss Lemur and share techniques.
Post Reply
ease
Newbie
Posts:4
Joined:13 Nov 2011 15:06
Is there any accelerometer object ?

Post by ease » 07 Dec 2011 17:33

i own a lemur and an iphone.
First of all thanks a lot LIINE for this release it s amazing....
Like the title say: Is there any object that could take advantage of this iphone/ipad accelerometer and other object that lemur don't have....
Thx a lot....

nick_liine
Liine Staff
Posts:340
Joined:01 Oct 2010 11:06

Re: Is there any accelerometer object ?

Post by nick_liine » 07 Dec 2011 18:03

Hi ease,

Yes indeed there is an accelerometer function. I've attached a simple template at iPhone resolution. Check out the action() scripts in MultiBall and RingArea.

Cheers,
Nick
Attachments
AccelerometerTest.jzml.zip
(950Bytes)Downloaded 420 times

Macciza
Regular
Posts:1325
Joined:07 Dec 2011 04:57
Location:Sydney, Australia.

Re: Is there any accelerometer object ?

Post by Macciza » 08 Dec 2011 02:08

High
This is really cool - is the 'z' axis accelorometer[2]? I'll have to check . . . .
Is the gyro accessable? Or the Sudden Motion Sensor?
Oh and the Ambient Light detector?

So much to investigate . . .
Cheers
MM

Edit- oops was looking at Jazz Editor not Lemur Editor - I see now that the accelromoter and battery are available but not the others, sorry . . .
iMac 2.8G i7 12G 10.6.8/10.7.2, Legacy Dexter/Lemur, Liine Lemur/iPad2, KMI SoftStep, 12Step & QuNeo , B-Controls, Mackie C4 etc
MaxMSP, Live Suite, Native Instrument stuff, etc Modified Virtual Guitar System etc All Projects/Modules © CC-BY-NC-SA[*][/b]

armatronix
Newbie
Posts:18
Joined:08 Dec 2011 02:00

Re: Is there any accelerometer object ?

Post by armatronix » 08 Dec 2011 02:41

Very cool.

It looks like the z-axis is available with accelerometer[2]. Is it a -2..2 range on the z axis?

I also found that placing (accelerometer[1]+1)/2 into the Ring Area's attractor_y behavior and (accelerometer[0]*-1+1)/2 into the attractor_x behavior smooths out the output pretty well. Please see the attached.

Nick, is there a way I can make it so that the RingArea ball doesn't respond to a touch input now that I've done this?

Also, Is there a way to lock the screen rotation from within the project?

Thanks and sorry for the noob questions, lots more to come.

-Hans
AccelTestArmatronix.zip
Note: I'm getting an error, "The extension jzml is not allowed" if I try to upload the file without zipping it first, I'm not sure if that's desired behavior or not.
(1.04KiB)Downloaded 264 times

ease
Newbie
Posts:4
Joined:13 Nov 2011 15:06

Re: Is there any accelerometer object ?

Post by ease » 08 Dec 2011 05:42

Merci beaucoup Nick c'est débile !!!!

nick_liine
Liine Staff
Posts:340
Joined:01 Oct 2010 11:06

Re: Is there any accelerometer object ?

Post by nick_liine » 08 Dec 2011 14:49

armatronix wrote: Nick, is there a way I can make it so that the RingArea ball doesn't respond to a touch input now that I've done this?
No, generally speaking objects always respond to touch.
armatronix wrote: Also, Is there a way to lock the screen rotation from within the project?
No, you need to use the physical switch on the iPad.

muld
Newbie
Posts:2
Joined:31 Dec 2011 08:29

Re: Is there any accelerometer object ?

Post by muld » 25 Feb 2013 19:47

Ben justement je cherchais aussi comment faire pour avoir l'accelerometre de l'iPhone merci pour le Jzml !
(Salut Ease !!! haha comme on se retrouve !)

fabricedegraef
Newbie
Posts:3
Joined:27 Jan 2011 00:01

Re: Is there any accelerometer object ?

Post by fabricedegraef » 30 Dec 2015 14:12

hi!! thanks for this HUGE potential template. ...sorry for this stupid question but once you have the template on the iPhone how to you make it send datas to the ad-hoc network? i have midi monitor blind to any message...

Post Reply