Skip to content

Commit

Permalink
Fixed up Common Lisp examples using sb-alien.
Browse files Browse the repository at this point in the history
  • Loading branch information
gogins committed Aug 29, 2018
1 parent dfc0844 commit de27f98
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion interfaces/csound.asd
Expand Up @@ -4,7 +4,7 @@
;;; Michael Gogins
;;; 11 July 2016
;;;
(require :asdf)
(require "asdf")
(asdf::defsystem "csound"
:name "csound"
:description "CFFI interface to the Csound C API."
Expand Down
2 changes: 2 additions & 0 deletions interfaces/sb-csound.asd
Expand Up @@ -11,6 +11,8 @@
:version "1.0"
:author "Michael Gogins <michael.gogins@gmail.com>"
:licence "LLGPL"
:depends-on ("sb-posix"
"cm2")
:serial t ;; the dependencies are linear.
:components
((:file "sb-csound")))
Expand Down
4 changes: 1 addition & 3 deletions interfaces/sb-csound.lisp
Expand Up @@ -80,8 +80,6 @@
(declaim (inline csoundCleanup))
(define-alien-routine "csoundCleanup" integer (csound integer))

(set-dispatch-macro-character #\# #\> #'cl-heredoc:read-heredoc)

(in-package :cm)
(use-package :sb-csound)

Expand Down Expand Up @@ -112,7 +110,7 @@ using 'test' for character equality.
when pos do (write-string replacement out)
while pos)))

(defun render-with-csound (sequence csd-text &optional (channel-offset 1) (velocity-scale 127) (csound nil))
(defun render-csound (sequence csd-text &optional (channel-offset 1) (velocity-scale 127) (csound nil))
"
Given a Common Music seq 'sequence', translates each of its events into a
Csound 'i' statement, optionally offsetting the channel number and/or
Expand Down

0 comments on commit de27f98

Please sign in to comment.