The sc-extensions Reference Manual

Table of Contents

Next: , Previous: , Up: (dir)   [Contents][Index]

The sc-extensions Reference Manual

This is the sc-extensions Reference Manual, generated automatically by Declt version 2.4 patchlevel 1 "Will Decker" on Fri May 24 09:44:43 2019 GMT+0.


Next: , Previous: , Up: Top   [Contents][Index]

1 Introduction

sc-extensions

Additional library collection for cl-collider .
this include server-side-sequencing tool / alias ugens and it implements pc library from Andrew Sorensen's Extempore

Usage:

;;; load on cl-collider and sc-extensions
(ql:quickload '(:sc :sc-extensions))

(in-package :sc-user)
(use-package :sc-extensions)
(named-readtables:in-readtable :sc)

;;; bootup server
(setf *s* (make-external-server "Lisp-collider" :port 57880))
(server-boot *s*)


;;; set bpm and run `tempo` synth
(tempo 60.0)
(server-query-all-nodes) ;; You can look nodes state on scsynth server

;; run synth
(proxy :foo
  (pan2.ar (sin-osc.ar 440 0 (env-gen.kr (perc .0 .4 .2) :gate (tr 4)))))  ;; trigger on every 1/16 beat


;;; change note and beat
(proxy :foo
  (pan2.ar (sin-osc.ar (midicps (t-choose.kr (tr 4) [60 67 71 72])) 0
                       (env-gen.kr (perc .0 .4 .2) :gate (tr 8)))))


;;; chord progression every 8 beat 
(proxy :foo
  (pan2.ar (mix (sin-osc.ar (midicps (sel-pos.kr 1 8 [(pc:make-chord 40 80 4 (pc:diatonic 0 :^ :i7))
						                              (pc:make-chord 40 80 4 (pc:diatonic 0 :^ :vi7))]))
			    0 (env-gen.kr (perc .0 .4 .2) :gate (tr 8))))))

;;; modified to gate
(proxy :foo
  (let* ((gate (g+ 4 8 [0 3 6])))
    (pan2.ar (mix (sin-osc.ar (midicps (sel-pos.kr 1 8 [(pc:make-chord 40 80 4 (pc:diatonic 0 :^ :i7))
						                            	(pc:make-chord 40 80 4 (pc:diatonic 0 :^ :vi7))]))
			      0 (env-gen.kr (perc .0 .4 .2) :gate gate))))))

;;; change tempo
(tempo 72.0)

;;; change tempo with lag time
(tempo 88.0 :lag 8.0)

;;; grid base sequencing
(proxy :foo
  (with-grid (4 8)
      ((gt [0 3 6])
       (note [60 67 71])
       (decay [.4 1.0 .2]))
    (pan2.ar (sin-osc.ar (midicps note) 0
			             (env-gen.kr (perc .0 decay .2) :gate gt)))))

;;; polyphonic grid
(proxy :foo
  (with-grid-poly (4 8)
      ((gt [0 3 6])
       (note [60 67 71]))
    (pan2.ar (mix (sin-osc.ar (midicps note) 0
			                  (env-gen.kr (perc .0 2.0 .2) :gate gt))))))


Next: , Previous: , Up: Top   [Contents][Index]

2 Systems

The main system appears first, followed by any subsystem dependency.


Previous: , Up: Systems   [Contents][Index]

2.1 sc-extensions

Author

Park Sungmin. byulparan@gmail.com

License

Public Domain / 0-clause MIT

Description

additional library collection for cl-collider

Dependencies
Source

sc-extensions.asd (file)

Components

Next: , Previous: , Up: Top   [Contents][Index]

3 Files

Files are sorted by type and then listed depth-first from the systems components trees.


Previous: , Up: Files   [Contents][Index]

3.1 Lisp


Next: , Previous: , Up: Lisp files   [Contents][Index]

3.1.1 sc-extensions.asd

Location

sc-extensions.asd

Systems

sc-extensions (system)


Next: , Previous: , Up: Lisp files   [Contents][Index]

3.1.2 sc-extensions/package.lisp

Parent

sc-extensions (system)

Location

package.lisp

Packages

Next: , Previous: , Up: Lisp files   [Contents][Index]

3.1.3 sc-extensions/util.lisp

Dependency

package.lisp (file)

Parent

sc-extensions (system)

Location

util.lisp

Exported Definitions

define-code (macro)


Next: , Previous: , Up: Lisp files   [Contents][Index]

3.1.4 sc-extensions/server-side.lisp

Dependency

util.lisp (file)

Parent

sc-extensions (system)

Location

server-side.lisp

Exported Definitions
Internal Definitions

Next: , Previous: , Up: Lisp files   [Contents][Index]

3.1.5 sc-extensions/client-side.lisp

Dependency

server-side.lisp (file)

Parent

sc-extensions (system)

Location

client-side.lisp

Exported Definitions

Next: , Previous: , Up: Lisp files   [Contents][Index]

3.1.6 sc-extensions/ugens.lisp

Dependency

client-side.lisp (file)

Parent

sc-extensions (system)

Location

ugens.lisp

Exported Definitions

Previous: , Up: Lisp files   [Contents][Index]

3.1.7 sc-extensions/pc.lisp

Dependency

ugens.lisp (file)

Parent

sc-extensions (system)

Location

pc.lisp

Exported Definitions
Internal Definitions

Next: , Previous: , Up: Top   [Contents][Index]

4 Packages

Packages are listed by definition order.


Next: , Previous: , Up: Packages   [Contents][Index]

4.1 pc

Source

package.lisp (file)

Use List

common-lisp

Exported Definitions
Internal Definitions

Previous: , Up: Packages   [Contents][Index]

4.2 sc-extensions

Source

package.lisp (file)

Use List
Exported Definitions
Internal Definitions

Next: , Previous: , Up: Top   [Contents][Index]

5 Definitions

Definitions are sorted by export status, category, package, and then by lexicographic order.


Next: , Previous: , Up: Definitions   [Contents][Index]

5.1 Exported definitions


Next: , Previous: , Up: Exported definitions   [Contents][Index]

5.1.1 Macros

Macro: cosr OFFSET GAIN RATIO
Package

sc-extensions

Source

client-side.lisp (file)

Macro: define-code NAME ARGS &body BODY
Package

sc-extensions

Source

util.lisp (file)

Macro: gate-lane DIV N SEQS
Package

sc-extensions

Source

server-side.lisp (file)

Macro: next-dur BEAT NEW-VALUE
Package

sc-extensions

Source

client-side.lisp (file)

Macro: on-trigger (CNT DIV &optional REM) &body BODY
Package

sc-extensions

Source

server-side.lisp (file)

Macro: pattern-at BUFFER (CNT DIV &optional REM) LIST &rest LISTS
Package

sc-extensions

Source

server-side.lisp (file)

Macro: pp ARG &body BODY
Package

sc-extensions

Source

client-side.lisp (file)

Macro: proxy-handle KEY &optional ACTION HANDLE TO
Package

sc-extensions

Source

ugens.lisp (file)

Macro: sinr OFFSET GAIN RATIO
Package

sc-extensions

Source

client-side.lisp (file)

Macro: with-grid (DIV N &key MODE) GRID &body BODY
Package

sc-extensions

Source

server-side.lisp (file)

Macro: with-grid-poly (DIV LEN &optional SELF) GRID &body BODY
Package

sc-extensions

Source

server-side.lisp (file)


Previous: , Up: Exported definitions   [Contents][Index]

5.1.2 Functions

Function: asr.kr ATTK LEVEL REL GATE &key ACT
Package

sc-extensions

Source

ugens.lisp (file)

Function: beat N
Package

sc-extensions

Source

server-side.lisp (file)

Function: bpm BPM &key RELAUNCH LAG
Package

sc-extensions

Source

client-side.lisp (file)

Function: chord ROOT TYPE
Package

pc

Source

pc.lisp (file)

Function: chord-to-scale ROOT TYPE
Package

pc

Source

pc.lisp (file)

Function: cnt DIV
Package

sc-extensions

Source

server-side.lisp (file)

Function: degree VALUE PC
Package

pc

Source

pc.lisp (file)

Function: del.kr IN DEL
Package

sc-extensions

Source

ugens.lisp (file)

Function: diatonic ROOT MAJ-MIN DEGREE
Package

pc

Source

pc.lisp (file)

Function: div N
Package

sc-extensions

Source

server-side.lisp (file)

Function: g+ DIV LEN CONTENTS
Package

sc-extensions

Source

ugens.lisp (file)

Function: make-chord LOWER UPPER NUMBER PC
Package

pc

Source

pc.lisp (file)

Function: pattern BUFFER LIST &rest LISTS
Package

sc-extensions

Source

server-side.lisp (file)

Function: pc-random LOWER UPPER PC
Package

pc

Source

pc.lisp (file)

Function: perc.kr GATE &optional ATTACK RELEASE LEVEL CURVE
Package

sc-extensions

Source

ugens.lisp (file)

Function: poly N GATE
Package

sc-extensions

Source

ugens.lisp (file)

Function: quantize PITCH-IN PC
Package

pc

Source

pc.lisp (file)

Function: quantize-list LST PC
Package

pc

Source

pc.lisp (file)

Function: r+ SIG MIN MAX
Package

sc-extensions

Source

ugens.lisp (file)

Function: rand-tr TR ODDS
Package

sc-extensions

Source

ugens.lisp (file)

Function: relative PITCH I PC
Package

pc

Source

pc.lisp (file)

Function: rrand N &optional P
Package

sc-extensions

Source

client-side.lisp (file)

Function: safe-tr TR
Package

sc-extensions

Source

ugens.lisp (file)

Function: scale ROOT TYPE
Package

pc

Source

pc.lisp (file)

Function: sel-pos.kr DIV LEN CONTENTS
Package

sc-extensions

Source

ugens.lisp (file)

Function: t-line.ar START END DUR GATE
Package

sc-extensions

Source

ugens.lisp (file)

Function: t-line.kr START END DUR GATE
Package

sc-extensions

Source

ugens.lisp (file)

Function: tempo BPM &key RELAUNCH LAG
Package

sc-extensions

Source

server-side.lisp (file)

Function: tr DIV
Package

sc-extensions

Source

server-side.lisp (file)

Function: transpose VAL LST PC
Package

pc

Source

pc.lisp (file)

Function: wait-when DIV LEN
Package

sc-extensions

Source

server-side.lisp (file)


Previous: , Up: Definitions   [Contents][Index]

5.2 Internal definitions


Next: , Previous: , Up: Internal definitions   [Contents][Index]

5.2.1 Special variables

Special Variable: *chord->scale*
Package

pc

Source

pc.lisp (file)

Special Variable: *chord-syms*
Package

pc

Source

pc.lisp (file)

Special Variable: *chord-syms-scales*
Package

pc

Source

pc.lisp (file)

Special Variable: *counter-group*
Package

sc-extensions

Source

server-side.lisp (file)

Special Variable: *diatonic-major*
Package

pc

Source

pc.lisp (file)

Special Variable: *diatonic-minor*
Package

pc

Source

pc.lisp (file)

Special Variable: *max-beat*
Package

sc-extensions

Source

server-side.lisp (file)

Special Variable: *scales*
Package

pc

Source

pc.lisp (file)


Previous: , Up: Internal definitions   [Contents][Index]

5.2.2 Functions

Function: invert LST PC &rest ARGS
Package

pc

Source

pc.lisp (file)

Function: ivl-invert LST &rest ARGS
Package

pc

Source

pc.lisp (file)

Function: ivl-transpose VAL LST
Package

pc

Source

pc.lisp (file)

Function: pc PITCH
Package

pc

Source

pc.lisp (file)

Function: pc? PITCH PC
Package

pc

Source

pc.lisp (file)


Previous: , Up: Top   [Contents][Index]

Appendix A Indexes


Next: , Previous: , Up: Indexes   [Contents][Index]

A.1 Concepts

Jump to:   F   L   S  
Index Entry  Section

F
File, Lisp, sc-extensions.asd: The sc-extensions<dot>asd file
File, Lisp, sc-extensions/client-side.lisp: The sc-extensions/client-side<dot>lisp file
File, Lisp, sc-extensions/package.lisp: The sc-extensions/package<dot>lisp file
File, Lisp, sc-extensions/pc.lisp: The sc-extensions/pc<dot>lisp file
File, Lisp, sc-extensions/server-side.lisp: The sc-extensions/server-side<dot>lisp file
File, Lisp, sc-extensions/ugens.lisp: The sc-extensions/ugens<dot>lisp file
File, Lisp, sc-extensions/util.lisp: The sc-extensions/util<dot>lisp file

L
Lisp File, sc-extensions.asd: The sc-extensions<dot>asd file
Lisp File, sc-extensions/client-side.lisp: The sc-extensions/client-side<dot>lisp file
Lisp File, sc-extensions/package.lisp: The sc-extensions/package<dot>lisp file
Lisp File, sc-extensions/pc.lisp: The sc-extensions/pc<dot>lisp file
Lisp File, sc-extensions/server-side.lisp: The sc-extensions/server-side<dot>lisp file
Lisp File, sc-extensions/ugens.lisp: The sc-extensions/ugens<dot>lisp file
Lisp File, sc-extensions/util.lisp: The sc-extensions/util<dot>lisp file

S
sc-extensions.asd: The sc-extensions<dot>asd file
sc-extensions/client-side.lisp: The sc-extensions/client-side<dot>lisp file
sc-extensions/package.lisp: The sc-extensions/package<dot>lisp file
sc-extensions/pc.lisp: The sc-extensions/pc<dot>lisp file
sc-extensions/server-side.lisp: The sc-extensions/server-side<dot>lisp file
sc-extensions/ugens.lisp: The sc-extensions/ugens<dot>lisp file
sc-extensions/util.lisp: The sc-extensions/util<dot>lisp file

Jump to:   F   L   S  

Next: , Previous: , Up: Indexes   [Contents][Index]

A.2 Functions

Jump to:   A   B   C   D   F   G   I   M   N   O   P   Q   R   S   T   W  
Index Entry  Section

A
asr.kr: Exported functions

B
beat: Exported functions
bpm: Exported functions

C
chord: Exported functions
chord-to-scale: Exported functions
cnt: Exported functions
cosr: Exported macros

D
define-code: Exported macros
degree: Exported functions
del.kr: Exported functions
diatonic: Exported functions
div: Exported functions

F
Function, asr.kr: Exported functions
Function, beat: Exported functions
Function, bpm: Exported functions
Function, chord: Exported functions
Function, chord-to-scale: Exported functions
Function, cnt: Exported functions
Function, degree: Exported functions
Function, del.kr: Exported functions
Function, diatonic: Exported functions
Function, div: Exported functions
Function, g+: Exported functions
Function, invert: Internal functions
Function, ivl-invert: Internal functions
Function, ivl-transpose: Internal functions
Function, make-chord: Exported functions
Function, pattern: Exported functions
Function, pc: Internal functions
Function, pc-random: Exported functions
Function, pc?: Internal functions
Function, perc.kr: Exported functions
Function, poly: Exported functions
Function, quantize: Exported functions
Function, quantize-list: Exported functions
Function, r+: Exported functions
Function, rand-tr: Exported functions
Function, relative: Exported functions
Function, rrand: Exported functions
Function, safe-tr: Exported functions
Function, scale: Exported functions
Function, sel-pos.kr: Exported functions
Function, t-line.ar: Exported functions
Function, t-line.kr: Exported functions
Function, tempo: Exported functions
Function, tr: Exported functions
Function, transpose: Exported functions
Function, wait-when: Exported functions

G
g+: Exported functions
gate-lane: Exported macros

I
invert: Internal functions
ivl-invert: Internal functions
ivl-transpose: Internal functions

M
Macro, cosr: Exported macros
Macro, define-code: Exported macros
Macro, gate-lane: Exported macros
Macro, next-dur: Exported macros
Macro, on-trigger: Exported macros
Macro, pattern-at: Exported macros
Macro, pp: Exported macros
Macro, proxy-handle: Exported macros
Macro, sinr: Exported macros
Macro, with-grid: Exported macros
Macro, with-grid-poly: Exported macros
make-chord: Exported functions

N
next-dur: Exported macros

O
on-trigger: Exported macros

P
pattern: Exported functions
pattern-at: Exported macros
pc: Internal functions
pc-random: Exported functions
pc?: Internal functions
perc.kr: Exported functions
poly: Exported functions
pp: Exported macros
proxy-handle: Exported macros

Q
quantize: Exported functions
quantize-list: Exported functions

R
r+: Exported functions
rand-tr: Exported functions
relative: Exported functions
rrand: Exported functions

S
safe-tr: Exported functions
scale: Exported functions
sel-pos.kr: Exported functions
sinr: Exported macros

T
t-line.ar: Exported functions
t-line.kr: Exported functions
tempo: Exported functions
tr: Exported functions
transpose: Exported functions

W
wait-when: Exported functions
with-grid: Exported macros
with-grid-poly: Exported macros

Jump to:   A   B   C   D   F   G   I   M   N   O   P   Q   R   S   T   W  

Next: , Previous: , Up: Indexes   [Contents][Index]

A.3 Variables

Jump to:   *  
S  
Index Entry  Section

*
*chord->scale*: Internal special variables
*chord-syms*: Internal special variables
*chord-syms-scales*: Internal special variables
*counter-group*: Internal special variables
*diatonic-major*: Internal special variables
*diatonic-minor*: Internal special variables
*max-beat*: Internal special variables
*scales*: Internal special variables

S
Special Variable, *chord->scale*: Internal special variables
Special Variable, *chord-syms*: Internal special variables
Special Variable, *chord-syms-scales*: Internal special variables
Special Variable, *counter-group*: Internal special variables
Special Variable, *diatonic-major*: Internal special variables
Special Variable, *diatonic-minor*: Internal special variables
Special Variable, *max-beat*: Internal special variables
Special Variable, *scales*: Internal special variables

Jump to:   *  
S  

Previous: , Up: Indexes   [Contents][Index]

A.4 Data types

Jump to:   P   S  
Index Entry  Section

P
Package, pc: The pc package
Package, sc-extensions: The sc-extensions package
pc: The pc package

S
sc-extensions: The sc-extensions system
sc-extensions: The sc-extensions package
System, sc-extensions: The sc-extensions system

Jump to:   P   S