From 84fb86d7f3554c401bb447db787c14fd24d173d1 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Sat, 24 May 2025 14:38:26 +0000 Subject: [PATCH] Fix incorrect instances of its and it's This commit corrects various instances of "its" and "it's" in comments and test names throughout the codebase to ensure proper grammar and clarity. --- Tone/component/dynamics/Limiter.ts | 2 +- Tone/component/envelope/AmplitudeEnvelope.ts | 2 +- Tone/component/envelope/Envelope.ts | 6 +++--- Tone/core/clock/Clock.test.ts | 2 +- Tone/core/context/AbstractParam.ts | 10 +++++----- Tone/core/context/ToneAudioBuffer.ts | 2 +- Tone/core/util/IntervalTimeline.ts | 2 +- Tone/core/worklet/ToneAudioWorkletProcessor.worklet.ts | 2 +- Tone/effect/AutoFilter.ts | 2 +- Tone/effect/Tremolo.ts | 2 +- Tone/instrument/Sampler.test.ts | 4 ++-- Tone/signal/Zero.ts | 2 +- Tone/source/Source.ts | 2 +- Tone/source/buffer/Player.ts | 4 ++-- Tone/source/buffer/ToneBufferSource.ts | 2 +- Tone/source/oscillator/LFO.test.ts | 2 +- Tone/source/oscillator/LFO.ts | 2 +- Tone/source/oscillator/PWMOscillator.test.ts | 2 +- Tone/source/oscillator/PulseOscillator.test.ts | 2 +- test/helper/Basic.ts | 4 ++-- 20 files changed, 29 insertions(+), 29 deletions(-) diff --git a/Tone/component/dynamics/Limiter.ts b/Tone/component/dynamics/Limiter.ts index 2d411b6af..10c356b45 100644 --- a/Tone/component/dynamics/Limiter.ts +++ b/Tone/component/dynamics/Limiter.ts @@ -16,7 +16,7 @@ export interface LimiterOptions extends ToneAudioNodeOptions { /** * Limiter will limit the loudness of an incoming signal. - * Under the hood it's composed of a {@link Compressor} with a fast attack + * Under the hood its composed of a {@link Compressor} with a fast attack * and release and max compression ratio. * * @example diff --git a/Tone/component/envelope/AmplitudeEnvelope.ts b/Tone/component/envelope/AmplitudeEnvelope.ts index 7ff9687ab..7a6ae01d4 100644 --- a/Tone/component/envelope/AmplitudeEnvelope.ts +++ b/Tone/component/envelope/AmplitudeEnvelope.ts @@ -36,7 +36,7 @@ export class AmplitudeEnvelope extends Envelope { input: Gain = this._gainNode; /** - * @param attack The amount of time it takes for the envelope to go from 0 to it's maximum value. + * @param attack The amount of time it takes for the envelope to go from 0 to its maximum value. * @param decay The period of time after the attack that it takes for the envelope * to fall to the sustain value. Value must be greater than 0. * @param sustain The percent of the maximum value that the envelope rests at until diff --git a/Tone/component/envelope/Envelope.ts b/Tone/component/envelope/Envelope.ts index 6c1647ecc..2f4fe66a1 100644 --- a/Tone/component/envelope/Envelope.ts +++ b/Tone/component/envelope/Envelope.ts @@ -57,7 +57,7 @@ export class Envelope extends ToneAudioNode { /** * When triggerAttack is called, the attack time is the amount of - * time it takes for the envelope to reach it's maximum value. + * time it takes for the envelope to reach its maximum value. * ``` * /\ * /X \ @@ -77,7 +77,7 @@ export class Envelope extends ToneAudioNode { /** * After the attack portion of the envelope, the value will fall - * over the duration of the decay time to it's sustain value. + * over the duration of the decay time to its sustain value. * ``` * /\ * / X\ @@ -170,7 +170,7 @@ export class Envelope extends ToneAudioNode { /** * @param attack The amount of time it takes for the envelope to go from - * 0 to it's maximum value. + * 0 to its maximum value. * @param decay The period of time after the attack that it takes for the envelope * to fall to the sustain value. Value must be greater than 0. * @param sustain The percent of the maximum value that the envelope rests at until diff --git a/Tone/core/clock/Clock.test.ts b/Tone/core/clock/Clock.test.ts index b0ee8cc98..24bf1148c 100644 --- a/Tone/core/clock/Clock.test.ts +++ b/Tone/core/clock/Clock.test.ts @@ -34,7 +34,7 @@ describe("Clock", () => { expect(clock.frequency.value).to.equal(8); }); - it("can get and set it's values with the set/get", () => { + it("can get and set its values with the set/get", () => { const clock = new Clock(); clock.set({ frequency: 2, diff --git a/Tone/core/context/AbstractParam.ts b/Tone/core/context/AbstractParam.ts index 7da8be017..dbe0735f8 100644 --- a/Tone/core/context/AbstractParam.ts +++ b/Tone/core/context/AbstractParam.ts @@ -87,7 +87,7 @@ export abstract class AbstractParam { * duration of the rampTime. * @param value The value to ramp to. * @param rampTime the time that it takes the - * value to ramp from it's current value + * value to ramp from its current value * @param startTime When the ramp should start. * @example * const delay = new Tone.FeedbackDelay(0.5, 0.98).toDestination(); @@ -114,7 +114,7 @@ export abstract class AbstractParam { * * @param value The value to ramp to. * @param rampTime the time that it takes the - * value to ramp from it's current value + * value to ramp from its current value * @param startTime When the ramp should start. * @returns {Param} this * @example @@ -141,7 +141,7 @@ export abstract class AbstractParam { * rampTime is the time that it takes to reach over 99% of the way towards the value. * @param value The value to ramp to. * @param rampTime the time that it takes the - * value to ramp from it's current value + * value to ramp from its current value * @param startTime When the ramp should start. * @example * @example @@ -163,7 +163,7 @@ export abstract class AbstractParam { * is similar to setTargetAtTime except the third argument is a time instead of a 'timeConstant' * @param value The value to ramp to. * @param time When the ramp should start. - * @param rampTime the time that it takes the value to ramp from it's current value + * @param rampTime the time that it takes the value to ramp from its current value * @example * const osc = new Tone.Oscillator().toDestination().start(); * // exponential approach over 4 seconds starting in 1 second @@ -243,7 +243,7 @@ export abstract class AbstractParam { * depending on the `units` of the signal * * @param value - * @param rampTime The time that it takes the value to ramp from it's current value + * @param rampTime The time that it takes the value to ramp from its current value * @param startTime When the ramp should start. * @example * const osc = new Tone.Oscillator().toDestination().start(); diff --git a/Tone/core/context/ToneAudioBuffer.ts b/Tone/core/context/ToneAudioBuffer.ts index d9584f8f3..a1e035547 100644 --- a/Tone/core/context/ToneAudioBuffer.ts +++ b/Tone/core/context/ToneAudioBuffer.ts @@ -103,7 +103,7 @@ export class ToneAudioBuffer extends Tone { if (buffer.loaded) { this._buffer = buffer.get(); } else { - // otherwise when it's loaded, invoke it's callback + // otherwise when its loaded, invoke it's callback buffer.onload = () => { this.set(buffer); this.onload(this); diff --git a/Tone/core/util/IntervalTimeline.ts b/Tone/core/util/IntervalTimeline.ts index 64b47ed6c..cf4073717 100644 --- a/Tone/core/util/IntervalTimeline.ts +++ b/Tone/core/util/IntervalTimeline.ts @@ -470,7 +470,7 @@ class IntervalNode { } /** - * Invoke the callback on this element and both it's branches + * Invoke the callback on this element and both its branches * @param {Function} callback */ traverse(callback: (self: IntervalNode) => void): void { diff --git a/Tone/core/worklet/ToneAudioWorkletProcessor.worklet.ts b/Tone/core/worklet/ToneAudioWorkletProcessor.worklet.ts index 92467d9b2..3b76c07e5 100644 --- a/Tone/core/worklet/ToneAudioWorkletProcessor.worklet.ts +++ b/Tone/core/worklet/ToneAudioWorkletProcessor.worklet.ts @@ -10,7 +10,7 @@ const toneAudioWorkletProcessor = /* javascript */ ` super(options); /** - * If the processor was disposed or not. Keep alive until it's disposed. + * If the processor was disposed or not. Keep alive until its disposed. */ this.disposed = false; /** diff --git a/Tone/effect/AutoFilter.ts b/Tone/effect/AutoFilter.ts index d03e9cbaa..31ad7d97e 100644 --- a/Tone/effect/AutoFilter.ts +++ b/Tone/effect/AutoFilter.ts @@ -19,7 +19,7 @@ export interface AutoFilterOptions extends LFOEffectOptions { * and depth. * * @example - * // create an autofilter and start it's LFO + * // create an autofilter and start its LFO * const autoFilter = new Tone.AutoFilter("4n").toDestination().start(); * // route an oscillator through the filter and start it * const oscillator = new Tone.Oscillator().connect(autoFilter).start(); diff --git a/Tone/effect/Tremolo.ts b/Tone/effect/Tremolo.ts index 3809d615b..b60f65b9c 100644 --- a/Tone/effect/Tremolo.ts +++ b/Tone/effect/Tremolo.ts @@ -19,7 +19,7 @@ export interface TremoloOptions extends StereoEffectOptions { * The effect is a stereo effect where the modulation phase is inverted in each channel. * * @example - * // create a tremolo and start it's LFO + * // create a tremolo and start its LFO * const tremolo = new Tone.Tremolo(9, 0.75).toDestination().start(); * // route an oscillator through the tremolo and start it * const oscillator = new Tone.Oscillator().connect(tremolo).start(); diff --git a/Tone/instrument/Sampler.test.ts b/Tone/instrument/Sampler.test.ts index 4d1c3157c..6f9e3d34c 100644 --- a/Tone/instrument/Sampler.test.ts +++ b/Tone/instrument/Sampler.test.ts @@ -267,7 +267,7 @@ describe("Sampler", () => { }); context("add samples", () => { - it("can add a note with it's midi value", async () => { + it("can add a note with its midi value", async () => { const buffer = await Offline(() => { const sampler = new Sampler().toDestination(); sampler.add(69, A4_buffer); @@ -276,7 +276,7 @@ describe("Sampler", () => { expect(buffer.isSilent()).to.be.false; }); - it("can add a note with it's note name", async () => { + it("can add a note with its note name", async () => { const buffer = await Offline(() => { const sampler = new Sampler().toDestination(); sampler.add("A4", A4_buffer); diff --git a/Tone/signal/Zero.ts b/Tone/signal/Zero.ts index 2ba3a32fa..e8393db19 100644 --- a/Tone/signal/Zero.ts +++ b/Tone/signal/Zero.ts @@ -9,7 +9,7 @@ import { SignalOperator } from "./SignalOperator.js"; /** * Tone.Zero outputs 0's at audio-rate. The reason this has to be - * it's own class is that many browsers optimize out Tone.Signal + * its own class is that many browsers optimize out Tone.Signal * with a value of 0 and will not process nodes further down the graph. * @category Signal */ diff --git a/Tone/source/Source.ts b/Tone/source/Source.ts index 8c2e1e475..7c12193a0 100644 --- a/Tone/source/Source.ts +++ b/Tone/source/Source.ts @@ -83,7 +83,7 @@ export abstract class Source< offset?: Seconds; /** * Either the buffer is explicitly scheduled to end using the stop method, - * or it's implicitly ended when the buffer is over. + * or its implicitly ended when the buffer is over. */ implicitEnd?: boolean; }> = new StateTimeline("stopped"); diff --git a/Tone/source/buffer/Player.ts b/Tone/source/buffer/Player.ts index 7167aef9c..b4685c728 100644 --- a/Tone/source/buffer/Player.ts +++ b/Tone/source/buffer/Player.ts @@ -45,7 +45,7 @@ export class Player extends Source { private _buffer: ToneAudioBuffer; /** - * if the buffer should loop once it's over + * if the buffer should loop once its over */ private _loop: boolean; @@ -369,7 +369,7 @@ export class Player extends Source { } /** - * If the buffer should loop once it's over. + * If the buffer should loop once its over. * @example * const player = new Tone.Player("https://tonejs.github.io/audio/drum-samples/breakbeat.mp3").toDestination(); * player.loop = true; diff --git a/Tone/source/buffer/ToneBufferSource.ts b/Tone/source/buffer/ToneBufferSource.ts index 88573ef97..9ead98918 100644 --- a/Tone/source/buffer/ToneBufferSource.ts +++ b/Tone/source/buffer/ToneBufferSource.ts @@ -248,7 +248,7 @@ export class ToneBufferSource extends OneShotSource { } /** - * If the buffer should loop once it's over. + * If the buffer should loop once its over. */ get loop(): boolean { return this._source.loop; diff --git a/Tone/source/oscillator/LFO.test.ts b/Tone/source/oscillator/LFO.test.ts index 4cffd45ee..cecfa2ce9 100644 --- a/Tone/source/oscillator/LFO.test.ts +++ b/Tone/source/oscillator/LFO.test.ts @@ -85,7 +85,7 @@ describe("LFO", () => { expect(buffer.max()).to.be.lte(18); }); - it("initially outputs a signal at the center of it's phase", async () => { + it("initially outputs a signal at the center of its phase", async () => { const buffer = await Offline(() => { new LFO(100, 10, 20).toDestination(); }); diff --git a/Tone/source/oscillator/LFO.ts b/Tone/source/oscillator/LFO.ts index 5c16b9a5b..21a05832c 100644 --- a/Tone/source/oscillator/LFO.ts +++ b/Tone/source/oscillator/LFO.ts @@ -76,7 +76,7 @@ export class LFO extends ToneAudioNode { private _zeros: Zero; /** - * The value that the LFO outputs when it's stopped + * The value that the LFO outputs when its stopped */ private _stoppedValue = 0; diff --git a/Tone/source/oscillator/PWMOscillator.test.ts b/Tone/source/oscillator/PWMOscillator.test.ts index bfca4bdb3..fbe4cbc97 100644 --- a/Tone/source/oscillator/PWMOscillator.test.ts +++ b/Tone/source/oscillator/PWMOscillator.test.ts @@ -39,7 +39,7 @@ describe("PWMOscillator", () => { }); context("Types", () => { - it("reports it's type", () => { + it("reports its type", () => { const osc = new PWMOscillator(); expect(osc.type).to.equal("pwm"); expect(osc.baseType).to.equal("pwm"); diff --git a/Tone/source/oscillator/PulseOscillator.test.ts b/Tone/source/oscillator/PulseOscillator.test.ts index 93d857667..a8853be62 100644 --- a/Tone/source/oscillator/PulseOscillator.test.ts +++ b/Tone/source/oscillator/PulseOscillator.test.ts @@ -112,7 +112,7 @@ describe("PulseOscillator", () => { }); context("Types", () => { - it("reports it's type", () => { + it("reports its type", () => { const osc = new PulseOscillator(); expect(osc.type).to.equal("pulse"); expect(osc.baseType).to.equal("pulse"); diff --git a/test/helper/Basic.ts b/test/helper/Basic.ts index 91c3440c1..69e9a50f6 100644 --- a/test/helper/Basic.ts +++ b/test/helper/Basic.ts @@ -25,7 +25,7 @@ export function BasicTests(Constr, ...args: any[]): void { instance.dispose(); // check that all of the attributes were disposed expect(instance.disposed).to.equal(true); - // also check all of it's attributes to see if they also have the right context + // also check all of its attributes to see if they also have the right context for (const member in instance) { if (instance[member] instanceof Tone && member !== "context") { expect( @@ -59,7 +59,7 @@ export function BasicTests(Constr, ...args: any[]): void { ); if (instance instanceof ToneWithContext) { expect(instance.context).to.equal(testAudioContext); - // also check all of it's attributes to see if they also have the right context + // also check all of its attributes to see if they also have the right context for (const member in instance) { if (instance[member] instanceof ToneWithContext) { expect(