<commit_before>define(["../core/Tone", "../component/Analyser", "../core/AudioNode"], function(Tone){

	/**
	 *  @class  Get the current waveform data of the connected audio source.
	 *  @extends {Tone.AudioNode}
	 *  @param {Number=} size The size of the FFT. Value must be a power of
	 *                       two in the range 32 to 32768.
	 */
	Tone.FFT = function(){

		var options = Tone.defaults(arguments, ["size"], Tone.FFT);
		options.type = Tone.Analyser.Type.FFT;
		Tone.AudioNode.call(this);

		/**
		 *  The analyser node.
		 *  @private
		 *  @type {Tone.Analyser}
		 */
		this._analyser = this.input = this.output = new Tone.Analyser(options);
	};

	Tone.extend(Tone.FFT, Tone.AudioNode);

	/**
	 *  The default values.
	 *  @type {Object}
	 *  @const
	 */
	Tone.FFT.defaults = {
		"size" : 1024
	};

	/**
	 *  Gets the waveform of the audio source. Returns the waveform data
	 *  of length [size](#size) as a Float32Array with values between -1 and 1.
	 *  @returns {TypedArray}
	 */
	Tone.FFT.prototype.getValue = function(){
		return this._analyser.getValue();
	};

	/**<commit_msg>updating docs to reflect FFT output data<commit_after>define(["../core/Tone", "../component/Analyser", "../core/AudioNode"], function(Tone){

	/**
	 *  @class  Get the current waveform data of the connected audio source.
	 *  @extends {Tone.AudioNode}
	 *  @param {Number=} size The size of the FFT. Value must be a power of
	 *                       two in the range 32 to 32768.
	 */
	Tone.FFT = function(){

		var options = Tone.defaults(arguments, ["size"], Tone.FFT);
		options.type = Tone.Analyser.Type.FFT;
		Tone.AudioNode.call(this);

		/**
		 *  The analyser node.
		 *  @private
		 *  @type {Tone.Analyser}
		 */
		this._analyser = this.input = this.output = new Tone.Analyser(options);
	};

	Tone.extend(Tone.FFT, Tone.AudioNode);

	/**
	 *  The default values.
	 *  @type {Object}
	 *  @const
	 */
	Tone.FFT.defaults = {
		"size" : 1024
	};

	/**
	 *  Gets the current frequency data from the connected audio source. 
	 *  Returns the frequency data of length [size](#size) as a Float32Array of decibel values. 
	 *  @returns {TypedArray}
	 */
	Tone.FFT.prototype.getValue = function(){
		return this._analyser.getValue();
	};

	/**
{'fraction_non_alphanumeric': 0.1510022271714922, 'fraction_numerical': 0.012472160356347439, 'mean_word_length': 2.793918918918919, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6847553', 'n_tokens_mistral': 850, 'n_tokens_neox': 760, 'n_words': 204}