New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

dittytoy

Package Overview
Dependencies
Maintainers
1
Versions
113
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dittytoy - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

60

index.d.ts

@@ -41,29 +41,79 @@ export const LOOP_OPERATOR_SYNTH: 0;

/**
* The Dittytoy class represents a Dittytoy synthesizer.
*/
export class Dittytoy {
/**
* Indicates whether the synthesizer is paused.
*/
paused: boolean;
/**
* Indicates whether the synthesizer is stopped.
*/
stopped: boolean;
/**
* Adds a listener for a specific event.
* @param event - The event to listen for.
* @param callback - The function to call when the event occurs.
*/
addListener(event: any, callback: any): void;
/**
* Removes a listener for a specific event.
* @param event - The event to stop listening for.
* @param callback - The function to remove from the event's listeners.
*/
removeListener(event: any, callback: any): void;
/**
* Sets the volume for the synthesizer.
* @param volume - The volume settings to apply.
*/
setVolume(volume: VolumeType): void;
/**
* Sets the input parameters for the synthesizer.
* @param inputParameters - The input parameters to set.
*/
setInputParameters(inputParameters: InputParameterType[]): void;
log(message: any, line?: number): this;
error(message: any, e: any): this;
/**
* Compiles the provided code.
* @param code - The code to compile.
* @returns A promise that resolves when the code has been compiled.
*/
compile(code: string): Promise<any>;
/**
* Stops the synthesizer.
* @returns A promise that resolves when the synthesizer has been stopped.
*/
stop(): Promise<void>;
/**
* Pauses the synthesizer.
* @returns A promise that resolves when the synthesizer has been paused.
*/
pause(): Promise<void>;
/**
* Resumes the synthesizer.
* @param inputParameters - The input parameters to set (optional).
* @param volume - The volume settings to apply (optional).
* @param releaseMode - Whether to enable release mode (optional).
* @returns A promise that resolves when the synthesizer has been resumed.
*/
resume(inputParameters?: InputParameterType[], volume?: VolumeType, releaseMode?: boolean): Promise<void>;
/**
* Starts playing the synthesizer.
* @param inputParameters - The input parameters to set (optional).
* @param volume - The volume settings to apply (optional).
* @param releaseMode - Whether to enable release mode (optional).
* @returns A promise that resolves when the synthesizer has started playing.
*/
play(inputParameters?: InputParameterType[], volume?: VolumeType, releaseMode?: boolean): Promise<void>;
}
export {};

2

package.json
{
"name": "dittytoy",
"version": "1.0.2",
"version": "1.0.3",
"description": "",

@@ -5,0 +5,0 @@ "keywords": [

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc