day 3 - some instruments, and first recording

This commit is contained in:
efim
2022-08-20 12:59:29 +00:00
parent c563cae51b
commit da7eaa45b5
3 changed files with 327 additions and 3 deletions

View File

@@ -69,3 +69,54 @@ do I go to cl-collider package for explanation of synths and such?
- some combined sounds, which don't sound nice
- maybe reliant startup procedure
- and attempting to run chords hangs it all
** cl-patterns docs:
https://github.com/defaultxr/cl-patterns/tree/master/doc
that's all files
* [2022-08-20 Sat]
** now I'd like to create an instrument for which chords would sound nice
and after than some kind of percussion things
** cool! that was just my type :instument instead of :instrument
and article on cl-collider now helps with some cool synhts, like chord strum
#+begin_src common-lisp
(defsynth tone-pluck ((freq 440) (amp 0.2))
(out.ar 0 (* (saw.ar (let ((detune (* freq 0.01)))
(list (- freq detune) (+ freq detune))))
(env-gen.kr (perc 0.1 1.8)
:level-scale amp
:act :free))))
;; (synth 'tone-pluck)
(in-package #:cl-patterns)
(pb :what-predef-chord
:instrument :tone-pluck
:note (pseq (mapcar #'chord-notes (list (chord "Major Triad") (chord "Minor Triad") (chord "Minor 7th") (chord "Major 7th") (chord "Diminished Triad") (chord "Major Triad"))) 1)
:octave 4
:root 2
:dur (pseq '(2 2 4))
;; :play-quant 4
)
;; (play :what-predef-chord)
;; (stop :what-predef-chord)
#+end_src
yay.
** now let's figure out percussions?
** searching : "super collider percussion synth"
got all sorts of cool results:
*** main page of supercollider: https://supercollider.github.io/
*** awesome list : https://github.com/madskjeldgaard/awesome-supercollider#synthdefs
and it has link to defs!
*** defs : https://github.com/everythingwillbetakenaway/Synthdefs
for example a drum kik which I'd try to convert?
https://github.com/everythingwillbetakenaway/Synthdefs/blob/master/drum_kick.scd
** to file https://github.com/byulparan/cl-collider#record-audio-output
whoh
** now for the well deserved fucking rest
** things I want to figure out in the future:
1. joining patterns in parallel - percussion + rythm + solo
2. having 3 beats in percussion but aligning to 4 beats
3. getting cool instruments from existing repos for supercollider