> Le 20 nov. 2018 à 15:26, Virginie YK <virginie...@gmail.com> a écrit :
> 
> Hello, 
> 
> I'd like to create programs using accelerometer on many platforms, and there 
> are many things that I do not understand. 
> 
> 1) why (test on a  Android smartphone) does in this exemple, only 2 out of 3 
> parameters are moving with my movement, although 3 are configured in the code 
> ?
> (it"s one of the examples you give, but I can't find it anymore in the new 
> documentation. It was in the "using built-in sensors" section). 
> 
> import("stdfaust.lib");
> 
> // parameters
> x0 = hslider("x0",0.5,0,1,0.01) : si.smoo;
> y0 = hslider("y0",0.5,0,1,0.01) : si.smoo;
> y1 = hslider("y1",0,0,1,0.01) : si.smoo;
> q = hslider("q[acc: 0 0 -10 0 10]",30,10,50,0.01) : si.smoo;
> del = hslider("del[acc: 0 0 -10 0 10]",0.5,0.01,1,0.01) : si.smoo;
> fb = hslider("fb[acc: 1 0 -10 0 10]",0.5,0,1,0.01) : si.smoo;
> 
> // mapping
> impFreq = 2 + x0*20;
> resFreq = y0*3000+300;
> 
> // simple echo effect
> echo = +~(de.delay(65536,del*ma.SR)*fb);
> 
> // putting it together
> process = os.lf_imptrain(impFreq) : fi.resonlp(resFreq,q,1) : echo : 
> ef.cubicnl(y1,0)*0.95 <: _,_;
> 
> 
> 
 it works here on an Motorola smartphone we have : the 3 sliders are moving.

> 
> 
> 2) (test on a  Android smartphone)  if I change acc with gyr and choose good 
> parameters, nothing happens and the sensors do not work at all. 
> 
> 3) How do you link the easy [acc: a b c d e] with the fact that you want to 
> use the X, Y or Z axis ?

The ‘a’ parameter  [between 0 and 2] describes the  X, Y or Z axis.

> 
> 4) in Faust Playground (whichi is html based) on my Laptop, you provided the 
> possibility to EDIT the "blocks" (instruments or effects) and choose if I 
> want or not use the accelerometer... But, whatever I choose, it doesn't 
> change anything in the code. (and I did'nt find any parameters that could be 
> impacter by this). 

Do you mean the code you can edit in Faust Playground?  (I can see the change 
here that I’ve done in the accelerometer editor)

> Anyway, whether I choose accelerometer or not, it doesn't work on a 
> laptop.So, what is the use of it, and how does it work ? 
> 
> Finally,  am trying to understand how does the accelerometer parameters work. 
> Am I correct, if I say these statements :
> 
> - the accelerometer does not work on Html,

You are supposed to edit the accelerometer in the HTML code, the possible 
export the DSP on Android with the « Export » button


> so not on my laptop, although you created an interface especially for that
>  
> - the accelerometer could work on iOS if I were an Apple Developper... so, 
> for me, it's impossible to test it.

Tis is not strictly related to accelerometer: you have to open an developer 
account on Apple to become an iOS developer, then you can possibly export (from 
Faust Playground) and compile an iOSX project

> 
> - the accelerometer works on Android ... but "sometimes" it doesn't work ??? 

It way be related to your smartphone model ?
> 
> I'm sure I missed something.... could you help me ? 
> Thanks a lot. 
> Virginie K
> 
> PS : I must thank Julius for his last answer. Sorry for not having doing so 
> before ... 
> _______________________________________________

Stéphane 

_______________________________________________
Faudiostream-users mailing list
Faudiostream-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/faudiostream-users

Reply via email to