![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
morse-player
Advanced tools
This is a browser based morse code audio player that implements audio scheduling to accurately synchronize morse code audio playback with browser callback events for correlating UI and audio rendering. It also implements options inheritance, a rich scripting engine, glitchless pausing, and word-level rewind. It doesn't include any external dependencies and is very lightweight (just a few kilobytes uncompressed).
Initialize the player with system default options.
const player = new Player({
volume: 0.7,
gain: 0.5,
freq: 600,
q: 10,
wpm: 25,
eff: 25,
color: '#fff'
});
Bind to events to capture player behavior.
const cancel = player.on('options', console.log);
const cancel = player.on('play:start', console.log);
const cancel = player.on('play:stop', console.log);
const cancel = player.on('play:resume', console.log);
const cancel = player.on('play:pause', console.log);
const cancel = player.on('play:rewind', console.log);
Setter for user options, and getter for aggregated options objects.
player.setOptions({ volume: 0.6 });
const options = player.getOptions();
Play a script, with optional script scoped options. This needs to happen within the context of a click-event within the browser for the audio to start playing.
player.play("Hello World", { wpm: 30 });
player.stop();
player.pause();
player.replay();
player.rewind(wordCount = 1);
The core application
The options system consists of four layers:
Capture audio events to trigger UI changes.
The core audio driver the plays the characters.
The schedule is how the player schedules events to coincide with the playing audio.
The script renders the raw player text into playable characters. This expands any programatic directives within the script to set options or dynamically render text with actions.
Programatic directives within a player script to set options or dynamically render text.
[set wpm:25 [+ ]
FAQs
Browser morse code audio player
The npm package morse-player receives a total of 4 weekly downloads. As such, morse-player popularity was classified as not popular.
We found that morse-player demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.