<commit_before>(ns overtone-workshop.core
  (require [overtone.live :refer :all]))

;; Session 2 : Making our own instruments

;; first, two essential functions
;; (odoc)
;; (stop)

;; In overtone, you can make an instrument with the macro `definst`
(definst my-inst []
  (sin-osc))

;; it looks kind of like a Clojure function
(defn example-add-1 [arg]
  (+ 1 arg))

;; but... it does some magic

;; it expects your implementation to return a signal that it can
;; routes to your sound card
(definst my-inst []
  (sin-osc))

(my-inst)<commit_msg>add instructions<commit_after>(ns overtone-workshop.core
  (require [overtone.live :refer :all]))

;; Session 2 : Making our own instruments

;; load the shit
;; lein repl
;; (use 'overtone.live)

;; first, two essential functions
;; (odoc)
;; (stop)

;; In overtone, you can make an instrument with the macro `definst`
(definst my-inst []
  (sin-osc))

;; it looks kind of like a Clojure function
(defn example-add-1 [arg]
  (+ 1 arg))

;; but... it does some magic

;; it expects your implementation to return a signal that it can
;; routes to your sound card
(definst my-inst []
  (sin-osc))

(my-inst)
{'fraction_non_alphanumeric': 0.13368055555555555, 'fraction_numerical': 0.005208333333333333, 'mean_word_length': 3.927350427350427, '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': '4805656', 'n_tokens_mistral': 388, 'n_tokens_neox': 375, 'n_words': 147}