<commit_before>require "./rack/plug"
require "./rack/x0x"

circ = Plug.new("Circuit", "Circuit MIDI 1")

x0x = X0X.new(circ.out) do |x|
  x.part :a do |p|
    p.drum1 "| KKKK | KKKK |", step: 24
    p.drum2 "| ---- S--- ---- S--- | ---- S--- ---- S--- |"
    p.drum4 "| H-H- H-H- H-H- H-H- | H-H- H-H- H-H- H-H- |"
  end
  x.part :b do |p|
    p.drum1 "| KKKK | KKKK |", step: 24
    p.drum2 "| ---- S--- ---- S--- | ---- S--- ---- S--- |"
    p.drum4 "| H-H-H- H-H-H- H-H-H- H-H-H- | H-H-H- H-H-H- H-H-H- H-H-H- |", step: 4
  end
  a = [:a,:b]
  b = [:b,:a]
  x.song a, b
end

circ.input :type => :clock do |m|
  x0x << m
end

Plug.start(circ)
<commit_msg>try some ethnic rhythms<commit_after>require "./rack/plug"
require "./rack/x0x"

circ = Plug.new("Circuit", "Circuit MIDI 1")

x0x = X0X.new(circ.out) do |x|
  x.part :four do |p|
    p.drum1 "| K--- K--- K--- K--- |"
    p.drum2 "| ---- S--- ---- S--- |"
    p.drum4 "| H-H- H-H- H-H- H-H- |"
  end
  
  x.part :clave do |p|
    p.drum1 "| K--K  --K-  --K-  K--- |"
  end

  x.part :bembe do |p|
    p.drum1 "| K-K-  KK-K  -K-K |"
  end

  x.part :shiko do |p|
    p.drum1 "| K---  K-K-  --K-  K---"
  end
  x.song [:four]  * 4,
         [:clave] * 4,
         [:shiko] * 4
end

circ.input :type => :clock do |m|
  x0x << m
end

Plug.start(circ)

{'fraction_non_alphanumeric': 0.27837423312883436, 'fraction_numerical': 0.023006134969325152, 'mean_word_length': 1.4347014925373134, 'pattern_counts': {'":': 0, '<': 7, '<?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': '7091845', 'n_tokens_mistral': 721, 'n_tokens_neox': 676, 'n_words': 160}