<commit_before>// Copyright AudioKit. All Rights Reserved. Revision History at http://github.com/AudioKit/AudioKit/

#include "AKSoundpipeDSPBase.hpp"
#include "ParameterRamper.hpp"
#include "soundpipe.h"
#include <vector>

enum AKOscillatorParameter : AUParameterAddress {
    AKOscillatorParameterFrequency,
    AKOscillatorParameterAmplitude,
    AKOscillatorParameterDetuningOffset,
    AKOscillatorParameterDetuningMultiplier,
};

class AKOscillatorDSP : public AKSoundpipeDSPBase {
private:
    sp_osc *osc;
    sp_ftbl *ftbl;
    std::vector<float> waveform;
    ParameterRamper frequencyRamp;
    ParameterRamper amplitudeRamp;
    ParameterRamper detuningOffsetRamp;
    ParameterRamper detuningMultiplierRamp;

public:
    AKOscillatorDSP() : AKSoundpipeDSPBase(/*inputBusCount*/0) {
        parameters[AKOscillatorParameterFrequency] = &frequencyRamp;
        parameters[AKOscillatorParameterAmplitude] = &amplitudeRamp;
        parameters[AKOscillatorParameterDetuningOffset] = &detuningOffsetRamp;
        parameters[AKOscillatorParameterDetuningMultiplier] = &detuningMultiplierRamp;
        isStarted = false;<commit_msg>Make debugging easier.<commit_after>// Copyright AudioKit. All Rights Reserved. Revision History at http://github.com/AudioKit/AudioKit/

#include "AKSoundpipeDSPBase.hpp"
#include "ParameterRamper.hpp"
#include "soundpipe.h"
#include <vector>

enum AKOscillatorParameter : AUParameterAddress {
    AKOscillatorParameterFrequency,
    AKOscillatorParameterAmplitude,
    AKOscillatorParameterDetuningOffset,
    AKOscillatorParameterDetuningMultiplier,
};

class AKOscillatorDSP : public AKSoundpipeDSPBase {
private:
    sp_osc *osc = nullptr;
    sp_ftbl *ftbl = nullptr;
    std::vector<float> waveform;
    ParameterRamper frequencyRamp;
    ParameterRamper amplitudeRamp;
    ParameterRamper detuningOffsetRamp;
    ParameterRamper detuningMultiplierRamp;

public:
    AKOscillatorDSP() : AKSoundpipeDSPBase(/*inputBusCount*/0) {
        parameters[AKOscillatorParameterFrequency] = &frequencyRamp;
        parameters[AKOscillatorParameterAmplitude] = &amplitudeRamp;
        parameters[AKOscillatorParameterDetuningOffset] = &detuningOffsetRamp;
        parameters[AKOscillatorParameterDetuningMultiplier] = &detuningMultiplierRamp;
        isStarted = false;
{'fraction_non_alphanumeric': 0.07605388961321165, 'fraction_numerical': 0.000869187309865276, 'mean_word_length': 5.430167597765363, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '7249476', 'n_tokens_mistral': 742, 'n_tokens_neox': 693, 'n_words': 117}