<commit_before>//
//  main.swift
//  AudioKit
//
//  Created by <NAME> on 11/30/14.
//  Copyright (c) 2014 <NAME>. All rights reserved.
//

import Foundation

let testDuration: Float = 10.0

class Instrument : AKInstrument {

    override init() {
        super.init()

        let note = Note()

        addNoteProperty(note.frequency)
        let filename = "CsoundLib64.framework/Sounds/marmstk1.wav"

        let functionTable = AKSoundFile(filename: filename)
        addFunctionTable(functionTable)

        let excitation = AKMonoSoundFileLooper(soundFile: functionTable)
        excitation.loopMode = AKMonoSoundFileLooper.loopPlaysOnce()
        connect(excitation)

        let pluckedString = AKPluckedString(excitationSignal: excitation)
        pluckedString.frequency = note.frequency
        connect(pluckedString)

        enableParameterLog(
            "Frequency = ",
            parameter: pluckedString.frequency,
            timeInterval:20
        )

        connect(AKAudioOutput(audioSource:pluckedString))
    }
}<commit_msg>Removed unnecessary connects from AKPluckedString test<commit_after>//
//  main.swift
//  AudioKit
//
//  Created by <NAME> on 11/30/14.
//  Copyright (c) 2014 <NAME>. All rights reserved.
//

import Foundation

let testDuration: Float = 10.0

class Instrument : AKInstrument {

    override init() {
        super.init()

        let note = Note()

        addNoteProperty(note.frequency)
        let filename = "CsoundLib64.framework/Sounds/marmstk1.wav"

        let functionTable = AKSoundFile(filename: filename)
        addFunctionTable(functionTable)

        let excitation = AKMonoSoundFileLooper(soundFile: functionTable)
        excitation.loopMode = AKMonoSoundFileLooper.loopPlaysOnce()

        let pluckedString = AKPluckedString(excitationSignal: excitation)
        pluckedString.frequency = note.frequency

        enableParameterLog(
            "Frequency = ",
            parameter: pluckedString.frequency,
            timeInterval:20
        )

        setAudioOutput(pluckedString)
    }
}
{'fraction_non_alphanumeric': 0.08963178294573644, 'fraction_numerical': 0.01744186046511628, 'mean_word_length': 2.6228070175438596, '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': '4836', 'n_tokens_mistral': 632, 'n_tokens_neox': 568, 'n_words': 121}