Jump to content

cl-patterns doesn't output sound


Recommended Posts

Hi,

I need a bit of help.

I would love to use cl-patterns which is a wonderful real time tool for live coding with cl-collider.

I've tried that example but doesn't works in fact works but no audio output.

If somebody more experienced than me could help here, it would be nice !

 

(sc:defsynth sine-kick ((freq 440) (time 0.25) (amp 0.5) (out 0))
    (let* ((env (sc:env-gen.kr 
                 (sc:env (list 0 1 1 0) 
                         (list 0.001 time 0.3)) :act :free))
           (fenv (sc:env-gen.kr
                  (sc:env (list 1 0)
                          (list time)) :level-scale freq))
           (sig (sc:sin-osc.ar fenv 0 (* env 0.2))))
      (sc:out.ar out (sc:pan2.ar sig 0 amp))))


(cl-patterns:pb :kick
  :embed (cl-patterns:pcycles "o-o-------oo----")
  :instrument :sine-kick
  :dur 1/4
  :quant 4)

 (cl-patterns:play :kick)

 

Best salutations to the always growing Opusmodus users community !

S.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

Terms of Use Privacy Policy