![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.
shared-utils
Advanced tools
contains useful utilities to read/write WAV file to/from a buffer, various float to int conversions, 32 bit float to 16 bit int conversion, random number generator for ints or floats in which optionally uses same random sequence across runs
Contains useful utilities like random number generator for ints or floats in min - max range inclusive
Available at https://github.com/scottstensland/shared-utils
// ------------ populate buffer with sin curve ------------ //
// var SIZE_BUFFER_SOURCE = 5;
var SIZE_BUFFER_SOURCE = 256;
// var SIZE_BUFFER_SOURCE = 4096;
// var SIZE_BUFFER_SOURCE = 16384;
var samples_per_cycle = 64;
var source_obj = {}; // we populate its buffer then save to output WAV file
var target_obj = {}; // then read back WAV file to populate this target buffer then do curve diff to confirm curves match
source_obj = audio_utils.pop_audio_buffer(SIZE_BUFFER_SOURCE, samples_per_cycle);
var shared_utils = require("shared-utils");
var path = require('path');
shared_utils.set_random_seed(17); // comment out if U want fresh random sequence for each run
// otherwise random sequence repeats across subsequent runs of this script
var SIZE_BUFFER_SOURCE = 256;
var source_obj = {}; // we populate its buffer with random float values then save to output WAV file
source_obj.buffer = new Float32Array(SIZE_BUFFER_SOURCE);
var max_index = SIZE_BUFFER_SOURCE;
for (var index = 0; index < max_index; index++) {
source_obj.buffer[index] = shared_utils.get_random_in_range_inclusive_float(-1.0, 1.0);
// console.log(index, " pop_audio_buffer ", source_obj.buffer[index]);
}
var output_dir = process.argv[2] || "/tmp";
var output_format = ".wav";
var source_wave = "source_wave_shared_utils_test";
var source_wave_filename = path.join(output_dir, source_wave + output_format);
shared_utils.write_32_bit_float_buffer_to_16_bit_wav_file(source_obj, source_wave_filename);
FAQs
contains useful utilities to read/write WAV file to/from a buffer, various float to int conversions, 32 bit float to 16 bit int conversion, random number generator for ints or floats in which optionally uses same random sequence across runs
The npm package shared-utils receives a total of 16 weekly downloads. As such, shared-utils popularity was classified as not popular.
We found that shared-utils demonstrated a not healthy version release cadence and project activity because the last version was released 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.