<commit_before>package de.sciss.fscape

import de.sciss.file._
import de.sciss.fscape.gui.SimpleGUI
import de.sciss.synth.io.AudioFileSpec

import scala.swing.Swing

object ResampleTest extends App {
  lazy val g = Graph {
    import graph._
    val sr    = 44100.0
    val in0   = SinOsc(441/sr).take(sr.toLong * 10)
//    val in0   = WhiteNoise()
    val in    = in0.take(sr.toLong * 1.0)
    val factor = 0.5
//    val factor = 1.0
//        val factor = 2.0
    val sig   = Resample(in = in, factor = factor)
    val factorI = (factor * 100).toInt
    val fOut  = userHome / "Documents" / "temp" / s"resample_$factorI.aif"
    AudioFileOut(file = fOut, spec = AudioFileSpec(sampleRate = sr, numChannels = 1), in = sig)
  }

  lazy val g1 = Graph {
    import graph._
    val sr    = 44100.0
    val in0   = SinOsc(441/sr).take(sr.toLong * 10)
//    val in0   = WhiteNoise()
    val in    = in0.take(sr.toLong * 10)
    val factor = SinOsc(1.0/32).linexp(-1.0, 1.0, 0.5, 2.0)
    val sig   = Resample(in = in, factor = factor)
    val fOut  = userHome / "Documents" / "temp" / "resample_mod.aif"
    AudioFileOut(file = fOut, spec = AudioFileSpec(sampleRate = sr, numChannels = 1), in = sig)
  }

  val config = stream.Control.Config()
  config.useAsync   = false
  config.blockSize  = 100 // test
  implicit val ctrl = stream.Control(config)
  ctrl.run(g)

  Swing.onEDT {
    SimpleGUI(ctrl)
  }
}<commit_msg>clicks in mod test with PAD 32 (disappear with PAD 1)<commit_after>package de.sciss.fscape

import de.sciss.file._
import de.sciss.fscape.gui.SimpleGUI
import de.sciss.synth.io.AudioFileSpec

import scala.swing.Swing

object ResampleTest extends App {
  lazy val g1 = Graph {
    import graph._
    val sr    = 44100.0
    val in0   = SinOsc(441/sr).take(sr.toLong * 10)
//    val in0   = WhiteNoise()
    val in    = in0.take(sr.toLong * 1.0)
    val factor = 0.5
//    val factor = 1.0
//        val factor = 2.0
    val sig   = Resample(in = in, factor = factor)
    val factorI = (factor * 100).toInt
    val fOut  = userHome / "Documents" / "temp" / s"resample_$factorI.aif"
    AudioFileOut(file = fOut, spec = AudioFileSpec(sampleRate = sr, numChannels = 1), in = sig)
  }

  lazy val g = Graph {
    import graph._
    val sr    = 44100.0
    val in0   = SinOsc(441/sr).take(sr.toLong * 10)
//    val in0   = WhiteNoise()
    val in    = in0.take(sr.toLong * 10)
    val factor = SinOsc(1.0/32).linexp(-1.0, 1.0, 0.5, 2.0)
    val sig   = Resample(in = in, factor = factor)
    val fOut  = userHome / "Documents" / "temp" / "resample_mod.aif"
    AudioFileOut(file = fOut, spec = AudioFileSpec(sampleRate = sr, numChannels = 1), in = sig)
  }

  val config = stream.Control.Config()
  config.useAsync   = false
  config.blockSize  = 100 // test
  implicit val ctrl = stream.Control(config)
  ctrl.run(g)

  Swing.onEDT {
    SimpleGUI(ctrl)
  }
}
{'fraction_non_alphanumeric': 0.1304044630404463, 'fraction_numerical': 0.04218967921896792, 'mean_word_length': 2.5202453987730062, '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': '7144024', 'n_tokens_mistral': 1181, 'n_tokens_neox': 1095, 'n_words': 270}