com.neuron.app.tonto
Class ActionBeep
java.lang.Object
com.neuron.app.tonto.CCFNode
com.neuron.app.tonto.CCFAction
com.neuron.app.tonto.ActionBeep
- All Implemented Interfaces:
- java.lang.Cloneable
public class ActionBeep
- extends CCFAction
Action that emits a beep.
Fields inherited from class com.neuron.app.tonto.CCFAction |
ACT_ALIAS_BUTTON, ACT_ALIAS_DEV, ACT_ALIAS_KEY, ACT_BEEP, ACT_DELAY, ACT_DUMMY, ACT_IRCODE, ACT_JUMP_PANEL, ACT_MARANTZ_JUMP, ACT_TIMER, CustomKeys, JUMP_BACK, JUMP_FORWARD, JUMP_MOUSE_MODE, JUMP_SCROLL_DOWN, JUMP_SCROLL_UP, jumpSpecial, jumpSpecialID, KEY_CHANDOWN, KEY_CHANUP, KEY_LEFT, KEY_MUTE, KEY_RIGHT, KEY_VOLDOWN, KEY_VOLUP, MarantzKeys, ProntoKeys, ProntoProKeys |
Constructor Summary |
ActionBeep(int dur,
int freq,
int cycle)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ActionBeep
public ActionBeep(int dur,
int freq,
int cycle)
main
public static void main(java.lang.String[] args)
throws java.lang.Exception
- Throws:
java.lang.Exception
getDuration
public static int getDuration(int p2)
- Get the duration of the Beep.
getDuration
public int getDuration()
getFrequency
public static int getFrequency(int p2)
- Get the frequency of the Beep.
getFrequency
public int getFrequency()
getDutyCycle
public static int getDutyCycle(int p2)
- Get the duty cycle of the Beep.
getDutyCycle
public int getDutyCycle()
setBeep
public void setBeep(int dur,
int freq,
int cycle)
- Set the beep parameters.
- Parameters:
dur
- duration of the beep in milliseconds
in multiples of 10 up to 2550freq
- frequency of the beep in Hz up to 65535cycle
- duty cycle of the beep (0-100%)