Monday, February 6, 2012

majalan

I haven't thought enough about "procedural scores" so far - procedural being a score that is somehow run rather than specified as a note list.

The most obvious first procedural score is a click track, here is a Csound instrument for clicks:

sr = 44100
kr = 4410
ksmps = 10
nchnls = 1

; Set the 0dbfs to 1.
0dbfs = 1

;
; A click for click tracks.
;


instr 1
  idur      = p3
  iamp      = p4
  ihdur     = idur * 0.5

  kampenv   expseg 0.01, 0.005, 1.0, ihdur, 0.02, ihdur - 0.005, 0.01
  kbeta     line 0, p3, 1

  ; pass envelope sweep
  kpenv  linseg 0.01, p3, 600.0

  a1        noise     1, kbeta
  abw       butterhp  a1, kpenv
            out       iamp * abw * kampenv
       

endin


Blog Archive

About Me

My photo
Disambiguating biog as there are a few Stephen Tetley's in the world. I'm neither a cage fighter or yachtsman. I studied Fine Art in the nineties (foundation Bradford 1992, degree Cheltenham 1992 - 95) then Computing part-time at Leeds Met graduating in 2003. I'm the Stephen Tetley on Haskell Cafe and Stackoverflow.