<commit_before>define(["Tone/effect/AutoWah", "helper/Basic", "helper/EffectTests"], function (AutoWah, Basic, EffectTests) {
	
	describe("AutoWah", function(){

		Basic(AutoWah);
		EffectTests(AutoWah);

		context("API", function(){

			it("can pass in options in the constructor", function(){
				var autoWah = new AutoWah({
					"baseFrequency" : 150,
					"octaves" : 3,
					"sensitivity" : -10
				});
				expect(autoWah.baseFrequency).to.be.closeTo(150, 0.01);
				expect(autoWah.octaves).to.be.closeTo(3, 0.01);
				expect(autoWah.sensitivity).to.be.closeTo(-10, 0.1);
				autoWah.dispose();
			});

			it("can get/set the options", function(){
				var autoWah = new AutoWah();
				autoWah.set({
					"Q" : 2.4,
				});
				expect(autoWah.get().Q).to.be.closeTo(2.4, 0.01);
				autoWah.dispose();
			});

			it("can set the gain and follower values", function(){
				var autoWah = new AutoWah();
				autoWah.gain.value = 1.2;
				autoWah.follower.attack = 0.4;
				autoWah.follower.release = 1;
				expect(autoWah.gain.value).to.be.closeTo(1.2, 0.01);
				expect(autoWah.follower.attack).to.be.closeTo(0.4, 0.01);
				expect(autoWah.follower.release).to.be.closeTo(1, 0.01);
				autoWah.dispose();
			});
		});
	});
});<commit_msg>testing setting AutoWah values<commit_after>define(["Tone/effect/AutoWah", "helper/Basic", "helper/EffectTests"], function(AutoWah, Basic, EffectTests) {

	describe("AutoWah", function(){

		Basic(AutoWah);
		EffectTests(AutoWah);

		context("API", function(){

			it("can pass in options in the constructor", function(){
				var autoWah = new AutoWah({
					"baseFrequency" : 150,
					"octaves" : 3,
					"sensitivity" : -10
				});
				expect(autoWah.baseFrequency).to.be.closeTo(150, 0.01);
				autoWah.baseFrequency = 250;
				expect(autoWah.baseFrequency).to.be.closeTo(250, 0.01);
				expect(autoWah.octaves).to.be.closeTo(3, 0.01);
				autoWah.octaves = 2;
				expect(autoWah.octaves).to.be.closeTo(2, 0.01);
				expect(autoWah.sensitivity).to.be.closeTo(-10, 0.1);
				autoWah.sensitivity = -20;
				expect(autoWah.sensitivity).to.be.closeTo(-20, 0.1);
				autoWah.dispose();
			});

			it("can get/set the options", function(){
				var autoWah = new AutoWah();
				autoWah.set({
					"Q" : 2.4,
				});
				expect(autoWah.get().Q).to.be.closeTo(2.4, 0.01);
				autoWah.dispose();
			});

			it("can set the gain and follower values", function(){
				var autoWah = new AutoWah();
				autoWah.gain.value = 1.2;
				autoWah.follower.attack = 0.4;
				autoWah.follower.release = 1;
				expect(autoWah.gain.value).to.be.closeTo(1.2, 0.01);
				expect(autoWah.follower.attack).to.be.closeTo(0.4, 0.01);
				expect(autoWah.follower.release).to.be.closeTo(1, 0.01);
				autoWah.dispose();
			});
		});
	});
});
{'fraction_non_alphanumeric': 0.18611414031261359, 'fraction_numerical': 0.04071246819338423, 'mean_word_length': 3.3067292644757433, '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': '1167954', 'n_tokens_mistral': 1358, 'n_tokens_neox': 1055, 'n_words': 170}