<commit_before># This algorithm is a modified version of the algorithm hosted in
# https://github.com/mdoege/PySynth/blob/master/pysynth_s.py written by <NAME>
# v1.1.2, commit 7a704e6 on Jul 22, 2012

import wave
import numpy as np
from math import cos, pi, log, floor, ceil


def make_wav(inp, transpose=0, pause=0.,
             repeat=0, fn="out.wav", silent=False, verbose=False):

    # wave settings
    f = wave.open(fn, 'w')

    f.setnchannels(1)
    f.setsampwidth(2)
    f.setframerate(44100)
    f.setcomptype('NONE', 'Not Compressed')

    bpm_fac = 120. / inp['bpm']

    def length(l):
        return 88200. / l * bpm_fac

    def waves2(hz, l):
        a = 44100. / hz
        b = float(l) / 44100. * hz
        return [a, round(b)]

    def render2(a, b, vol, pos, endamp=0.25, sm=10):<commit_msg>Update synth_S_microtonal.py<commit_after># This algorithm is a modified version of the algorithm hosted in
# https://github.com/mdoege/PySynth/blob/master/pysynth_s.py written by <NAME>
# v1.1.2, commit 7a704e6 on Jul 22, 2012. The original code is licenced under the GPL.

import wave
import numpy as np
from math import cos, pi, log, floor, ceil


def make_wav(inp, transpose=0, pause=0.,
             repeat=0, fn="out.wav", silent=False, verbose=False):

    # wave settings
    f = wave.open(fn, 'w')

    f.setnchannels(1)
    f.setsampwidth(2)
    f.setframerate(44100)
    f.setcomptype('NONE', 'Not Compressed')

    bpm_fac = 120. / inp['bpm']

    def length(l):
        return 88200. / l * bpm_fac

    def waves2(hz, l):
        a = 44100. / hz
        b = float(l) / 44100. * hz
        return [a, round(b)]

    def render2(a, b, vol, pos, endamp=0.25, sm=10):
{'fraction_non_alphanumeric': 0.1342400946185689, 'fraction_numerical': 0.0579538734476641, 'mean_word_length': 2.7683741648106905, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, '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': '4619430', 'n_tokens_mistral': 720, 'n_tokens_neox': 640, 'n_words': 178}