<commit_before>/* 
 * TTBlue Cycling Ramp Generator
 * Copyright © 2003, <NAME>
 * 
 * License: This code is licensed under the terms of the "New BSD License"
 * http://creativecommons.org/licenses/BSD/
 */

#include "TTPhasor.h"

#define thisTTClass TTPhasor
#define thisTTClassName		"phasor"
#define thisTTClassTags		"audio, generator, oscillator"


TT_AUDIO_CONSTRUCTOR
, mPhase(0.0), step(0.0), linearGain(1.0)
{
	addAttributeWithSetter(			Frequency,	kTypeFloat64);
	addAttributeWithGetterAndSetter(Gain,		kTypeFloat64);
	addAttributeWithSetter(			Phase,		kTypeFloat64);
	addAttribute(					Offset,		kTypeFloat64);
	// TODO: More Attributes left to add...
	//	linearGain
	//	period in ms
	//	period in samples
	
	addUpdate(SampleRate);<commit_msg>initializing mFrequency and mOffset<commit_after>/* 
 * TTBlue Cycling Ramp Generator
 * Copyright © 2003, <NAME>
 * 
 * License: This code is licensed under the terms of the "New BSD License"
 * http://creativecommons.org/licenses/BSD/
 */

#include "TTPhasor.h"

#define thisTTClass TTPhasor
#define thisTTClassName		"phasor"
#define thisTTClassTags		"audio, generator, oscillator"


TT_AUDIO_CONSTRUCTOR
, mPhase(0.0), step(0.0), linearGain(1.0), mFrequency(1.0), mOffset(0.0)
{
	addAttributeWithSetter(			Frequency,	kTypeFloat64);
	addAttributeWithGetterAndSetter(Gain,		kTypeFloat64);
	addAttributeWithSetter(			Phase,		kTypeFloat64);
	addAttribute(					Offset,		kTypeFloat64);
	// TODO: More Attributes left to add...
	//	linearGain
	//	period in ms
	//	period in samples
	
	addUpdate(SampleRate);
{'fraction_non_alphanumeric': 0.11204121056020605, 'fraction_numerical': 0.025756600128783, 'mean_word_length': 4.589928057553957, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '4615968', 'n_tokens_mistral': 597, 'n_tokens_neox': 546, 'n_words': 134}