UNPKG

tone

Version:

A Web Audio framework for making interactive music in the browser.

1 lines 5.95 MB
{"id":0,"name":"Tone.js","kind":0,"flags":{},"children":[{"id":7354,"name":"AMOscillator","kind":128,"kindString":"Class","flags":{"isExported":true},"comment":{"shortText":"An amplitude modulated oscillator node. It is implemented with\ntwo oscillators, one which modulators the other's amplitude\nthrough a gain node.\n```\n +-------------+ +----------+\n | Carrier Osc +>------> GainNode |\n +-------------+ | +--->Output\n +---> gain |\n+---------------+ | +----------+\n| Modulator Osc +>---+\n+---------------+\n```","tags":[{"tag":"example","text":"\nreturn Tone.Offline(() => {\n\tconst amOsc = new Tone.AMOscillator(30, \"sine\", \"square\").toDestination().start();\n}, 0.2, 1);"}]},"children":[{"id":7363,"name":"constructor","kind":512,"kindString":"Constructor","flags":{"isExported":true},"comment":{},"signatures":[{"id":7364,"name":"new AMOscillator","kind":16384,"kindString":"Constructor signature","flags":{"isExported":true},"comment":{},"parameters":[{"id":7365,"name":"frequency","kind":32768,"kindString":"Parameter","flags":{"isExported":true,"isOptional":true},"comment":{"shortText":"The starting frequency of the oscillator."},"type":{"type":"reference","id":32,"name":"Frequency"}},{"id":7366,"name":"type","kind":32768,"kindString":"Parameter","flags":{"isExported":true,"isOptional":true},"comment":{"shortText":"The type of the carrier oscillator."},"type":{"type":"reference","id":6546,"name":"ToneOscillatorType"}},{"id":7367,"name":"modulationType","kind":32768,"kindString":"Parameter","flags":{"isExported":true,"isOptional":true},"comment":{"shortText":"The type of the modulator oscillator.\n"},"type":{"type":"reference","id":6546,"name":"ToneOscillatorType"}}],"type":{"type":"reference","id":7354,"name":"AMOscillator"},"overwrites":{"type":"reference","id":5578,"name":"Source.__constructor"}},{"id":7368,"name":"new AMOscillator","kind":16384,"kindString":"Constructor signature","flags":{"isExported":true},"comment":{},"parameters":[{"id":7369,"name":"options","kind":32768,"kindString":"Parameter","flags":{"isExported":true,"isOptional":true},"type":{"type":"reference","typeArguments":[{"type":"reference","id":6550,"name":"AMConstructorOptions"}],"name":"Partial"}}],"type":{"type":"reference","id":7354,"name":"AMOscillator"},"overwrites":{"type":"reference","id":5578,"name":"Source.__constructor"}}],"sources":[{"fileName":"Tone/source/oscillator/AMOscillator.ts","line":82,"character":4},{"fileName":"Tone/source/oscillator/AMOscillator.ts","line":89,"character":100},{"fileName":"Tone/source/oscillator/AMOscillator.ts","line":90,"character":54}],"overwrites":{"type":"reference","id":5578,"name":"Source.__constructor"}},{"id":7480,"name":"context","kind":1024,"kindString":"Property","flags":{"isExported":true,"isReadonly":true},"comment":{"shortText":"The context belonging to the node."},"sources":[{"fileName":"Tone/core/context/ToneWithContext.ts","line":27,"character":17}],"type":{"type":"reference","id":3044,"name":"BaseContext"},"inheritedFrom":{"type":"reference","id":962,"name":"ToneWithContext.context"}},{"id":7508,"name":"debug","kind":1024,"kindString":"Property","flags":{"isExported":true},"comment":{"shortText":"Set this debug flag to log all events that happen in this class."},"sources":[{"fileName":"Tone/core/Tone.ts","line":49,"character":6}],"type":{"type":"intrinsic","name":"boolean"},"defaultValue":"false","inheritedFrom":{"type":"reference","id":53,"name":"Tone.debug"}},{"id":7358,"name":"detune","kind":1024,"kindString":"Property","flags":{"isExported":true,"isReadonly":true},"sources":[{"fileName":"Tone/source/oscillator/AMOscillator.ts","line":48,"character":16}],"type":{"type":"reference","id":1503,"typeArguments":[{"type":"stringLiteral","value":"cents"}],"name":"Signal"},"implementationOf":{"type":"reference","id":6173,"name":"ToneOscillatorInterface.detune"}},{"id":7357,"name":"frequency","kind":1024,"kindString":"Property","flags":{"isExported":true,"isReadonly":true},"sources":[{"fileName":"Tone/source/oscillator/AMOscillator.ts","line":47,"character":19}],"type":{"type":"reference","id":1503,"typeArguments":[{"type":"stringLiteral","value":"frequency"}],"name":"Signal"},"implementationOf":{"type":"reference","id":6172,"name":"ToneOscillatorInterface.frequency"}},{"id":7361,"name":"harmonicity","kind":1024,"kindString":"Property","flags":{"isExported":true,"isReadonly":true},"comment":{"shortText":"Harmonicity is the frequency ratio between the carrier and the modulator oscillators.\nA harmonicity of 1 gives both oscillators the same frequency.\nHarmonicity = 2 means a change of an octave.","tags":[{"tag":"example","text":"\nconst amOsc = new Tone.AMOscillator(\"D2\").toDestination().start();\nTone.Transport.scheduleRepeat(time => {\n\tamOsc.harmonicity.setValueAtTime(1, time);\n\tamOsc.harmonicity.setValueAtTime(0.5, time + 0.5);\n\tamOsc.harmonicity.setValueAtTime(1.5, time + 1);\n\tamOsc.harmonicity.setValueAtTime(1, time + 2);\n\tamOsc.harmonicity.linearRampToValueAtTime(2, time + 4);\n}, 4);\nTone.Transport.start();\n"}]},"sources":[{"fileName":"Tone/source/oscillator/AMOscillator.ts","line":75,"character":21}],"type":{"type":"reference","id":1503,"typeArguments":[{"type":"stringLiteral","value":"positive"}],"name":"Signal"}},{"id":7411,"name":"input","kind":1024,"kindString":"Property","flags":{"isExported":true},"comment":{"shortText":"Sources have no inputs"},"sources":[{"fileName":"Tone/source/Source.ts","line":54,"character":6}],"type":{"type":"intrinsic","name":"undefined"},"defaultValue":"undefined","overwrites":{"type":"reference","id":1007,"name":"ToneAudioNode.input"},"inheritedFrom":{"type":"reference","id":5559,"name":"Source.input"}},{"id":7355,"name":"name","kind":1024,"kindString":"Property","flags":{"isExported":true,"isReadonly":true},"sources":[{"fileName":"Tone/source/oscillator/AMOscillator.ts","line":40,"character":14}],"type":{"type":"intrinsic","name":"string"},"defaultValue":"\"AMOscillator\"","overwrites":{"type":"reference","id":1006,"name":"ToneAudioNode.name"}},{"id":7413,"name":"onstop","kind":1024,"kindString":"Property","flags":{"isExported":true},"comment":{"shortText":"The callback to invoke when the source is stopped."},"sources":[{"fileName":"Tone/source/Source.ts","line":67,"character":7}],"type":{"type":"reference","id":5698,"name":"onStopCallback"},"inheritedFrom":{"type":"reference","id":5561,"name":"Source.onstop"}},{"id":7410,"name":"output","kind":1024,"kindString":"Property","flags":{"isExported":true},"comment":{"shortText":"The output note"},"sources":[{"fileName":"Tone/source/Source.ts","line":49,"character":7}],"type":{"type":"reference","id":1102,"name":"OutputNode"},"overwrites":{"type":"reference","id":1008,"name":"ToneAudioNode.output"},"inheritedFrom":{"type":"reference","id":5558,"name":"Source.output"}},{"id":7412,"name":"volume","kind":1024,"kindString":"Property","flags":{"isExported":true},"comment":{"shortText":"The volume of the output in decibels.","tags":[{"tag":"example","text":"\nconst source = new Tone.PWMOscillator().toDestination();\nsource.volume.value = -6;\n"}]},"sources":[{"fileName":"Tone/source/Source.ts","line":62,"character":7}],"type":{"type":"reference","id":826,"typeArguments":[{"type":"stringLiteral","value":"decibels"}],"name":"Param"},"inheritedFrom":{"type":"reference","id":5560,"name":"Source.volume"}},{"id":7507,"name":"version","kind":1024,"kindString":"Property","flags":{"isStatic":true,"isExported":true},"comment":{"shortText":"The version number semver"},"sources":[{"fileName":"Tone/core/Tone.ts","line":28,"character":15}],"type":{"type":"intrinsic","name":"string"},"defaultValue":"version","inheritedFrom":{"type":"reference","id":49,"name":"Tone.version"}},{"id":7385,"name":"baseType","kind":262144,"kindString":"Accessor","flags":{"isExported":true},"getSignature":[{"id":7386,"name":"__get","kind":524288,"kindString":"Get signature","flags":{"isExported":true},"type":{"type":"reference","name":"OscillatorType"}}],"setSignature":[{"id":7387,"name":"__set","kind":1048576,"kindString":"Set signature","flags":{"isExported":true},"parameters":[{"id":7388,"name":"baseType","kind":32768,"kindString":"Parameter","flags":{"isExported":true},"type":{"type":"reference","name":"OscillatorType"}}],"type":{"type":"intrinsic","name":"void"}}],"sources":[{"fileName":"Tone/source/oscillator/AMOscillator.ts","line":165,"character":13},{"fileName":"Tone/source/oscillator/AMOscillator.ts","line":168,"character":13}],"implementationOf":{"type":"reference","id":6170,"name":"ToneOscillatorInterface.baseType"}},{"id":7488,"name":"blockTime","kind":262144,"kindString":"Accessor","flags":{"isExported":true},"comment":{"shortText":"The number of seconds of 1 processing block (128 samples)","tags":[{"tag":"example","text":"\nconsole.log(Tone.Destination.blockTime);\n"}]},"getSignature":[{"id":7489,"name":"__get","kind":524288,"kindString":"Get signature","flags":{"isExported":true},"comment":{"shortText":"The number of seconds of 1 processing block (128 samples)","tags":[{"tag":"example","text":"\nconsole.log(Tone.Destination.blockTime);\n"}]},"type":{"type":"reference","id":21,"name":"Seconds"},"inheritedFrom":{"type":"reference","id":970,"name":"ToneWithContext.blockTime"}}],"sources":[{"fileName":"Tone/core/context/ToneWithContext.ts","line":93,"character":14}],"inheritedFrom":{"type":"reference","id":970,"name":"ToneWithContext.blockTime"}},{"id":7448,"name":"channelCount","kind":262144,"kindString":"Accessor","flags":{"isExported":true},"comment":{"shortText":"channelCount is the number of channels used when up-mixing and down-mixing\nconnections to any inputs to the node. The default value is 2 except for\nspecific nodes where its value is specially determined."},"getSignature":[{"id":7449,"name":"__get","kind":524288,"kindString":"Get signature","flags":{"isExported":true},"comment":{"shortText":"channelCount is the number of channels used when up-mixing and down-mixing\nconnections to any inputs to the node. The default value is 2 except for\nspecific nodes where its value is specially determined."},"type":{"type":"intrinsic","name":"number"},"inheritedFrom":{"type":"reference","id":1024,"name":"ToneAudioNode.channelCount"}}],"setSignature":[{"id":7450,"name":"__set","kind":1048576,"kindString":"Set signature","flags":{"isExported":true},"comment":{"shortText":"channelCount is the number of channels used when up-mixing and down-mixing\nconnections to any inputs to the node. The default value is 2 except for\nspecific nodes where its value is specially determined."},"parameters":[{"id":7451,"name":"channelCount","kind":32768,"kindString":"Parameter","flags":{"isExported":true},"type":{"type":"intrinsic","name":"number"}}],"type":{"type":"intrinsic","name":"void"},"inheritedFrom":{"type":"reference","id":1024,"name":"ToneAudioNode.channelCount"}}],"sources":[{"fileName":"Tone/core/context/ToneAudioNode.ts","line":146,"character":17},{"fileName":"Tone/core/context/ToneAudioNode.ts","line":149,"character":17}],"inheritedFrom":{"type":"reference","id":1024,"name":"ToneAudioNode.channelCount"}},{"id":7452,"name":"channelCountMode","kind":262144,"kindString":"Accessor","flags":{"isExported":true},"comment":{"shortText":"channelCountMode determines how channels will be counted when up-mixing and\ndown-mixing connections to any inputs to the node.\nThe default value is \"max\". This attribute has no effect for nodes with no inputs.\n* \"max\" - computedNumberOfChannels is the maximum of the number of channels of all connections to an input. In this mode channelCount is ignored.\n* \"clamped-max\" - computedNumberOfChannels is determined as for \"max\" and then clamped to a maximum value of the given channelCount.\n* \"explicit\" - computedNumberOfChannels is the exact value as specified by the channelCount."},"getSignature":[{"id":7453,"name":"__get","kind":524288,"kindString":"Get signature","flags":{"isExported":true},"comment":{"shortText":"channelCountMode determines how channels will be counted when up-mixing and\ndown-mixing connections to any inputs to the node.\nThe default value is \"max\". This attribute has no effect for nodes with no inputs.\n* \"max\" - computedNumberOfChannels is the maximum of the number of channels of all connections to an input. In this mode channelCount is ignored.\n* \"clamped-max\" - computedNumberOfChannels is determined as for \"max\" and then clamped to a maximum value of the given channelCount.\n* \"explicit\" - computedNumberOfChannels is the exact value as specified by the channelCount."},"type":{"type":"reference","name":"ChannelCountMode"},"inheritedFrom":{"type":"reference","id":1028,"name":"ToneAudioNode.channelCountMode"}}],"setSignature":[{"id":7454,"name":"__set","kind":1048576,"kindString":"Set signature","flags":{"isExported":true},"comment":{"shortText":"channelCountMode determines how channels will be counted when up-mixing and\ndown-mixing connections to any inputs to the node.\nThe default value is \"max\". This attribute has no effect for nodes with no inputs.\n* \"max\" - computedNumberOfChannels is the maximum of the number of channels of all connections to an input. In this mode channelCount is ignored.\n* \"clamped-max\" - computedNumberOfChannels is determined as for \"max\" and then clamped to a maximum value of the given channelCount.\n* \"explicit\" - computedNumberOfChannels is the exact value as specified by the channelCount."},"parameters":[{"id":7455,"name":"channelCountMode","kind":32768,"kindString":"Parameter","flags":{"isExported":true},"type":{"type":"union","types":[{"type":"stringLiteral","value":"clamped-max"},{"type":"stringLiteral","value":"explicit"},{"type":"stringLiteral","value":"max"}]}}],"type":{"type":"intrinsic","name":"void"},"inheritedFrom":{"type":"reference","id":1028,"name":"ToneAudioNode.channelCountMode"}}],"sources":[{"fileName":"Tone/core/context/ToneAudioNode.ts","line":163,"character":21},{"fileName":"Tone/core/context/ToneAudioNode.ts","line":166,"character":21}],"inheritedFrom":{"type":"reference","id":1028,"name":"ToneAudioNode.channelCountMode"}},{"id":7456,"name":"channelInterpretation","kind":262144,"kindString":"Accessor","flags":{"isExported":true},"comment":{"shortText":"channelInterpretation determines how individual channels will be treated\nwhen up-mixing and down-mixing connections to any inputs to the node.\nThe default value is \"speakers\"."},"getSignature":[{"id":7457,"name":"__get","kind":524288,"kindString":"Get signature","flags":{"isExported":true},"comment":{"shortText":"channelInterpretation determines how individual channels will be treated\nwhen up-mixing and down-mixing connections to any inputs to the node.\nThe default value is \"speakers\"."},"type":{"type":"reference","name":"ChannelInterpretation"},"inheritedFrom":{"type":"reference","id":1032,"name":"ToneAudioNode.channelInterpretation"}}],"setSignature":[{"id":7458,"name":"__set","kind":1048576,"kindString":"Set signature","flags":{"isExported":true},"comment":{"shortText":"channelInterpretation determines how individual channels will be treated\nwhen up-mixing and down-mixing connections to any inputs to the node.\nThe default value is \"speakers\"."},"parameters":[{"id":7459,"name":"channelInterpretation","kind":32768,"kindString":"Parameter","flags":{"isExported":true},"type":{"type":"union","types":[{"type":"stringLiteral","value":"discrete"},{"type":"stringLiteral","value":"speakers"}]}}],"type":{"type":"intrinsic","name":"void"},"inheritedFrom":{"type":"reference","id":1032,"name":"ToneAudioNode.channelInterpretation"}}],"sources":[{"fileName":"Tone/core/context/ToneAudioNode.ts","line":177,"character":26},{"fileName":"Tone/core/context/ToneAudioNode.ts","line":180,"character":26}],"inheritedFrom":{"type":"reference","id":1032,"name":"ToneAudioNode.channelInterpretation"}},{"id":7512,"name":"disposed","kind":262144,"kindString":"Accessor","flags":{"isExported":true},"comment":{"shortText":"Indicates if the instance was disposed. 'Disposing' an\ninstance means that all of the Web Audio nodes that were\ncreated for the instance are disconnected and freed for garbage collection."},"getSignature":[{"id":7513,"name":"__get","kind":524288,"kindString":"Get signature","flags":{"isExported":true},"comment":{"shortText":"Indicates if the instance was disposed. 'Disposing' an\ninstance means that all of the Web Audio nodes that were\ncreated for the instance are disconnected and freed for garbage collection."},"type":{"type":"intrinsic","name":"boolean"},"inheritedFrom":{"type":"reference","id":60,"name":"Tone.disposed"}}],"sources":[{"fileName":"Tone/core/Tone.ts","line":93,"character":13}],"inheritedFrom":{"type":"reference","id":60,"name":"Tone.disposed"}},{"id":7393,"name":"modulationType","kind":262144,"kindString":"Accessor","flags":{"isExported":true},"comment":{"shortText":"The type of the modulator oscillator"},"getSignature":[{"id":7394,"name":"__get","kind":524288,"kindString":"Get signature","flags":{"isExported":true},"comment":{"shortText":"The type of the modulator oscillator"},"type":{"type":"reference","id":6546,"name":"ToneOscillatorType"}}],"setSignature":[{"id":7395,"name":"__set","kind":1048576,"kindString":"Set signature","flags":{"isExported":true},"comment":{"shortText":"The type of the modulator oscillator"},"parameters":[{"id":7396,"name":"type","kind":32768,"kindString":"Parameter","flags":{"isExported":true},"type":{"type":"reference","id":6546,"name":"ToneOscillatorType"}}],"type":{"type":"intrinsic","name":"void"}}],"sources":[{"fileName":"Tone/source/oscillator/AMOscillator.ts","line":182,"character":19},{"fileName":"Tone/source/oscillator/AMOscillator.ts","line":185,"character":19}]},{"id":7422,"name":"mute","kind":262144,"kindString":"Accessor","flags":{"isExported":true},"comment":{"shortText":"Mute the output.","tags":[{"tag":"example","text":"\nconst osc = new Tone.Oscillator().toDestination().start();\n// mute the output\nosc.mute = true;\n"}]},"getSignature":[{"id":7423,"name":"__get","kind":524288,"kindString":"Get signature","flags":{"isExported":true},"comment":{"shortText":"Mute the output.","tags":[{"tag":"example","text":"\nconst osc = new Tone.Oscillator().toDestination().start();\n// mute the output\nosc.mute = true;\n"}]},"type":{"type":"intrinsic","name":"boolean"},"inheritedFrom":{"type":"reference","id":5585,"name":"Source.mute"}}],"setSignature":[{"id":7424,"name":"__set","kind":1048576,"kindString":"Set signature","flags":{"isExported":true},"comment":{"shortText":"Mute the output.","tags":[{"tag":"example","text":"\nconst osc = new Tone.Oscillator().toDestination().start();\n// mute the output\nosc.mute = true;\n"}]},"parameters":[{"id":7425,"name":"mute","kind":32768,"kindString":"Parameter","flags":{"isExported":true},"type":{"type":"intrinsic","name":"boolean"}}],"type":{"type":"intrinsic","name":"void"},"inheritedFrom":{"type":"reference","id":5585,"name":"Source.mute"}}],"sources":[{"fileName":"Tone/source/Source.ts","line":148,"character":9},{"fileName":"Tone/source/Source.ts","line":151,"character":9}],"inheritedFrom":{"type":"reference","id":5585,"name":"Source.mute"}},{"id":7443,"name":"numberOfInputs","kind":262144,"kindString":"Accessor","flags":{"isExported":true},"comment":{"shortText":"The number of inputs feeding into the AudioNode.\nFor source nodes, this will be 0.","tags":[{"tag":"example","text":"\nconst node = new Tone.Gain();\nconsole.log(node.numberOfInputs);\n"}]},"getSignature":[{"id":7444,"name":"__get","kind":524288,"kindString":"Get signature","flags":{"isExported":true},"comment":{"shortText":"The number of inputs feeding into the AudioNode.\nFor source nodes, this will be 0.","tags":[{"tag":"example","text":"\nconst node = new Tone.Gain();\nconsole.log(node.numberOfInputs);\n"}]},"type":{"type":"intrinsic","name":"number"},"inheritedFrom":{"type":"reference","id":1009,"name":"ToneAudioNode.numberOfInputs"}}],"sources":[{"fileName":"Tone/core/context/ToneAudioNode.ts","line":51,"character":19}],"inheritedFrom":{"type":"reference","id":1009,"name":"ToneAudioNode.numberOfInputs"}},{"id":7445,"name":"numberOfOutputs","kind":262144,"kindString":"Accessor","flags":{"isExported":true},"comment":{"shortText":"The number of outputs of the AudioNode.","tags":[{"tag":"example","text":"\nconst node = new Tone.Gain();\nconsole.log(node.numberOfOutputs);\n"}]},"getSignature":[{"id":7446,"name":"__get","kind":524288,"kindString":"Get signature","flags":{"isExported":true},"comment":{"shortText":"The number of outputs of the AudioNode.","tags":[{"tag":"example","text":"\nconst node = new Tone.Gain();\nconsole.log(node.numberOfOutputs);\n"}]},"type":{"type":"intrinsic","name":"number"},"inheritedFrom":{"type":"reference","id":1011,"name":"ToneAudioNode.numberOfOutputs"}}],"sources":[{"fileName":"Tone/core/context/ToneAudioNode.ts","line":69,"character":20}],"inheritedFrom":{"type":"reference","id":1011,"name":"ToneAudioNode.numberOfOutputs"}},{"id":7389,"name":"partialCount","kind":262144,"kindString":"Accessor","flags":{"isExported":true},"getSignature":[{"id":7390,"name":"__get","kind":524288,"kindString":"Get signature","flags":{"isExported":true},"type":{"type":"intrinsic","name":"number"}}],"setSignature":[{"id":7391,"name":"__set","kind":1048576,"kindString":"Set signature","flags":{"isExported":true},"parameters":[{"id":7392,"name":"partialCount","kind":32768,"kindString":"Parameter","flags":{"isExported":true},"type":{"type":"intrinsic","name":"number"}}],"type":{"type":"intrinsic","name":"void"}}],"sources":[{"fileName":"Tone/source/oscillator/AMOscillator.ts","line":172,"character":17},{"fileName":"Tone/source/oscillator/AMOscillator.ts","line":175,"character":17}],"implementationOf":{"type":"reference","id":6176,"name":"ToneOscillatorInterface.partialCount"}},{"id":7401,"name":"partials","kind":262144,"kindString":"Accessor","flags":{"isExported":true},"getSignature":[{"id":7402,"name":"__get","kind":524288,"kindString":"Get signature","flags":{"isExported":true},"type":{"type":"array","elementType":{"type":"intrinsic","name":"number"}}}],"setSignature":[{"id":7403,"name":"__set","kind":1048576,"kindString":"Set signature","flags":{"isExported":true},"parameters":[{"id":7404,"name":"partials","kind":32768,"kindString":"Parameter","flags":{"isExported":true},"type":{"type":"array","elementType":{"type":"intrinsic","name":"number"}}}],"type":{"type":"intrinsic","name":"void"}}],"sources":[{"fileName":"Tone/source/oscillator/AMOscillator.ts","line":197,"character":13},{"fileName":"Tone/source/oscillator/AMOscillator.ts","line":200,"character":13}],"implementationOf":{"type":"reference","id":6175,"name":"ToneOscillatorInterface.partials"}},{"id":7397,"name":"phase","kind":262144,"kindString":"Accessor","flags":{"isExported":true},"getSignature":[{"id":7398,"name":"__get","kind":524288,"kindString":"Get signature","flags":{"isExported":true},"type":{"type":"reference","id":37,"name":"Degrees"}}],"setSignature":[{"id":7399,"name":"__set","kind":1048576,"kindString":"Set signature","flags":{"isExported":true},"parameters":[{"id":7400,"name":"phase","kind":32768,"kindString":"Parameter","flags":{"isExported":true},"type":{"type":"reference","id":37,"name":"Degrees"}}],"type":{"type":"intrinsic","name":"void"}}],"sources":[{"fileName":"Tone/source/oscillator/AMOscillator.ts","line":189,"character":10},{"fileName":"Tone/source/oscillator/AMOscillator.ts","line":192,"character":10}],"implementationOf":{"type":"reference","id":6174,"name":"ToneOscillatorInterface.phase"}},{"id":7486,"name":"sampleTime","kind":262144,"kindString":"Accessor","flags":{"isExported":true},"comment":{"shortText":"The duration in seconds of one sample.","tags":[{"tag":"example","text":"\nconsole.log(Tone.Transport.sampleTime);\n"}]},"getSignature":[{"id":7487,"name":"__get","kind":524288,"kindString":"Get signature","flags":{"isExported":true},"comment":{"shortText":"The duration in seconds of one sample.","tags":[{"tag":"example","text":"\nconsole.log(Tone.Transport.sampleTime);\n"}]},"type":{"type":"reference","id":21,"name":"Seconds"},"inheritedFrom":{"type":"reference","id":968,"name":"ToneWithContext.sampleTime"}}],"sources":[{"fileName":"Tone/core/context/ToneWithContext.ts","line":84,"character":15}],"inheritedFrom":{"type":"reference","id":968,"name":"ToneWithContext.sampleTime"}},{"id":7420,"name":"state","kind":262144,"kindString":"Accessor","flags":{"isExported":true},"comment":{"shortText":"Returns the playback state of the source, either \"started\" or \"stopped\".","tags":[{"tag":"example","text":"\nconst player = new Tone.Player(\"https://tonejs.github.io/audio/berklee/ahntone_c3.mp3\", () => {\n\tplayer.start();\n\tconsole.log(player.state);\n}).toDestination();\n"}]},"getSignature":[{"id":7421,"name":"__get","kind":524288,"kindString":"Get signature","flags":{"isExported":true},"comment":{"shortText":"Returns the playback state of the source, either \"started\" or \"stopped\".","tags":[{"tag":"example","text":"\nconst player = new Tone.Player(\"https://tonejs.github.io/audio/berklee/ahntone_c3.mp3\", () => {\n\tplayer.start();\n\tconsole.log(player.state);\n}).toDestination();\n"}]},"type":{"type":"reference","id":705,"name":"BasicPlaybackState"},"inheritedFrom":{"type":"reference","id":5583,"name":"Source.state"}}],"sources":[{"fileName":"Tone/source/Source.ts","line":129,"character":10}],"inheritedFrom":{"type":"reference","id":5583,"name":"Source.state"}},{"id":7381,"name":"type","kind":262144,"kindString":"Accessor","flags":{"isExported":true},"comment":{"shortText":"The type of the carrier oscillator"},"getSignature":[{"id":7382,"name":"__get","kind":524288,"kindString":"Get signature","flags":{"isExported":true},"comment":{"shortText":"The type of the carrier oscillator"},"type":{"type":"reference","id":6546,"name":"ToneOscillatorType"}}],"setSignature":[{"id":7383,"name":"__set","kind":1048576,"kindString":"Set signature","flags":{"isExported":true},"comment":{"shortText":"The type of the carrier oscillator"},"parameters":[{"id":7384,"name":"type","kind":32768,"kindString":"Parameter","flags":{"isExported":true},"type":{"type":"reference","id":6546,"name":"ToneOscillatorType"}}],"type":{"type":"intrinsic","name":"void"}}],"sources":[{"fileName":"Tone/source/oscillator/AMOscillator.ts","line":158,"character":9},{"fileName":"Tone/source/oscillator/AMOscillator.ts","line":161,"character":9}],"implementationOf":{"type":"reference","id":6171,"name":"ToneOscillatorInterface.type"}},{"id":7405,"name":"asArray","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":7406,"name":"asArray","kind":4096,"kindString":"Call signature","flags":{"isExported":true},"parameters":[{"id":7407,"name":"length","kind":32768,"kindString":"Parameter","flags":{"isExported":true},"type":{"type":"intrinsic","name":"number"},"defaultValue":"1024"}],"type":{"type":"reference","typeArguments":[{"type":"reference","name":"Float32Array"}],"name":"Promise"},"implementationOf":{"type":"reference","id":6178,"name":"ToneOscillatorInterface.asArray"}}],"sources":[{"fileName":"Tone/source/oscillator/AMOscillator.ts","line":204,"character":14}],"implementationOf":{"type":"reference","id":6177,"name":"ToneOscillatorInterface.asArray"}},{"id":7474,"name":"chain","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":7475,"name":"chain","kind":4096,"kindString":"Call signature","flags":{"isExported":true},"comment":{"shortText":"Connect the output of this node to the rest of the nodes in series.","tags":[{"tag":"example","text":"\nconst player = new Tone.Player(\"https://tonejs.github.io/audio/drum-samples/handdrum-loop.mp3\");\nplayer.autostart = true;\nconst filter = new Tone.AutoFilter(4).start();\nconst distortion = new Tone.Distortion(0.5);\n// connect the player to the filter, distortion and then to the master output\nplayer.chain(filter, distortion, Tone.Destination);\n"}]},"parameters":[{"id":7476,"name":"nodes","kind":32768,"kindString":"Parameter","flags":{"isExported":true,"isRest":true},"type":{"type":"array","elementType":{"type":"reference","id":1101,"name":"InputNode"}}}],"type":{"type":"intrinsic","name":"this"},"inheritedFrom":{"type":"reference","id":1050,"name":"ToneAudioNode.chain"}}],"sources":[{"fileName":"Tone/core/context/ToneAudioNode.ts","line":240,"character":6}],"inheritedFrom":{"type":"reference","id":1050,"name":"ToneAudioNode.chain"}},{"id":7460,"name":"connect","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":7461,"name":"connect","kind":4096,"kindString":"Call signature","flags":{"isExported":true},"comment":{"shortText":"connect the output of a ToneAudioNode to an AudioParam, AudioNode, or ToneAudioNode"},"parameters":[{"id":7462,"name":"destination","kind":32768,"kindString":"Parameter","flags":{"isExported":true},"comment":{"text":"The output to connect to"},"type":{"type":"reference","id":1101,"name":"InputNode"}},{"id":7463,"name":"outputNum","kind":32768,"kindString":"Parameter","flags":{"isExported":true},"comment":{"text":"The output to connect from"},"type":{"type":"intrinsic","name":"number"},"defaultValue":"0"},{"id":7464,"name":"inputNum","kind":32768,"kindString":"Parameter","flags":{"isExported":true},"comment":{"text":"The input to connect to\n"},"type":{"type":"intrinsic","name":"number"},"defaultValue":"0"}],"type":{"type":"intrinsic","name":"this"},"inheritedFrom":{"type":"reference","id":1036,"name":"ToneAudioNode.connect"}}],"sources":[{"fileName":"Tone/core/context/ToneAudioNode.ts","line":196,"character":8}],"inheritedFrom":{"type":"reference","id":1036,"name":"ToneAudioNode.connect"}},{"id":7469,"name":"disconnect","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":7470,"name":"disconnect","kind":4096,"kindString":"Call signature","flags":{"isExported":true},"comment":{"shortText":"disconnect the output"},"parameters":[{"id":7471,"name":"destination","kind":32768,"kindString":"Parameter","flags":{"isExported":true,"isOptional":true},"type":{"type":"reference","id":1101,"name":"InputNode"}},{"id":7472,"name":"outputNum","kind":32768,"kindString":"Parameter","flags":{"isExported":true},"type":{"type":"intrinsic","name":"number"},"defaultValue":"0"},{"id":7473,"name":"inputNum","kind":32768,"kindString":"Parameter","flags":{"isExported":true},"type":{"type":"intrinsic","name":"number"},"defaultValue":"0"}],"type":{"type":"intrinsic","name":"this"},"inheritedFrom":{"type":"reference","id":1045,"name":"ToneAudioNode.disconnect"}}],"sources":[{"fileName":"Tone/core/context/ToneAudioNode.ts","line":225,"character":11}],"inheritedFrom":{"type":"reference","id":1045,"name":"ToneAudioNode.disconnect"}},{"id":7408,"name":"dispose","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":7409,"name":"dispose","kind":4096,"kindString":"Call signature","flags":{"isExported":true},"comment":{"shortText":"Clean up."},"type":{"type":"intrinsic","name":"this"},"overwrites":{"type":"reference","id":5622,"name":"Source.dispose"}}],"sources":[{"fileName":"Tone/source/oscillator/AMOscillator.ts","line":211,"character":8}],"overwrites":{"type":"reference","id":5622,"name":"Source.dispose"}},{"id":7477,"name":"fan","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":7478,"name":"fan","kind":4096,"kindString":"Call signature","flags":{"isExported":true},"comment":{"shortText":"connect the output of this node to the rest of the nodes in parallel.","tags":[{"tag":"example","text":"\nconst player = new Tone.Player(\"https://tonejs.github.io/audio/drum-samples/conga-rhythm.mp3\");\nplayer.autostart = true;\nconst pitchShift = new Tone.PitchShift(4).toDestination();\nconst filter = new Tone.Filter(\"G5\").toDestination();\n// connect a node to the pitch shift and filter in parallel\nplayer.fan(pitchShift, filter);\n"}]},"parameters":[{"id":7479,"name":"nodes","kind":32768,"kindString":"Parameter","flags":{"isExported":true,"isRest":true},"type":{"type":"array","elementType":{"type":"reference","id":1101,"name":"InputNode"}}}],"type":{"type":"intrinsic","name":"this"},"inheritedFrom":{"type":"reference","id":1053,"name":"ToneAudioNode.fan"}}],"sources":[{"fileName":"Tone/core/context/ToneAudioNode.ts","line":255,"character":4}],"inheritedFrom":{"type":"reference","id":1053,"name":"ToneAudioNode.fan"}},{"id":7502,"name":"get","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":7503,"name":"get","kind":4096,"kindString":"Call signature","flags":{"isExported":true},"comment":{"shortText":"Get the object's attributes.","tags":[{"tag":"example","text":"\nconst osc = new Tone.Oscillator();\nconsole.log(osc.get());\n"}]},"type":{"type":"reference","id":6336,"name":"AMOscillatorOptions"},"inheritedFrom":{"type":"reference","id":984,"name":"ToneWithContext.get"}}],"sources":[{"fileName":"Tone/core/context/ToneWithContext.ts","line":154,"character":4}],"inheritedFrom":{"type":"reference","id":984,"name":"ToneWithContext.get"}},{"id":7484,"name":"immediate","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":7485,"name":"immediate","kind":4096,"kindString":"Call signature","flags":{"isExported":true},"comment":{"shortText":"Return the current time of the Context clock without any lookAhead.","tags":[{"tag":"example","text":"\nsetInterval(() => {\n\tconsole.log(Tone.immediate());\n}, 100);\n"}]},"type":{"type":"reference","id":21,"name":"Seconds"},"inheritedFrom":{"type":"reference","id":966,"name":"ToneWithContext.immediate"}}],"sources":[{"fileName":"Tone/core/context/ToneWithContext.ts","line":75,"character":10}],"inheritedFrom":{"type":"reference","id":966,"name":"ToneWithContext.immediate"}},{"id":7482,"name":"now","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":7483,"name":"now","kind":4096,"kindString":"Call signature","flags":{"isExported":true},"comment":{"shortText":"Return the current time of the Context clock plus the lookAhead.","tags":[{"tag":"example","text":"\nsetInterval(() => {\n\tconsole.log(Tone.now());\n}, 100);\n"}]},"type":{"type":"reference","id":21,"name":"Seconds"},"inheritedFrom":{"type":"reference","id":964,"name":"ToneWithContext.now"}}],"sources":[{"fileName":"Tone/core/context/ToneWithContext.ts","line":64,"character":4}],"inheritedFrom":{"type":"reference","id":964,"name":"ToneWithContext.now"}},{"id":7434,"name":"restart","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":7435,"name":"restart","kind":4096,"kindString":"Call signature","flags":{"isExported":true},"comment":{"shortText":"Restart the source."},"parameters":[{"id":7436,"name":"time","kind":32768,"kindString":"Parameter","flags":{"isExported":true,"isOptional":true},"type":{"type":"reference","id":31,"name":"Time"}},{"id":7437,"name":"offset","kind":32768,"kindString":"Parameter","flags":{"isExported":true,"isOptional":true},"type":{"type":"reference","id":31,"name":"Time"}},{"id":7438,"name":"duration","kind":32768,"kindString":"Parameter","flags":{"isExported":true,"isOptional":true},"type":{"type":"reference","id":31,"name":"Time"}}],"type":{"type":"intrinsic","name":"this"},"inheritedFrom":{"type":"reference","id":5613,"name":"Source.restart"}}],"sources":[{"fileName":"Tone/source/Source.ts","line":249,"character":8}],"inheritedFrom":{"type":"reference","id":5613,"name":"Source.restart"}},{"id":7504,"name":"set","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":7505,"name":"set","kind":4096,"kindString":"Call signature","flags":{"isExported":true},"comment":{"shortText":"Set multiple properties at once with an object.","tags":[{"tag":"example","text":"\nconst filter = new Tone.Filter().toDestination();\n// set values using an object\nfilter.set({\n\tfrequency: \"C6\",\n\ttype: \"highpass\"\n});\nconst player = new Tone.Player(\"https://tonejs.github.io/audio/berklee/Analogsynth_octaves_highmid.mp3\").connect(filter);\nplayer.autostart = true;\n"}]},"parameters":[{"id":7506,"name":"props","kind":32768,"kindString":"Parameter","flags":{"isExported":true},"type":{"type":"reference","id":1132,"typeArguments":[{"type":"reference","id":6336,"name":"AMOscillatorOptions"}],"name":"RecursivePartial"}}],"type":{"type":"intrinsic","name":"this"},"inheritedFrom":{"type":"reference","id":986,"name":"ToneWithContext.set"}}],"sources":[{"fileName":"Tone/core/context/ToneWithContext.ts","line":188,"character":4}],"inheritedFrom":{"type":"reference","id":986,"name":"ToneWithContext.set"}},{"id":7426,"name":"start","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":7427,"name":"start","kind":4096,"kindString":"Call signature","flags":{"isExported":true},"comment":{"shortText":"Start the source at the specified time. If no time is given,\nstart the source now.","tags":[{"tag":"example","text":"\nconst source = new Tone.Oscillator().toDestination();\nsource.start(\"+0.5\"); // starts the source 0.5 seconds from now\n"}]},"parameters":[{"id":7428,"name":"time","kind":32768,"kindString":"Parameter","flags":{"isExported":true,"isOptional":true},"comment":{"text":"When the source should be started."},"type":{"type":"reference","id":31,"name":"Time"}},{"id":7429,"name":"offset","kind":32768,"kindString":"Parameter","flags":{"isExported":true,"isOptional":true},"type":{"type":"reference","id":31,"name":"Time"}},{"id":7430,"name":"duration","kind":32768,"kindString":"Parameter","flags":{"isExported":true,"isOptional":true},"type":{"type":"reference","id":31,"name":"Time"}}],"type":{"type":"intrinsic","name":"this"},"inheritedFrom":{"type":"reference","id":5605,"name":"Source.start"}}],"sources":[{"fileName":"Tone/source/Source.ts","line":180,"character":6}],"inheritedFrom":{"type":"reference","id":5605,"name":"Source.start"}},{"id":7431,"name":"stop","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":7432,"name":"stop","kind":4096,"kindString":"Call signature","flags":{"isExported":true},"comment":{"shortText":"Stop the source at the specified time. If no time is given,\nstop the source now.","tags":[{"tag":"example","text":"\nconst source = new Tone.Oscillator().toDestination();\nsource.start();\nsource.stop(\"+0.5\"); // stops the source 0.5 seconds from now\n"}]},"parameters":[{"id":7433,"name":"time","kind":32768,"kindString":"Parameter","flags":{"isExported":true,"isOptional":true},"comment":{"text":"When the source should be stopped."},"type":{"type":"reference","id":31,"name":"Time"}}],"type":{"type":"intrinsic","name":"this"},"inheritedFrom":{"type":"reference","id":5610,"name":"Source.stop"}}],"sources":[{"fileName":"Tone/source/Source.ts","line":229,"character":5}],"inheritedFrom":{"type":"reference","id":5610,"name":"Source.stop"}},{"id":7439,"name":"sync","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":7440,"name":"sync","kind":4096,"kindString":"Call signature","flags":{"isExported":true},"comment":{"shortText":"Sync the source to the Transport so that all subsequent\ncalls to `start` and `stop` are synced to the TransportTime\ninstead of the AudioContext time.","tags":[{"tag":"example","text":"\nconst osc = new Tone.Oscillator().toDestination();\n// sync the source so that it plays between 0 and 0.3 on the Transport's timeline\nosc.sync().start(0).stop(0.3);\n// start the transport.\nTone.Transport.start();\n// set it to loop once a second\nTone.Transport.loop = true;\nTone.Transport.loopEnd = 1;\n"}]},"type":{"type":"intrinsic","name":"this"},"inheritedFrom":{"type":"reference","id":5618,"name":"Source.sync"}}],"sources":[{"fileName":"Tone/source/Source.ts","line":273,"character":5}],"inheritedFrom":{"type":"reference","id":5618,"name":"Source.sync"}},{"id":7465,"name":"toDestination","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":7466,"name":"toDestination","kind":4096,"kindString":"Call signature","flags":{"isExported":true},"comment":{"shortText":"Connect the output to the context's destination node.","tags":[{"tag":"example","text":"\nconst osc = new Tone.Oscillator(\"C2\").start();\nosc.toDestination();\n"}]},"type":{"type":"intrinsic","name":"this"},"inheritedFrom":{"type":"reference","id":1041,"name":"ToneAudioNode.toDestination"}}],"sources":[{"fileName":"Tone/core/context/ToneAudioNode.ts","line":207,"character":14}],"inheritedFrom":{"type":"reference","id":1041,"name":"ToneAudioNode.toDestination"}},{"id":7493,"name":"toFrequency","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":7494,"name":"toFrequency","kind":4096,"kindString":"Call signature","flags":{"isExported":true},"comment":{"shortText":"Convert the input to a frequency number","tags":[{"tag":"example","text":"\nconst gain = new Tone.Gain();\nconsole.log(gain.toFrequency(\"4n\"));\n"}]},"parameters":[{"id":7495,"name":"freq","kind":32768,"kindString":"Parameter","flags":{"isExported":true},"type":{"type":"reference","id":32,"name":"Frequency"}}],"type":{"type":"reference","id":41,"name":"Hertz"},"inheritedFrom":{"type":"reference","id":975,"name":"ToneWithContext.toFrequency"}}],"sources":[{"fileName":"Tone/core/context/ToneWithContext.ts","line":116,"character":12}],"inheritedFrom":{"type":"reference","id":975,"name":"ToneWithContext.toFrequency"}},{"id":7467,"name":"toMaster","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":7468,"name":"toMaster","kind":4096,"kindString":"Call signature","flags":{"isExported":true},"comment":{"shortText":"Connect the output to the context's destination node.\nSee [[toDestination]]","tags":[{"tag":"deprecated","text":"\n"}]},"type":{"type":"intrinsic","name":"this"},"inheritedFrom":{"type":"reference","id":1043,"name":"ToneAudioNode.toMaster"}}],"sources":[{"fileName":"Tone/core/context/ToneAudioNode.ts","line":217,"character":9}],"inheritedFrom":{"type":"reference","id":1043,"name":"ToneAudioNode.toMaster"}},{"id":7490,"name":"toSeconds","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":7491,"name":"toSeconds","kind":4096,"kindString":"Call signature","flags":{"isExported":true},"comment":{"shortText":"Convert the incoming time to seconds.\nThis is calculated against the current [[Tone.Transport]] bpm","tags":[{"tag":"example","text":"\nconst gain = new Tone.Gain();\nsetInterval(() => console.log(gain.toSeconds(\"4n\")), 100);\n// ramp the tempo to 60 bpm over 30 seconds\nTone.getTransport().bpm.rampTo(60, 30);\n"}]},"parameters":[{"id":7492,"name":"time","kind":32768,"kindString":"Parameter","flags":{"isExported":true,"isOptional":true},"type":{"type":"reference","id":31,"name":"Time"}}],"type":{"type":"reference","id":21,"name":"Seconds"},"inheritedFrom":{"type":"reference","id":972,"name":"ToneWithContext.toSeconds"}}],"sources":[{"fileName":"Tone/core/context/ToneWithContext.ts","line":106,"character":10}],"inheritedFrom":{"type":"reference","id":972,"name":"ToneWithContext.toSeconds"}},{"id":7514,"name":"toString","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":7515,"name":"toString","kind":4096,"kindString":"Call signature","flags":{"isExported":true},"comment":{"shortText":"Convert the class to a string","tags":[{"tag":"example","text":"\nconst osc = new Tone.Oscillator();\nconsole.log(osc.toString());\n"}]},"type":{"type":"intrinsic","name":"string"},"inheritedFrom":{"type":"reference","id":62,"name":"Tone.toString"}}],"sources":[{"fileName":"Tone/core/Tone.ts","line":103,"character":9}],"inheritedFrom":{"type":"reference","id":62,"name":"Tone.toString"}},{"id":7496,"name":"toTicks","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":7497,"name":"toTicks","kind":4096,"kindString":"Call signature","flags":{"isExported":true},"comment":{"shortText":"Convert the input time into ticks","tags":[{"tag":"example","text":"\nconst gain = new Tone.Gain();\nconsole.log(gain.toTicks(\"4n\"));\n"}]},"parameters":[{"id":7498,"name":"time","kind":32768,"kindString":"Parameter","flags":{"isExported":true,"isOptional":true},"type":{"type":"union","types":[{"type":"reference","id":31,"name":"Time"},{"type":"reference","id":504,"name":"TimeClass"}]}}],"type":{"type":"reference","id":35,"name":"Ticks"},"inheritedFrom":{"type":"reference","id":978,"name":"ToneWithContext.toTicks"}}],"sources":[{"fileName":"Tone/core/context/ToneWithContext.ts","line":126,"character":8}],"inheritedFrom":{"type":"reference","id":978,"name":"ToneWithContext.toTicks"}},{"id":7441,"name":"unsync","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":7442,"name":"unsync","kind":4096,"kindString":"Call signature","flags":{"isExported":true},"comment":{"shortText":"Unsync the source to the Transport. See Source.sync"},"type":{"type":"intrinsic","name":"this"},"inheritedFrom":{"type":"reference","id":5620,"name":"Source.unsync"}}],"sources":[{"fileName":"Tone/source/Source.ts","line":310,"character":7}],"inheritedFrom":{"type":"reference","id":5620,"name":"Source.unsync"}},{"id":7370,"name":"getDefaults","kind":2048,"kindString":"Method","flags":{"isStatic":true,"isExported":true},"signatures":[{"id":7371,"name":"getDefaults","kind":4096,"kindString":"Call signature","flags":{"isExported":true},"type":{"type":"reference","id":6336,"name":"AMOscillatorOptions"},"overwrites":{"type":"reference","id":5581,"name":"Source.getDefaults"}}],"sources":[{"fileName":"Tone/source/oscillator/AMOscillator.ts","line":127,"character":19}],"overwrites":{"type":"reference","id":5581,"name":"Source.getDefaults"}}],"groups":[{"title":"Constructors","kind":512,"children":[7363]},{"title":"Properties","kind":1024,"children":[7480,7508,7358,7357,7361,7411,7355,7413,7410,7412,7507]},{"title":"Accessors","kind":262144,"children":[7385,7488,7448,7452,7456,7512,7393,7422,7443,7445,7389,7401,7397,7486,7420,7381]},{"title":"Methods","kind":2048,"children":[7405,7474,7460,7469,7408,7477,7502,7484,7482,7434,7504,7426,7431,7439,7465,7493,7467,7490,7514,7496,7441,7370]}],"sources":[{"fileName":"Tone/source/oscillator/AMOscillator.ts","line":38,"character":25}],"extendedTypes":[{"type":"reference","id":5555,"typeArguments":[{"type":"reference","id":6336,"name":"AMOscillatorOptions"}],"name":"Source"}],"implementedTypes":[{"type":"reference","id":6169,"name":"ToneOscillatorInterface"}]},{"id":11367,"name":"AMSynth","kind":128,"kindString":"Class","flags":{"isExported":true},"comment":{"shortText":"AMSynth uses the output of one Tone.Synth to modulate the\namplitude of another Tone.Synth. The harmonicity (the ratio between\nthe two signals) affects the timbre of the output signal greatly.\nRead more about Amplitude Modulation Synthesis on\n[SoundOnSound](https://web.archive.org/web/20160404103653/http://www.soundonsound.com:80/sos/mar00/articles/synthsecrets.htm).","tags":[{"tag":"example","text":"\nconst synth = new Tone.AMSynth().toDestination();\nsynth.triggerAttackRelease(\"C4\", \"4n\");\n"}]},"children":[{"id":11370,"name":"constructor","kind":512,"kindString":"Constructor","flags":{"isExported":true},"signatures":[{"id":11371,"name":"new AMSynth","kind":16384,"kindString":"Constructor signature","flags":{"isExported":true},"parameters":[{"id":11372,"name":"options","kind":32768,"kindString":"Parameter","flags":{"isExported":true,"isOptional":true},"type":{"type":"reference","id":1132,"typeArguments":[{"type":"reference","id":11503,"name":"AMSynthOptions"}],"name":"RecursivePartial"}}],"type":{"type":"reference","id":11367,"name":"AMSynth"},"overwrites":{"type":"reference","id":11244,"name":"ModulationSynth.__constructor"}}],"sources":[{"fileName":"Tone/instrument/AMSynth.ts","line":28,"character":39},{"fileName":"Tone/instrument/AMSynth.ts","line":30,"character":57}],"overwrites":{"type":"reference","id":11244,"name":"ModulationSynth.__constructor"}},{"id":11467,"name":"context","kind":1024,"kindString":"Property","flags":{"isExported":true,"isReadonly":true},"comment":{"shortText":"The context belonging to the node."},"sources":[{"fileName":"Tone/core/context/ToneWithContext.ts","line":27,"character":17}],"type":{"type":"reference","id":3044,"name":"BaseContext"},"inheritedFrom":{"type":"reference","id":962,"name":"ToneWithContext.context"}},{"id":11495,"name":"debug","kind":1024,"kindString":"Property","flags":{"isExported":true},"comment":{"shortText":"Set this debug flag to log all events that happen in this class."},"sources":[{"fileName":"Tone/core/Tone.ts","line":49,"character":6}],"type":{"type":"intrinsic","name":"boolean"},"defaultValue":"false","inheritedFrom":{"type":"reference","id":53,"name":"Tone.debug"}},{"id":11382,"name":"detune","kind":1024,"kindString":"Property","flags":{"isExported":true,"isReadonly":true},"comment":{"shortText":"The detune in cents"},"sources":[{"fileName":"Tone/instrument/ModulationSynth.ts","line":67,"character":16}],"type":{"type":"reference","id":1503,"typeArguments":[{"type":"stringLiteral","value":"cents"}],"name":"Signal"},"overwrites":{"type":"reference","id":10825,"name":"Monophonic.detune"},"inheritedFrom":{"type":"reference","id":11241,"name":"ModulationSynth.detune"}},{"id":11378,"name":"envelope","kind":1024,"kindString":"Property","flags":{"isExported":true,"isReadonly":true},"comment":{"shortText":"The carrier's envelope"},"sources":[{"fileName":"Tone/instrument/ModulationSynth.ts","line":47,"character":18}],"type":{"type":"reference","id":10952,"name":"AmplitudeEnvelope"},"inheritedFrom":{"type":"reference","id":11237,"name":"ModulationSynth.envelope"}},{"id":11381,"name":"frequency","kind":1024,"kindString":"Property","flags":{"isExported":true,"isReadonly":true},"comment":{"shortText":"The frequency control"},"sources":[{"fileName":"Tone/instrument/ModulationSynth.ts","line":62,"character":19}],"type":{"type":"reference","id":1503,"typeArguments":