Your Universal Remote Control Center
RemoteCentral.com
Philips Pronto Professional Forum - View Post
Previous section Next section Up level
Up level
The following page was printed from RemoteCentral.com:

Login:
Pass:
 
 

Topic:
Rotary sound control
This thread has 9 replies. Displaying all posts.
Post 1 made on Monday March 29, 2021 at 16:17
Fischi
Long Time Member
Joined:
Posts:
January 2011
99
Hi,
is it possible to control the rotary wheel click sound (deactivate/activate sound,
reducing the clicks,...,...

Regards,
Fischi
Post 2 made on Monday March 29, 2021 at 16:55
Lyndel McGee
RC Moderator
Joined:
Posts:
August 2001
12,764
You can turn it on/off. You cannot change the sound it makes without hacking the firmware or replacing the file jog.wav (Assuming you know how to putty into the Pronto).

Dev Guide.

A.1.1.8. activity.rotarySound
(available since application version 7.2.4)
Purpose
Controls the rotary click sound.
Read/Write : RW
Value : Boolean
When set to true (the default), turning the rotary wheel on the control panel will cause click
sounds to be played, if the rotary is enabled (Because of an action list assigned to the rotary in the
configuration file, or when an onRotary callback is set for the activity). When set to false, no
sound will be played.

CF.activity().rotarySound=(boolean);
Lyndel McGee
Philips Pronto Addict/Beta Tester
OP | Post 3 made on Tuesday March 30, 2021 at 15:51
Fischi
Long Time Member
Joined:
Posts:
January 2011
99
On March 29, 2021 at 16:55, Lyndel McGee said...
You can turn it on/off. You cannot change the sound it makes without hacking the firmware or replacing the file jog.wav (Assuming you know how to putty into the Pronto).

Dev Guide.

A.1.1.8. activity.rotarySound
(available since application version 7.2.4)
Purpose
Controls the rotary click sound.
Read/Write : RW
Value : Boolean
When set to true (the default), turning the rotary wheel on the control panel will cause click
sounds to be played, if the rotary is enabled (Because of an action list assigned to the rotary in the
configuration file, or when an onRotary callback is set for the activity). When set to false, no
sound will be played.

CF.activity().rotarySound=(boolean);

Lyndel,
where do I have to put this "CF.activity().rotarySound=(false);

?

Here is my activity script (found here in the forum) :

var clickCount = 0;

onRotary = function(clicks)
{
var accClicks;
var absClicks = Math.abs(clicks);
if (absClicks > 2)
{
var temp = absClicks-1;
accClicks = parseInt( (Math.exp(temp))/temp);
if (clicks < 0)
{
accClicks = -accClicks;
}
}
else
{
if (clicks > 0)
{
accClicks = 1;
}
else if (clicks < 0 )
{
accClicks = -1;
}
else
{
n=0;
}
}
/*use the accelerated clicks (accClicks) */
if(accClicks)
{
var speed = 3;// Change the value here to change the scroll speed
clickCount += accClicks;

if(clickCount > speed)// Clockwise
{
clickCount = 0;
CF.widget("Right +","WidgetPage").executeActions();// Executes the actions of this

button when the rotary wheel is moved clockwise
}
else if(clickCount < -(speed))// Counter-clockwise
{
clickCount = 0;
CF.widget("Left -","WidgetPage").executeActions();// Executes the actions of this button

when the rotary wheel is moved counter-clockwise
}
}
};


Fischi
Post 4 made on Tuesday March 30, 2021 at 16:31
Lyndel McGee
RC Moderator
Joined:
Posts:
August 2001
12,764
Please note that it requires the later firmware as documented above.... The 9800 should have this firmware version by default I think.

Note that the latest PEP allows you to assign actions to the Rotary Wheel Left/Right without having to use script.


Here's the change. Note that you should use the 'this' keyword to be explicit whenever in an activity, page, or button script. If you want to know the meaning of 'this', I think I have a thread that was posted describing the object that that keyword refers to depending on where the script is located/running.


var clickCount = 0;

this.rotarySound=false;

this.
onRotary = function() {

...

}

Here's a link to a thread discussing 'this'.

[Link: remotecentral.com]

Last edited by Lyndel McGee on March 31, 2021 12:18.
Lyndel McGee
Philips Pronto Addict/Beta Tester
OP | Post 5 made on Wednesday March 31, 2021 at 12:42
Fischi
Long Time Member
Joined:
Posts:
January 2011
99
Lyndel,
I've putted it into the activity script but the click sound doesn't go away.

On March 30, 2021 at 16:31, Lyndel McGee said...
Please note that it requires the later firmware as documented above.... The 9800 should have this firmware version by default I think.

Note that the latest PEP allows you to assign actions to the Rotary Wheel Left/Right without having to use script.

Here's the change. Note that you should use the 'this' keyword to be explicit whenever in an activity, page, or button script. If you want to know the meaning of 'this', I think I have a thread that was posted describing the object that that keyword refers to depending on where the script is located/running.

var clickCount = 0;

this.rotarySound=false;

this.
onRotary = function() {

...

}

Here's a link to a thread discussing 'this'.

[Link: remotecentral.com]
Post 6 made on Wednesday March 31, 2021 at 13:27
Lyndel McGee
RC Moderator
Joined:
Posts:
August 2001
12,764
What is the Application Version from the Info screen of your 9800?

If you have latest firmware, maybe it's an assignment ordering issue.

Change to this.


var clickCount = 0;


this.onRotary = function() {

...

}

this.rotarySound=false;
Lyndel McGee
Philips Pronto Addict/Beta Tester
OP | Post 7 made on Wednesday March 31, 2021 at 14:05
Fischi
Long Time Member
Joined:
Posts:
January 2011
99
Thanks again, Lyndel

it's running OK now.

Best regards,
Fischi

BTW: Aw-Software : 7.4.22
Post 8 made on Wednesday March 31, 2021 at 16:03
Lyndel McGee
RC Moderator
Joined:
Posts:
August 2001
12,764
So, the Dev Guide does not state this and IMO, it should.

You must assign rotarySound to false after setting the onRotary function.
Lyndel McGee
Philips Pronto Addict/Beta Tester
OP | Post 9 made on Thursday April 1, 2021 at 06:07
Fischi
Long Time Member
Joined:
Posts:
January 2011
99
There is one major drawback:

Immidiatly after entering the the activity with "rotary" and turning the scroll wheel the click sound isn't deactivated.
I think it's because of the setting after the onRotary function.
So the click sound is still present.
After the onRotary function begins to run  (after fractions of seconds)
the rotary sound disappears just as wanted.
It would be better to place the setting before or at the beginning the rotary function but this doesn't work.
I think that it hasn't been properly thought out by Philips.

Fischi

On March 31, 2021 at 16:03, Lyndel McGee said...
So, the Dev Guide does not state this and IMO, it should.

You must assign rotarySound to false after setting the onRotary function.
Post 10 made on Thursday April 1, 2021 at 12:18
Lyndel McGee
RC Moderator
Joined:
Posts:
August 2001
12,764
It is a bug IMO. the onRotary and rotarySound should not be coupled together. Setting the onRotary function should not cause the rotarySound flag to revert to true.
Lyndel McGee
Philips Pronto Addict/Beta Tester


Jump to


Protected Feature Before you can reply to a message...
You must first register for a Remote Central user account - it's fast and free! Or, if you already have an account, please login now.

Please read the following: Unsolicited commercial advertisements are absolutely not permitted on this forum. Other private buy & sell messages should be posted to our Marketplace. For information on how to advertise your service or product click here. Remote Central reserves the right to remove or modify any post that is deemed inappropriate.

Hosting Services by ipHouse