@blibliki/engine 0.1.26 → 0.1.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (62) hide show
  1. package/dist/index.js +19484 -0
  2. package/dist/index.umd.cjs +227 -0
  3. package/dist/{build → src}/Engine.d.ts +10 -9
  4. package/dist/{build → src}/core/IO/AudioNode.d.ts +6 -5
  5. package/dist/{build → src}/core/IO/Collection.d.ts +5 -4
  6. package/dist/{build → src}/core/IO/ForwardNode/Base.d.ts +6 -5
  7. package/dist/{build → src}/core/IO/ForwardNode/index.d.ts +6 -5
  8. package/dist/{build → src}/core/IO/MidiNode.d.ts +5 -4
  9. package/dist/{build → src}/core/IO/Node.d.ts +3 -2
  10. package/dist/{build → src}/core/IO/index.d.ts +6 -5
  11. package/dist/{build → src}/core/Module/MonoModule.d.ts +9 -8
  12. package/dist/{build → src}/core/Module/PolyModule.d.ts +8 -7
  13. package/dist/src/core/Module/index.d.ts +7 -0
  14. package/dist/{build → src}/core/midi/ComputerKeyboardInput.d.ts +3 -2
  15. package/dist/{build → src}/core/midi/MidiDevice.d.ts +2 -1
  16. package/dist/{build → src}/core/midi/MidiDeviceManager.d.ts +2 -1
  17. package/dist/{build → src}/core/midi/MidiEvent.d.ts +3 -2
  18. package/dist/src/core/midi/index.d.ts +5 -0
  19. package/dist/src/index.d.ts +9 -0
  20. package/dist/src/main.d.ts +0 -0
  21. package/dist/{build → src}/modules/BitCrusher.d.ts +3 -2
  22. package/dist/{build → src}/modules/Delay.d.ts +3 -2
  23. package/dist/{build → src}/modules/Distortion.d.ts +3 -2
  24. package/dist/{build → src}/modules/Effect.d.ts +3 -2
  25. package/dist/{build → src}/modules/Envelope/AmpEnvelope.d.ts +3 -2
  26. package/dist/{build → src}/modules/Envelope/Base.d.ts +4 -3
  27. package/dist/{build → src}/modules/Envelope/FreqEnvelope.d.ts +4 -3
  28. package/dist/src/modules/Envelope/index.d.ts +3 -0
  29. package/dist/{build → src}/modules/Filter.d.ts +4 -3
  30. package/dist/{build → src}/modules/LFO.d.ts +5 -4
  31. package/dist/{build → src}/modules/Master.d.ts +3 -2
  32. package/dist/{build → src}/modules/MidiSelector.d.ts +3 -2
  33. package/dist/{build → src}/modules/Oscillator.d.ts +7 -6
  34. package/dist/{build → src}/modules/Reverb.d.ts +3 -2
  35. package/dist/{build → src}/modules/Sequencer.d.ts +4 -3
  36. package/dist/{build → src}/modules/VirtualMidi.d.ts +7 -6
  37. package/dist/{build → src}/modules/VoiceScheduler.d.ts +6 -5
  38. package/dist/{build → src}/modules/Volume.d.ts +4 -3
  39. package/dist/src/modules/index.d.ts +18 -0
  40. package/dist/{build → src}/routes.d.ts +3 -2
  41. package/dist/test/MockingModules.d.ts +22 -0
  42. package/dist/test/Module/Oscillator.test.d.ts +1 -0
  43. package/dist/test/core/IO.test.d.ts +1 -0
  44. package/package.json +15 -16
  45. package/src/main.ts +1 -0
  46. package/src/modules/Oscillator.ts +14 -5
  47. package/src/modules/index.ts +2 -2
  48. package/src/vite-env.d.ts +1 -0
  49. package/dist/build/core/IO/ForwardNode.d.ts +0 -38
  50. package/dist/build/core/Module/index.d.ts +0 -6
  51. package/dist/build/core/midi/index.d.ts +0 -5
  52. package/dist/build/index.d.ts +0 -9
  53. package/dist/build/modules/Envelope/index.d.ts +0 -3
  54. package/dist/build/modules/index.d.ts +0 -17
  55. package/dist/main.cjs.js +0 -25
  56. package/dist/main.cjs.js.map +0 -1
  57. package/dist/main.esm.js +0 -25
  58. package/dist/main.esm.js.map +0 -1
  59. /package/dist/{build → src}/core/Note/frequencyTable.d.ts +0 -0
  60. /package/dist/{build → src}/core/Note/index.d.ts +0 -0
  61. /package/dist/{build → src}/types.d.ts +0 -0
  62. /package/dist/{build → src}/utils.d.ts +0 -0
@@ -1,7 +1,8 @@
1
- import { MidiDeviceManager } from "./core/midi";
2
- import { AudioModule } from "./core/Module";
3
- import { RouteInterface } from "./routes";
4
- import { AnyObject, Optional } from "./types";
1
+ import { AnyObject, Optional } from './types';
2
+ import { RouteInterface } from './routes';
3
+ import { AudioModule } from './core/Module';
4
+ import { MidiDeviceManager } from './core/midi';
5
+
5
6
  type LatencyHint = "interactive" | "playback" | "balanced";
6
7
  interface ContextInterface {
7
8
  latencyHint: LatencyHint;
@@ -44,8 +45,8 @@ declare class Engine {
44
45
  name: string;
45
46
  type: string;
46
47
  props: any;
47
- inputs: import(".").IOProps[];
48
- outputs: import(".").IOProps[];
48
+ inputs: import('.').IOProps[];
49
+ outputs: import('.').IOProps[];
49
50
  };
50
51
  removeModule(id: string): string[];
51
52
  updateModule(params: UpdateModuleProps): {
@@ -53,16 +54,16 @@ declare class Engine {
53
54
  name: string;
54
55
  type: string;
55
56
  props: any;
56
- inputs: import(".").IOProps[];
57
- outputs: import(".").IOProps[];
57
+ inputs: import('.').IOProps[];
58
+ outputs: import('.').IOProps[];
58
59
  };
59
60
  onPropsUpdate(callback: (id: string, props: AnyObject) => void): void;
60
61
  _triggerPropsUpdate(id: string, props: AnyObject): void;
61
62
  addRoute(props: Optional<RouteInterface, "id">): {
62
63
  id: string;
63
64
  sourceId: string;
64
- destinationId: string;
65
65
  sourceIOId: string;
66
+ destinationId: string;
66
67
  destinationIOId: string;
67
68
  };
68
69
  validRoute(props: Optional<RouteInterface, "id">): boolean;
@@ -1,8 +1,9 @@
1
- import { InputNode } from "tone";
2
- import IONode, { IOType, IIONode } from "./Node";
3
- import MonoModule, { Connectable } from "../Module/index";
4
- import { AnyObject } from "../../types";
5
- import { AnyAudioInput, AnyAudioOuput } from ".";
1
+ import { AnyAudioInput, AnyAudioOuput } from '.';
2
+ import { AnyObject } from '../../types';
3
+ import { default as MonoModule, Connectable } from '../Module/index';
4
+ import { default as IONode, IOType, IIONode } from './Node';
5
+ import { InputNode } from 'tone';
6
+
6
7
  export type AudioIO = AudioInput | AudioOutput;
7
8
  export interface IAudioInput extends IIONode {
8
9
  ioType: IOType.AudioInput;
@@ -1,6 +1,7 @@
1
- import { AudioModule } from "../Module";
2
- import IO from "./Node";
3
- import { IAnyIO } from ".";
1
+ import { IAnyIO } from '.';
2
+ import { default as IO } from './Node';
3
+ import { AudioModule } from '../Module';
4
+
4
5
  export default class IOCollection<AnyIO extends IO> {
5
6
  plugableModule: AudioModule;
6
7
  collection: AnyIO[];
@@ -9,5 +10,5 @@ export default class IOCollection<AnyIO extends IO> {
9
10
  unPlugAll(): void;
10
11
  find(id: string): AnyIO | undefined;
11
12
  findByName(name: string): AnyIO | undefined;
12
- serialize(): import("./Node").IIOSerialize[];
13
+ serialize(): import('./Node').IIOSerialize[];
13
14
  }
@@ -1,7 +1,8 @@
1
- import IONode, { IIONode } from "../Node";
2
- import Module, { Connectable, PolyModule } from "../../Module";
3
- import { AnyObject } from "../../../types";
4
- import { AnyIO } from "..";
1
+ import { AnyIO } from '..';
2
+ import { AnyObject } from '../../../types';
3
+ import { default as Module, Connectable, PolyModule } from '../../Module';
4
+ import { default as IONode, IIONode } from '../Node';
5
+
5
6
  export default class ForwardBaseNode extends IONode {
6
7
  plugableModule: PolyModule<Module<Connectable, AnyObject>, AnyObject>;
7
8
  constructor(plugableModule: PolyModule<Module<Connectable, AnyObject>, AnyObject>, props: IIONode);
@@ -9,7 +10,7 @@ export default class ForwardBaseNode extends IONode {
9
10
  get subModules(): Module<Connectable, AnyObject>[];
10
11
  subModule(voiceNo: number): Module<Connectable, AnyObject>;
11
12
  get subIOs(): IONode[];
12
- subIO(voiceNo: number): import("..").AudioInput | import("..").MidiInput | import("..").AudioOutput | import("..").MidiOutput;
13
+ subIO(voiceNo: number): import('..').AudioInput | import('..').MidiInput | import('..').AudioOutput | import('..').MidiOutput;
13
14
  plug(io: AnyIO, plugOther?: boolean): void;
14
15
  unPlug(io: AnyIO, plugOther?: boolean): void;
15
16
  unPlugAll(): void;
@@ -1,8 +1,9 @@
1
- import { IOType, IIONode } from "../Node";
2
- import Module, { Connectable, PolyModule } from "../../Module";
3
- import { AnyObject } from "../../../types";
4
- import { AnyAudioInput, AnyAudioOuput, AnyInput, AnyOuput } from "..";
5
- import ForwardBaseNode from "./Base";
1
+ import { default as ForwardBaseNode } from './Base';
2
+ import { AnyAudioInput, AnyAudioOuput, AnyInput, AnyOuput } from '..';
3
+ import { AnyObject } from '../../../types';
4
+ import { default as Module, Connectable, PolyModule } from '../../Module';
5
+ import { IOType, IIONode } from '../Node';
6
+
6
7
  export interface IForwardAudioInput extends IIONode {
7
8
  ioType: IOType.ForwardAudioInput;
8
9
  }
@@ -1,7 +1,8 @@
1
- import { AnyMidiInput, AnyMidiOuput } from ".";
2
- import { AudioModule } from "../Module";
3
- import { MidiEvent } from "../midi";
4
- import IONode, { IOType, IIONode } from "./Node";
1
+ import { default as IONode, IOType, IIONode } from './Node';
2
+ import { MidiEvent } from '../midi';
3
+ import { AudioModule } from '../Module';
4
+ import { AnyMidiInput, AnyMidiOuput } from '.';
5
+
5
6
  export interface IMidiInput extends IIONode {
6
7
  ioType: IOType.MidiInput;
7
8
  onMidiEvent: (event: MidiEvent) => void;
@@ -1,5 +1,6 @@
1
- import { AudioModule } from "../Module";
2
- import { AnyIO } from ".";
1
+ import { AnyIO } from '.';
2
+ import { AudioModule } from '../Module';
3
+
3
4
  export interface IIONode {
4
5
  name: string;
5
6
  ioType: IOType;
@@ -1,8 +1,9 @@
1
- import { default as IOCollection } from "./Collection";
2
- import { IIONode, IOType, IIOSerialize } from "./Node";
3
- import { AudioInput, AudioOutput, IAudioInput, IAudioOutput } from "./AudioNode";
4
- import { IMidiInput, IMidiOutput, MidiInput, MidiOutput } from "./MidiNode";
5
- import { ForwardAudioInput, ForwardAudioOutput, IForwardAudioInput, IForwardAudioOutput } from "./ForwardNode";
1
+ import { ForwardAudioInput, ForwardAudioOutput, IForwardAudioInput, IForwardAudioOutput } from './ForwardNode';
2
+ import { IMidiInput, IMidiOutput, MidiInput, MidiOutput } from './MidiNode';
3
+ import { AudioInput, AudioOutput, IAudioInput, IAudioOutput } from './AudioNode';
4
+ import { IIONode, IOType, IIOSerialize } from './Node';
5
+ import { default as IOCollection } from './Collection';
6
+
6
7
  type AnyAudioInput = AudioInput | ForwardAudioInput;
7
8
  type AnyMidiInput = MidiInput;
8
9
  type AnyAudioOuput = AudioOutput | ForwardAudioOutput;
@@ -1,9 +1,10 @@
1
- import { InputNode } from "tone";
2
- import { IOCollection, AudioInput, AudioOutput, MidiInput, IMidiInput, IAudioInput, IAudioOutput, MidiOutput, IMidiOutput } from "../IO";
3
- import { MidiEvent } from "../../core/midi";
4
- import { AudioModule } from "./index";
5
- import Note from "../../core/Note";
6
- import { AtLeast } from "../../types";
1
+ import { AtLeast } from '../../types';
2
+ import { default as Note } from '../../core/Note';
3
+ import { AudioModule } from './index';
4
+ import { MidiEvent } from '../../core/midi';
5
+ import { IOCollection, AudioInput, AudioOutput, MidiInput, IMidiInput, IAudioInput, IAudioOutput, MidiOutput, IMidiOutput } from '../IO';
6
+ import { InputNode } from 'tone';
7
+
7
8
  export interface Startable {
8
9
  start(time: number): void;
9
10
  stop(time: number): void;
@@ -53,8 +54,8 @@ declare abstract class Module<InternalModule extends Connectable, PropsInterface
53
54
  name: string;
54
55
  type: string;
55
56
  props: PropsInterface;
56
- inputs: import("../IO").IIOSerialize[];
57
- outputs: import("../IO").IIOSerialize[];
57
+ inputs: import('../IO').IIOSerialize[];
58
+ outputs: import('../IO').IIOSerialize[];
58
59
  };
59
60
  protected registerMidiInput(props: Omit<IMidiInput, "ioType">): MidiInput;
60
61
  protected registerAudioInput(props: Omit<IAudioInput, "ioType">): AudioInput;
@@ -1,8 +1,9 @@
1
- import { MidiEvent } from "../midi";
2
- import Module, { Connectable } from "./MonoModule";
3
- import { IOCollection, IMidiInput, IMidiOutput, MidiOutput, MidiInput, AnyInput, AnyOuput, ForwardAudioInput } from "../IO";
4
- import { AudioModule } from "./index";
5
- import { ForwardAudioOutput, IForwardAudioInput, IForwardAudioOutput } from "../IO/ForwardNode";
1
+ import { ForwardAudioOutput, IForwardAudioInput, IForwardAudioOutput } from '../IO/ForwardNode';
2
+ import { AudioModule } from './index';
3
+ import { IOCollection, IMidiInput, IMidiOutput, MidiOutput, MidiInput, AnyInput, AnyOuput, ForwardAudioInput } from '../IO';
4
+ import { default as Module, Connectable } from './MonoModule';
5
+ import { MidiEvent } from '../midi';
6
+
6
7
  interface PolyModuleInterface<MonoAudioModule, PropsInterface> {
7
8
  id?: string;
8
9
  name: string;
@@ -42,8 +43,8 @@ export default abstract class PolyModule<MonoAudioModule extends Module<Connecta
42
43
  id: string;
43
44
  type: string;
44
45
  numberOfVoices: number;
45
- inputs: import("../IO").IIOSerialize[];
46
- outputs: import("../IO").IIOSerialize[];
46
+ inputs: import('../IO').IIOSerialize[];
47
+ outputs: import('../IO').IIOSerialize[];
47
48
  name: string;
48
49
  props: PropsInterface;
49
50
  };
@@ -0,0 +1,7 @@
1
+ import { default as PolyModule } from './PolyModule';
2
+ import { default as Module, Connectable } from './MonoModule';
3
+
4
+ export { default, DummnyInternalModule } from './MonoModule';
5
+ export { default as PolyModule } from './PolyModule';
6
+ export type { ModuleInterface, Connectable, Triggerable, Startable, } from './MonoModule';
7
+ export type AudioModule = Module<Connectable, any> | PolyModule<Module<Connectable, any>, any>;
@@ -1,5 +1,6 @@
1
- import { IMidiInput, TMidiPortState } from "./MidiDevice";
2
- import MidiEvent from "./MidiEvent";
1
+ import { default as MidiEvent } from './MidiEvent';
2
+ import { IMidiInput, TMidiPortState } from './MidiDevice';
3
+
3
4
  export default class ComputerKeyboardInput implements IMidiInput {
4
5
  id: string;
5
6
  name: string;
@@ -1,4 +1,5 @@
1
- import MidiEvent from "./MidiEvent";
1
+ import { default as MidiEvent } from './MidiEvent';
2
+
2
3
  export type TMidiPortState = "connected" | "disconnected";
3
4
  export interface MidiDeviceInterface {
4
5
  id: string;
@@ -1,4 +1,5 @@
1
- import MidiDevice from "./MidiDevice";
1
+ import { default as MidiDevice } from './MidiDevice';
2
+
2
3
  export default class MidiDeviceManager {
3
4
  devices: {
4
5
  [Key: string]: MidiDevice;
@@ -1,5 +1,6 @@
1
- import { ISequence } from "../../modules";
2
- import Note, { INote } from "../Note";
1
+ import { default as Note, INote } from '../Note';
2
+ import { ISequence } from '../../modules';
3
+
3
4
  export type MidiEventType = "noteOn" | "noteOff" | "cc";
4
5
  export default class MidiEvent {
5
6
  note: Note;
@@ -0,0 +1,5 @@
1
+ export { default as MidiEvent } from './MidiEvent';
2
+ export { default as MidiDevice } from './MidiDevice';
3
+ export { default as MidiDeviceManager } from './MidiDeviceManager';
4
+ export type { MidiDeviceInterface } from './MidiDevice';
5
+ export type { MidiEventType } from './MidiEvent';
@@ -0,0 +1,9 @@
1
+ export { default } from './Engine';
2
+ export { MidiDevice, MidiDeviceManager } from './core/midi';
3
+ export { default as Note } from './core/Note';
4
+ export type { MidiDeviceInterface } from './core/midi';
5
+ export type { INote } from './core/Note';
6
+ export type { ModuleInterface, AudioModule } from './core/Module';
7
+ export type { ISequence } from './modules';
8
+ export type { RouteInterface, RouteProps } from './routes';
9
+ export type { IIOSerialize as IOProps } from './core/IO';
File without changes
@@ -1,5 +1,6 @@
1
- import { BitCrusher as InternalBitCrasher } from "tone";
2
- import Effect, { EffectInterface } from "./Effect";
1
+ import { default as Effect, EffectInterface } from './Effect';
2
+ import { BitCrusher as InternalBitCrasher } from 'tone';
3
+
3
4
  interface BitCrusherInterface extends EffectInterface {
4
5
  bits: number;
5
6
  }
@@ -1,5 +1,6 @@
1
- import { FeedbackDelay } from "tone";
2
- import Effect, { EffectInterface } from "./Effect";
1
+ import { default as Effect, EffectInterface } from './Effect';
2
+ import { FeedbackDelay } from 'tone';
3
+
3
4
  interface DelayInterface extends EffectInterface {
4
5
  delayTime: number;
5
6
  feedback: number;
@@ -1,5 +1,6 @@
1
- import { Distortion as InternalDistortion } from "tone";
2
- import Effect, { EffectInterface } from "./Effect";
1
+ import { default as Effect, EffectInterface } from './Effect';
2
+ import { Distortion as InternalDistortion } from 'tone';
3
+
3
4
  interface DistortionInterface extends EffectInterface {
4
5
  drive: number;
5
6
  }
@@ -1,5 +1,6 @@
1
- import { Signal } from "tone";
2
- import Module, { Connectable } from "../core/Module";
1
+ import { default as Module, Connectable } from '../core/Module';
2
+ import { Signal } from 'tone';
3
+
3
4
  interface EffectLike extends Connectable {
4
5
  wet: Signal<"normalRange">;
5
6
  }
@@ -1,5 +1,6 @@
1
- import { AmplitudeEnvelope } from "tone";
2
- import Base, { EnvelopeInterface, PolyBase } from "./Base";
1
+ import { default as Base, EnvelopeInterface, PolyBase } from './Base';
2
+ import { AmplitudeEnvelope } from 'tone';
3
+
3
4
  declare class MonoAmpEnvelope extends Base<AmplitudeEnvelope> {
4
5
  constructor(params: {
5
6
  id?: string;
@@ -1,6 +1,7 @@
1
- import { Envelope as Env } from "tone";
2
- import Module, { PolyModule, Connectable, Triggerable } from "../../core/Module";
3
- import Note from "../../core/Note";
1
+ import { default as Note } from '../../core/Note';
2
+ import { default as Module, PolyModule, Connectable, Triggerable } from '../../core/Module';
3
+ import { Envelope as Env } from 'tone';
4
+
4
5
  export declare const enum EnvelopeStages {
5
6
  Attack = "attack",
6
7
  Decay = "decay",
@@ -1,6 +1,7 @@
1
- import { FrequencyEnvelope } from "tone";
2
- import Filter from "../Filter";
3
- import Base, { EnvelopeInterface, PolyBase } from "./Base";
1
+ import { default as Base, EnvelopeInterface, PolyBase } from './Base';
2
+ import { default as Filter } from '../Filter';
3
+ import { FrequencyEnvelope } from 'tone';
4
+
4
5
  export declare class MonoFreqEnvelope extends Base<FrequencyEnvelope> {
5
6
  private _frequency;
6
7
  private _amount;
@@ -0,0 +1,3 @@
1
+ export { default, Envelope, EnvelopeStages } from './Base';
2
+ export { default as AmpEnvelope } from './AmpEnvelope';
3
+ export { default as FreqEnvelope, MonoFreqEnvelope } from './FreqEnvelope';
@@ -1,5 +1,6 @@
1
- import { Filter as InternalFilter, FilterRollOff } from "tone";
2
- import Module, { PolyModule } from "../core/Module";
1
+ import { default as Module, PolyModule } from '../core/Module';
2
+ import { Filter as InternalFilter, FilterRollOff } from 'tone';
3
+
3
4
  interface FilterInterface {
4
5
  cutoff: number;
5
6
  filterType: BiquadFilterType;
@@ -22,7 +23,7 @@ declare class MonoFilter extends Module<InternalFilter, FilterInterface> {
22
23
  set filterType(value: BiquadFilterType);
23
24
  get slope(): FilterRollOff;
24
25
  set slope(value: FilterRollOff);
25
- get frequency(): import("tone").Signal<"frequency">;
26
+ get frequency(): import('tone').Signal<"frequency">;
26
27
  get resonance(): number;
27
28
  set resonance(value: number);
28
29
  get envelopeAmount(): number;
@@ -1,7 +1,8 @@
1
- import { LFO as LFOInternal } from "tone";
2
- import Module, { PolyModule, Startable } from "../core/Module";
3
- import { TWave } from "./Oscillator";
4
- import Note from "../core/Note";
1
+ import { default as Note } from '../core/Note';
2
+ import { TWave } from './Oscillator';
3
+ import { default as Module, PolyModule, Startable } from '../core/Module';
4
+ import { LFO as LFOInternal } from 'tone';
5
+
5
6
  export interface LFOInterface {
6
7
  wave: TWave;
7
8
  frequency: number;
@@ -1,5 +1,6 @@
1
- import { Destination } from "tone";
2
- import Module from "../core/Module";
1
+ import { default as Module } from '../core/Module';
2
+ import { Destination } from 'tone';
3
+
3
4
  export interface MasterInterface {
4
5
  }
5
6
  export default class Master extends Module<typeof Destination, MasterInterface> {
@@ -1,5 +1,6 @@
1
- import Module, { DummnyInternalModule } from "../core/Module";
2
- import { MidiOutput } from "../core/IO";
1
+ import { MidiOutput } from '../core/IO';
2
+ import { default as Module, DummnyInternalModule } from '../core/Module';
3
+
3
4
  export interface MidiSelectorInterface {
4
5
  selectedId: string | null;
5
6
  }
@@ -1,6 +1,7 @@
1
- import { Multiply, Oscillator as Osc } from "tone";
2
- import Note from "../core/Note";
3
- import Module, { PolyModule, Startable } from "../core/Module";
1
+ import { default as Module, PolyModule, Startable } from '../core/Module';
2
+ import { default as Note } from '../core/Note';
3
+ import { Oscillator as Osc, Signal } from 'tone';
4
+
4
5
  export type TWave = "sine" | "triangle" | "square" | "sawtooth";
5
6
  export interface OscillatorInterface {
6
7
  noteName: string;
@@ -10,8 +11,9 @@ export interface OscillatorInterface {
10
11
  volume: number;
11
12
  range: number;
12
13
  }
13
- declare class MonoOscillator extends Module<Osc, OscillatorInterface> implements Startable {
14
+ export declare class MonoOscillator extends Module<Osc, OscillatorInterface> implements Startable {
14
15
  private _note;
16
+ private _fineMulti;
15
17
  private _fineSignal;
16
18
  constructor(params: {
17
19
  id?: string;
@@ -23,7 +25,7 @@ declare class MonoOscillator extends Module<Osc, OscillatorInterface> implements
23
25
  set note(value: Note | string);
24
26
  get noteName(): string;
25
27
  set noteName(value: string);
26
- get fineSingal(): Multiply<"number">;
28
+ get fineSingal(): Signal<"number">;
27
29
  get fine(): number;
28
30
  set fine(value: number);
29
31
  get coarse(): number;
@@ -52,4 +54,3 @@ export default class Oscillator extends PolyModule<MonoOscillator, OscillatorInt
52
54
  start(time: number): void;
53
55
  stop(time?: number): void;
54
56
  }
55
- export {};
@@ -1,5 +1,6 @@
1
- import { Reverb as InternalReverb } from "tone";
2
- import Effect, { EffectInterface } from "./Effect";
1
+ import { default as Effect, EffectInterface } from './Effect';
2
+ import { Reverb as InternalReverb } from 'tone';
3
+
3
4
  interface ReverbInterface extends EffectInterface {
4
5
  decay: number;
5
6
  preDelay: number;
@@ -1,6 +1,7 @@
1
- import Module, { DummnyInternalModule } from "../core/Module";
2
- import { INote } from "../core/Note";
3
- import { MidiOutput } from "../core/IO";
1
+ import { MidiOutput } from '../core/IO';
2
+ import { INote } from '../core/Note';
3
+ import { default as Module, DummnyInternalModule } from '../core/Module';
4
+
4
5
  export interface ISequence {
5
6
  active: boolean;
6
7
  time: string;
@@ -1,7 +1,8 @@
1
- import { MidiEvent } from "../core/midi";
2
- import Note from "../core/Note";
3
- import Module, { DummnyInternalModule } from "../core/Module";
4
- import { MidiOutput } from "../core/IO";
1
+ import { MidiOutput } from '../core/IO';
2
+ import { default as Module, DummnyInternalModule } from '../core/Module';
3
+ import { default as Note } from '../core/Note';
4
+ import { MidiEvent } from '../core/midi';
5
+
5
6
  export interface VirtualMidiInterface {
6
7
  activeNotes: string[];
7
8
  }
@@ -24,8 +25,8 @@ export default class VirtualMidi extends Module<DummnyInternalModule, VirtualMid
24
25
  name: string;
25
26
  type: string;
26
27
  props: VirtualMidiInterface;
27
- inputs: import("../core/IO").IIOSerialize[];
28
- outputs: import("../core/IO").IIOSerialize[];
28
+ inputs: import('../core/IO').IIOSerialize[];
29
+ outputs: import('../core/IO').IIOSerialize[];
29
30
  };
30
31
  private registerInputs;
31
32
  private registerOutputs;
@@ -1,6 +1,7 @@
1
- import { MidiEvent } from "../core/midi";
2
- import Module, { PolyModule, DummnyInternalModule } from "../core/Module";
3
- import { MidiOutput } from "../core/IO";
1
+ import { MidiOutput } from '../core/IO';
2
+ import { default as Module, PolyModule, DummnyInternalModule } from '../core/Module';
3
+ import { MidiEvent } from '../core/midi';
4
+
4
5
  export interface VoiceSchedulerInterface {
5
6
  polyNumber: number;
6
7
  }
@@ -22,8 +23,8 @@ export default class VoiceScheduler extends PolyModule<Voice, VoiceSchedulerInte
22
23
  id: string;
23
24
  type: string;
24
25
  numberOfVoices: number;
25
- inputs: import("../core/IO").IIOSerialize[];
26
- outputs: import("../core/IO").IIOSerialize[];
26
+ inputs: import('../core/IO').IIOSerialize[];
27
+ outputs: import('../core/IO').IIOSerialize[];
27
28
  name: string;
28
29
  };
29
30
  private findFreeVoice;
@@ -1,6 +1,7 @@
1
- import { Volume as Vol } from "tone";
2
- import Module, { PolyModule } from "../core/Module";
3
- import Note from "../core/Note";
1
+ import { default as Note } from '../core/Note';
2
+ import { default as Module, PolyModule } from '../core/Module';
3
+ import { Volume as Vol } from 'tone';
4
+
4
5
  export interface VolumeInterface {
5
6
  volume: number;
6
7
  }
@@ -0,0 +1,18 @@
1
+ import { AudioModule } from '../core/Module';
2
+
3
+ export { default as Master } from './Master';
4
+ export { default as Filter } from './Filter';
5
+ export { default as Oscillator, MonoOscillator } from './Oscillator';
6
+ export { default as VirtualMidi } from './VirtualMidi';
7
+ export { default as VoiceScheduler } from './VoiceScheduler';
8
+ export { default as Sequencer } from './Sequencer';
9
+ export type { ISequence } from './Sequencer';
10
+ export { Envelope, AmpEnvelope, FreqEnvelope, EnvelopeStages, } from './Envelope';
11
+ export interface ICreateModule {
12
+ id?: string;
13
+ name: string;
14
+ numberOfVoices?: number;
15
+ type: string;
16
+ props: any;
17
+ }
18
+ export declare function createModule(params: ICreateModule): AudioModule;
@@ -1,4 +1,5 @@
1
- import { Optional } from "./types";
1
+ import { Optional } from './types';
2
+
2
3
  export interface RouteProps {
3
4
  sourceId: string;
4
5
  sourceIOId: string;
@@ -11,8 +12,8 @@ export interface RouteInterface extends RouteProps {
11
12
  export declare function createRoute(props: Optional<RouteInterface, "id">): {
12
13
  id: string;
13
14
  sourceId: string;
14
- destinationId: string;
15
15
  sourceIOId: string;
16
+ destinationId: string;
16
17
  destinationIOId: string;
17
18
  };
18
19
  export declare function applyRoutes(routes: RouteInterface[]): void;
@@ -0,0 +1,22 @@
1
+ import { default as Module, PolyModule } from '../src/core/Module';
2
+
3
+ interface IMonoMocking {
4
+ }
5
+ export declare class MockInternalModule {
6
+ connect(): void;
7
+ disconnect(): void;
8
+ dispose(): void;
9
+ }
10
+ export declare class MonoMocking extends Module<MockInternalModule, IMonoMocking> {
11
+ constructor(params: {
12
+ name: string;
13
+ props: Partial<IMonoMocking>;
14
+ });
15
+ }
16
+ export declare class PolyMocking extends PolyModule<MonoMocking, IMonoMocking> {
17
+ constructor(params: {
18
+ name: string;
19
+ props: Partial<IMonoMocking>;
20
+ });
21
+ }
22
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};