Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- dto@monad ~/emacs-config $ /usr/local/bin/snd -b /usr/local/share/snd/lint.scm -e "(lint \"/home/dto/mosaic/mosaic.scm\")"
- Cannot connect to server socket err = No such file or directory
- Cannot connect to server request channel
- jack server is not running or cannot be started
- JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
- JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
- loading lint.scm
- ;/home/dto/mosaic/mosaic.scm
- emit-org-entries (line 109): perhaps (format #f "~A" a) -> (object->string a #f)
- emit-org-entries (line 110): perhaps (format #f "~A" b) -> (object->string b #f)
- emit-org-entries (line 111): map could be for-each: (for-each (lambda (key) (display (org-docstring key) p)) keys)
- emit-org-entries (line 115): perhaps
- (let ((keys (map car *documentation*))) (set! keys (sort! keys (lambda (a... ->
- (let ((keys (sort! (map car *documentation*)
- (lambda (a b)
- (string<=? (format #f "~A" a) (format #f "~A" b))))))
- (let ((p (open-output-file (project-file "entries.org"))))
- (map (lambda (key) (display (org-docstring key) p)) keys)
- (close-output-port p)))
- set! (line 126): perhaps
- (set! (list-ref *mosaic-resources* index) value) ->
- (list-set! *mosaic-resources* index value)
- find-resource-file (line 134): misspelled 'null? in (null resource)?
- initialize-mosaic (line 147): perhaps
- (... (display "SchemeMosaic is Copyright (c) 2006-2007, 2019
- ") (display... ->
- (format () "SchemeMosaic is Copyright (c) 2006-2007, 2019
- by David O'Toole...
- disable-snap-mark-to-beat (line 191): can't set! (set! mark-hook *old-mark-hook*) (it is a constant)
- set! (line 265): setter function should take 2 arguments: (set! (setter mosaic-output-file) (lambda (value) (set!...
- set! (line 276): setter function should take 2 arguments: (set! (setter mosaic-project-directory) (lambda (value) (set!...
- set! (line 287): setter function should take 2 arguments: (set! (setter mosaic-session-directory) (lambda (value) (set!...
- define^ (line 285): trailing-slash?'s parameter string is called (string (- (length string) 1)): find a less confusing parameter name!
- trailing-slash? (line 291): eq? should be eqv? in (eq? #\/ (string (- (length string) 1)))
- trailing-slash? (line 291): perhaps (eq? #\/ (string (- (length string) 1))) -> #f
- make-instance^ (line 336): perhaps restrict cls which is not used in the let* body
- (let* ((cls (if (symbol? class) (symbol->value class) class)) (make... ->
- (let ((make (let ((cls (if (symbol? class)
- (symbol->value class)
- class)))
- (symbol->value
- (symbol "make-" (symbol->string (cls 'class-name)))))))
- ...)
- make-instance^ (line 336): perhaps
- (let* ((cls (if (symbol? class) (symbol->value class) class)) (make... ->
- (let* ((cls (if (symbol? class)
- (symbol->value class)
- class))
- (make (symbol->value (symbol "make-" (symbol->string (cls 'class-name)))))
- (object (apply make args)))
- (initialize-instance object)
- ...)
- make-instance^ (line 336): perhaps substitute cls into make:
- (let* ((cls (if (symbol? class) (symbol->value class) class)) (make... ->
- (let ((make (symbol->value (symbol "make-"
- (symbol->string
- ((if (symbol? class) (symbol->value class) class) 'class-name))))))
- ...)
- show-progress (line 417): perhaps use case instead of cond:
- (cond ((eq? *show-progress-style* 'terse) (format () ".")) ((eq?... ->
- (case *show-progress-style*
- ((terse) (format () "."))
- ((verbose) (format () "~A " s)))
- close-other-sounds (line 440): perhaps
- (when (not (= (sound->integer s) (sound->integer sound))) (close-sound sound)) ->
- (unless (= (sound->integer s) (sound->integer sound)) (close-sound sound))
- make-graphable (line 491): perhaps (set! output (cons i output)) (set! output (cons (car seq) output)) -> (set! output (cons (car seq) (cons i output)))
- make-graphable (line 494): perhaps
- (let ((output ())) (do ((i 0 (+ i 1))) ((null? seq)) (set! output (cons i... ->
- (do ((output ())
- (i 0 (+ i 1)))
- ((null? seq) (reverse output))
- ...)
- del-assoc (line 500): map could be for-each: (for-each (lambda (l) (when (list? l) (when (not (eq? key (car l))) (set!...
- del-assoc (line 501): perhaps
- (when (not (null? lst)) (map (lambda (l) (when (list? l) (when (not (eq?... ->
- (unless (null? lst) (map (lambda (l) (when (list? l) (when (not (eq? key...
- del-assoc (line 503): perhaps
- (when (list? l) (when (not (eq? key (car l))) (set! entries (cons l entries)))) ->
- (when (and (list? l) (not (eq? key (car l))))
- (set! entries (cons l entries)))
- del-assoc (line 504): perhaps
- (when (not (eq? key (car l))) (set! entries (cons l entries))) ->
- (unless (eq? key (car l)) (set! entries (cons l entries)))
- del-assoc (line 505): "l" is a really bad variable name
- flatten (line 510): quote is not needed here: '()
- remove-duplicates* (line 513): strange parameter for define^: (eq-func? equal?)
- remove-duplicates** (line 523): strange parameter for define^: (eq-func? equal?)
- remove-duplicates** (line 528): perhaps (format #f "~A" a) -> (object->string a #f)
- remove-duplicates** (line 529): perhaps (format #f "~A" b) -> (object->string b #f)
- log-2 (line 549): perhaps (/ (log x) (log 2)) -> (log x 2)
- region-property (line 576): perhaps
- (if (not (pair? properties)) #f (let ((entry (assoc property properties)))... ->
- (and (pair? properties)
- (let ((entry (assoc property properties)))
- (if (pair? entry) (cdr entry) #f)))
- region-property (line 578): perhaps
- (let ((entry (assoc property properties))) (if (pair? entry) (cdr entry) #f)) ->
- (cond ((assoc property properties) => cdr) (else #f))
- region-property (line 579): perhaps (if (pair? entry) (cdr entry) #f) -> (and (pair? entry) (cdr entry))
- set-region-property! (line 597): perhaps (eq? #f entries) -> (not entries)
- define-region-property (line 616): value not used, initially: (gensym) from let
- define-region-property (line 622): the name @pitch will be problematic in quasiquote
- define-region-property (line 622): the name @pitches will be problematic in quasiquote
- define-region-property (line 622): the name @pitch-class will be problematic in quasiquote
- define-region-property (line 622): the name @interval will be problematic in quasiquote
- define-region-property (line 622): the name @amplitude will be problematic in quasiquote
- define-region-property (line 622): the name @note will be problematic in quasiquote
- define-region-property (line 622): the name @notes will be problematic in quasiquote
- define-region-property (line 622): the name @spectrum will be problematic in quasiquote
- define-region-property (line 622): the name @probability will be problematic in quasiquote
- define-region-property (line 622): the name @down? will be problematic in quasiquote
- define-region-property (line 622): the name @up? will be problematic in quasiquote
- define-region-property (line 622): the name @on? will be problematic in quasiquote
- define-region-property (line 622): the name @off? will be problematic in quasiquote
- define-region-property (line 622): the name @strong? will be problematic in quasiquote
- define-region-property (line 622): the name @weak? will be problematic in quasiquote
- define-region-property (line 622): the name @syncopated? will be problematic in quasiquote
- define-region-property (line 622): the name @position will be problematic in quasiquote
- define-region-property (line 622): the name @percussivity will be problematic in quasiquote
- define-region-property-setter (line 622): the name @pitch will be problematic in quasiquote
- define-region-property-setter (line 622): the name @pitches will be problematic in quasiquote
- define-region-property-setter (line 622): the name @pitch-class will be problematic in quasiquote
- define-region-property-setter (line 622): the name @interval will be problematic in quasiquote
- define-region-property-setter (line 622): the name @amplitude will be problematic in quasiquote
- define-region-property-setter (line 622): the name @note will be problematic in quasiquote
- define-region-property-setter (line 622): the name @notes will be problematic in quasiquote
- define-region-property-setter (line 622): the name @spectrum will be problematic in quasiquote
- define-region-property-setter (line 622): the name @probability will be problematic in quasiquote
- define-region-property-setter (line 622): the name @down? will be problematic in quasiquote
- define-region-property-setter (line 622): the name @up? will be problematic in quasiquote
- define-region-property-setter (line 622): the name @on? will be problematic in quasiquote
- define-region-property-setter (line 622): the name @off? will be problematic in quasiquote
- define-region-property-setter (line 622): the name @strong? will be problematic in quasiquote
- define-region-property-setter (line 622): the name @weak? will be problematic in quasiquote
- define-region-property-setter (line 622): the name @syncopated? will be problematic in quasiquote
- define-region-property-setter (line 622): the name @position will be problematic in quasiquote
- define-region-property-setter (line 622): the name @percussivity will be problematic in quasiquote
- annotate (line 622): strange parameter for define^: (value #t)
- terminal? (line 714): perhaps
- (and (not (member symbol *alphabet*)) (not (gensym? symbol))) ->
- (not (or (member symbol *alphabet*) (gensym? symbol)))
- append-symbol (line 718): strange parameter for define^: (seq *sequence*)
- last-symbol (line 721): strange parameter for define^: (seq *sequence*)
- last-symbol (line 724): perhaps
- (when (not (null? seq)) (list-ref seq (- (length seq) 1))) ->
- (unless (null? seq) (list-ref seq (- (length seq) 1)))
- second-last-symbol (line 725): strange parameter for define^: (seq *sequence*)
- find-pair (line 745): perhaps
- (cond ((null? seq) #f) ((null? (cdr seq)) #f) ((and (equal? a (car seq))... ->
- (cond ((or (null? seq) (null? (cdr seq))) #f)
- ((and (equal? a (car seq))
- (equal? b (cadr seq)))
- seq)
- (#t (find-pair (cdr seq) a b)))
- in (when cell (set! (car cell) c) (set! (cdr cell) (cdr (cdr cell)))) (line 749),
- perhaps change cell to (pair? cell)
- replace-pair! (line 751): perhaps (cdr (cdr cell)) -> (cddr cell)
- record-pair! (line 774): map could be for-each: (for-each (lambda (entry) (let ((var (car entry)) (expansion (cdr entry)))...
- record-pair! (line 782): perhaps
- (when (and (list? expansion) (not (equal? var c))) (when (find-pair... ->
- (when (and (list? expansion)
- (not (equal? var c))
- (find-pair expansion a b))
- (set! (*symbols* var) (replace-pair! expansion a b c)))
- delete-rule! (line 805): map could be for-each: (for-each (lambda (entry) (let ((sym (car entry)) (exp (cdr entry))) (when...
- count-uses (line 817): map could be for-each: (for-each (lambda (entry) (let ((sym (car entry)) (expansion (cdr entry)))...
- count-uses (line 822): sym not used, initially: (car entry) from let
- count-uses (line 825): map could be for-each: (for-each (lambda (s) (when (equal? s search-symbol) (set! n (+ 1 n))))...
- variables (line 836): map could be for-each: (for-each (lambda (entry) (when (symbol? (car entry)) (set! keys (cons...
- enforce-utility! (line 849): perhaps
- (when (not (useful-rule? k)) (delete-rule! k)) ->
- (unless (useful-rule? k) (delete-rule! k))
- prefixes (line 861): perhaps
- (let ((ps ()) (last #f)) (do ((s seq (cdr s))) ((null? s)... ->
- (do ((ps ()) (last #f) (s seq (cdr s))) ...)
- suffixes (line 872): perhaps
- (let ((ss ())) (do ((s seq (cdr s))) ((null? s) (remove-duplicates** (cons... ->
- (do ((ss ()) (s seq (cdr s))) ...)
- all-suffixes (line 879): perhaps
- (append (list (suffixes symbol *sequence*)) (map (lambda (entry) (if... ->
- (cons (suffixes symbol *sequence*)
- (map (lambda (entry) (if (terminal? entry) () (suffixes symbol (cdr entry)))) *symbols*))
- reparse! (line 895): strange parameter for define^: (seq *sequence*)
- show-structure (line 903): strange parameter for define^: (grammar *symbols*)
- show-structure (line 903): perhaps use () with format since the string value is discarded:
- (format () "
- ::Sequitur output::
- ")
- show-structure (line 908): map could be for-each: (for-each (lambda (entry) (when (symbol? (car entry)) (format #t "~S -> ~S...
- find-structure (line 911): strange parameter for define^: (reparse? #f)
- find-structure (line 911): strange parameter for define^: (show? #f)
- find-structure (line 959): map could be for-each: (for-each (lambda (entry) (when (not (symbol? (car entry))) (set!...
- find-structure (line 962): perhaps
- (when (not (symbol? (car entry))) (set! (*symbols* (car entry)) #f)) ->
- (unless (symbol? (car entry)) (set! (*symbols* (car entry)) #f))
- structure-rules (line 968): perhaps (map (lambda (entry) entry) structure) -> structure
- note-lists-only (line 989): (assoc 'notes p): perhaps assoc -> assq
- find-sound-structure (line 989): strange parameter for define^: (show? #f)
- find-sound-structure (line 989): strange parameter for define^: (properties-fn descriptor-properties-only)
- convert-rule (line 1001): strange parameter for define^: (params-fn (lambda (s) (list s)))
- rule-expansions (line 1030): perhaps (if (pair? g) (cdr g) #f) -> (and (pair? g) (cdr g))
- define^ (line 1031): descriptor? looks boolean, but it can return (member (car (car x)) *region-property-names*)
- in (and (pair? x) (pair? (car x)) (symbol? (car (car x))) (member (car (car... (line 1039),
- perhaps change (member (car (car x)) *region-property-names*) to (memq ...)
- descriptor? (line 1041): perhaps (car (car x)) -> (caar x)
- descriptor? (line 1042): perhaps (car (car x)) -> (caar x)
- show-grammar (line 1042): perhaps use () with format since the string value is discarded:
- (format () "
- SchemeMosaic: Sequitur grammar output
- ")
- show-grammar (line 1046): map could be for-each: (for-each (lambda (entry) (when (and (symbol? (car entry)) (not (eq?...
- show-grammar (line 1050): perhaps use () with format since the string value is discarded:
- (format () "~W" (cdr (assoc +axiom-symbol+ grammar)))
- show-grammar (line 1052): in (cdr (assoc +axiom-symbol+ grammar)),
- cdr's argument should be a pair, but (assoc +axiom-symbol+ grammar) might also be a boolean?
- show-grammar (line 1052): perhaps use () with format since the string value is discarded:
- (format () "---------------------------------------
- ")
- show-structure (line 1053): show-structure definition repeated: (define^ (show-structure (grammar *symbols*)) (format #t "
- ::Sequitur...
- show-structure (line 1053): strange parameter for define^: (grammar *symbols*)
- show-structure (line 1053): perhaps use () with format since the string value is discarded:
- (format () "
- ::Sequitur output::
- ")
- show-structure (line 1057): map could be for-each: (for-each (lambda (entry) (when (symbol? (car entry)) (format #t "~S -> ~S...
- define-method^ (line 1161): perhaps (eq? #f (s 'output-regions)) -> (not (s 'output-regions))
- in (when target-regions (set! descriptors (map params-fn target-regions))) (line 1182),
- perhaps change target-regions to (sequence? target-regions)
- define-method^ (line 1183): perhaps
- (... (when target-regions (set! descriptors (map params-fn... ->
- (when target-regions
- (set! descriptors (map params-fn target-regions))
- (set! grammar (or grammar (find-grammar target-regions)))
- (set! axiom (cdr (assoc +axiom-symbol+ grammar)))
- (assert (not (null? grammar)))
- (assert (not (null? axiom))))
- define-method^ (line 1187): perhaps
- (set! grammar (or grammar (find-grammar target-regions))) ->
- (if (not grammar) (set! grammar (find-grammar target-regions)))
- define-method^ (line 1188): in (cdr (assoc +axiom-symbol+ grammar)),
- cdr's argument should be a pair, but (assoc +axiom-symbol+ grammar) might also be a boolean?
- set! (line 1196): setter function should take 2 arguments: (set! (setter current-synth) (lambda (value) (set! *synth* value)))
- with-synth (line 1195): perhaps
- (list-values 'begin (list 'set! '(current-synth) expression) (apply-values... ->
- (cons 'begin (cons (list 'set! '(current-synth) expression) body))
- define-method^ (line 1204): perhaps (eq? #f phrase) -> (not phrase)
- match-properties (line 1207): strange parameter for define^: (match-fn equal?)
- match-properties (line 1225): perhaps
- (when (pair? properties) (when (descriptor? (car properties)) (set!... ->
- (when (and (pair? properties)
- (descriptor? (car properties)))
- (set! properties (car properties)))
- fuzzy-match-descriptors (line 1237): strange parameter for define^: (match-fn equal?)
- fuzzy-match-descriptors (line 1243): perhaps
- (when (pair? descriptor-1) (when (descriptor? (car properties)) (set!... ->
- (when (and (pair? descriptor-1)
- (descriptor? (car properties)))
- (set! descriptor-1 (car descriptor-1)))
- fuzzy-match-descriptors (line 1246): perhaps
- (when (pair? descriptor-2) (when (descriptor? (car properties)) (set!... ->
- (when (and (pair? descriptor-2)
- (descriptor? (car properties)))
- (set! descriptor-2 (car descriptor-2)))
- fuzzy-match-descriptors (line 1254): perhaps (car (car properties-1)) -> (caar properties-1)
- fuzzy-match-descriptors (line 1255): perhaps (cadr (car properties-1)) -> (cadar properties-1)
- fuzzy-match-descriptors (line 1262): perhaps restrict property-name, property-entry-2 which are not used in the let* body
- (let* ((property-name (car (car properties-1))) (property-value-1 (cadr... ->
- (let* ((property-value-1 (cadr (car properties-1)))
- (property-value-2 (let ((property-entry-2 (let ((property-name (car (car properties-1))))
- (assoc property-name descriptor-2))))
- (if (pair? property-entry-2)
- (cadr property-entry-2)
- no-value))))
- ...)
- fuzzy-match-descriptors (line 1262): perhaps split this let*:
- (let* ((property-name (car (car properties-1))) (property-value-1 (cadr... ->
- (let* ((property-name (car (car properties-1)))
- (property-entry-2 (assoc property-name descriptor-2)))
- (let ((property-value-1 (cadr (car properties-1)))
- (property-value-2 (if (pair? property-entry-2)
- (cadr property-entry-2)
- no-value)))
- ...))
- fuzzy-match-descriptors (line 1262): perhaps
- (let ((match? #f) (no-value (gensym))) (do ((properties-1 descriptor-1... ->
- (do ((match? #f) (no-value (gensym)) (properties-1 descriptor-1 (cdr...
- fuzzy-match-properties (line 1262): strange parameter for define^: (match-fn equal?)
- define-method^ (line 1285): perhaps (eq? #f (s 'grammar)) -> (not (s 'grammar))
- define-method^ (line 1294): perhaps
- (if (pair? candidates) (set! regions (cons (if (not (s 'random-match?))... ->
- (set! regions (cons (if (pair? candidates)
- (if (not (s 'random-match?))
- (car candidates)
- (random-choose candidates))
- the-silent-region)
- regions))
- define-method^ (line 1296): perhaps
- (if (not (s 'random-match?)) (car candidates) (random-choose candidates)) ->
- ((if (not (s 'random-match?)) car random-choose) candidates)
- define-method^ (line 1304): perhaps restrict extra-region which is not used in the let* body
- (let* ((extra-region (car (s 'target-regions))) (the-silent-region... ->
- (let ((the-silent-region (let ((extra-region (car (s 'target-regions))))...
- define-method^ (line 1304): perhaps substitute extra-region into the-silent-region:
- (let* ((extra-region (car (s 'target-regions))) (the-silent-region... ->
- (let ((the-silent-region (silent-region (car (s 'target-regions))))) ...)
- violin-region (line 1326): strange parameter for define^: (start-time 0)
- define-method^ (line 1342): perhaps
- (or (not (list? descriptor)) (not (pair? (assoc 'notes descriptor)))) ->
- (not (and (list? descriptor) (pair? (assoc 'notes descriptor))))
- define-method^ (line 1344): assoc returns either #f or a pair, so (pair? (assoc 'notes descriptor)) -> (assoc 'notes descriptor)
- define-method^ (line 1344): (assoc 'notes descriptor): perhaps assoc -> assq
- define-method^ (line 1346): in (cdr (assoc 'notes descriptor)),
- cdr's argument should be a pair, but (assoc 'notes descriptor) might also be a boolean?
- define-method^ (line 1346): (assoc 'notes descriptor): perhaps assoc -> assq
- define-method^ (line 1348): perhaps (if (pair? (cdr notes)) (cdr notes) #f) -> (and (pair? (cdr notes)) (cdr notes))
- define-method^ (line 1357): perhaps (* 1 0.6000000000000001) -> 0.6000000000000001
- define-method^ (line 1365): perhaps (* 0.5 (/ 1 (* 1.5 j))) -> (* 0.5 (/ (* 1.5 j)))
- define-method^ (line 1365): amps not used, initially: (find-highest-amplitudes (car (match-properties descriptor (v... from let*
- define-method^ (line 1365): perhaps split this let*:
- (let* ((notes (cdr (assoc 'notes descriptor))) (note-1 (car notes)) (note+... ->
- (let* ((notes (cdr (assoc 'notes descriptor)))
- (amps (find-highest-amplitudes (car (match-properties descriptor (v 'target-regions))))))
- (let ((note-1 (car notes))
- (note+ (if (pair? (cdr notes)) (cdr notes) #f))
- (output-region #f))
- ...))
- define-method^ (line 1365): mnv not used, initially: (v 'max-note-value) from let*
- file->synth (line 1408): strange parameter for define^: (slice-size (mosaic-slice-size))
- file->synth-verbatim (line 1417): strange parameter for define^: (slice-size (mosaic-slice-size))
- shift-match-synths (line 1489): strange parameter for define^: (tolerance 5.0)
- morph-match-synths (line 1504): strange parameter for define^: (tolerance 5.0)
- morph-match-synths (line 1511): let* could be let: (let* ((shifter (shift-match-synths target-synth source-synth tolerance)))...
- morph-match-synths (line 1512): perhaps
- (let* ((shifter (shift-match-synths target-synth source-synth tolerance)))... ->
- (let () (stretch-match-synths target-synth (shift-match-synths...
- mosaic-slice-size (line 1512): strange parameter for define^: (tempo *mosaic-beats-per-minute*)
- mosaic-slice-size (line 1512): strange parameter for define^: (divisor *mosaic-beats-per-measure*)
- scan-sound^ (line 1539): strange parameter for define^: (save-position? #t)
- scan-sound^ (line 1561): the name @position will be problematic in quasiquote
- scan-sound^ (line 1561): the name @position will be problematic in quasiquote
- scan-sound^ (line 1562): perhaps restrict num-blocks which is not used in the let* body
- (let* ((len (framples snd chn)) (num-blocks (floor (/ len (srate snd)... ->
- (let* ((len (framples snd chn))
- (actual-block-len (let ((num-blocks (floor (/ len (srate snd) block-len))))
- (ceiling (/ len num-blocks))))
- (results ()))
- ...)
- scan-sound^ (line 1562): perhaps split this let*:
- (let* ((len (framples snd chn)) (num-blocks (floor (/ len (srate snd)... ->
- (let* ((len (framples snd chn))
- (num-blocks (floor (/ len (srate snd) block-len))))
- (let ((actual-block-len (ceiling (/ len num-blocks)))
- (results ()))
- ...))
- scan-sound^ (line 1562): perhaps
- (let* ((len (framples snd chn)) (num-blocks (floor (/ len (srate snd)... ->
- (let* ((len (framples snd chn))
- (num-blocks (floor (/ len (srate snd) block-len)))
- (actual-block-len (ceiling (/ len num-blocks))))
- (do ((results ())
- (beg 0 (+ beg actual-block-len))
- (pos 0 (+ pos 1)))
- ...))
- split-sound-to-regions (line 1562): strange parameter for define^: (chn 0)
- split-sound-to-vectors (line 1569): strange parameter for define^: (chn 0)
- define^ (line 1580): mixdown parameter can't be a keyword: (mixdown :rest spec)
- define^ (line 1598): mixdown-synths parameter can't be a keyword: (mixdown-synths :rest spec)
- mixdown-synths (line 1603): perhaps
- (if (not (number? s)) (merge-sound (new-sound :channels 2) (find-regions s)) s) ->
- (if (number? s) s (merge-sound (new-sound :channels 2) (find-regions s)))
- perhaps (merge-sound (new-sound :channels 2) (find-regions s)) -> (synth-sound s)
- scale-region (line 1605): strange parameter for define^: (amp 1.0)
- merge-sound-insert^ (line 1622): strange parameter for define^: (chn 0)
- merge-sound-insert^ (line 1633): perhaps
- (when (not (null? fn)) (fn pos (framples r) snd chn)) ->
- (unless (null? fn) (fn pos (framples r) snd chn))
- merge-sound-insert (line 1635): strange parameter for define^: (chn 0)
- merge-sound-insert-raw (line 1640): strange parameter for define^: (chn 0)
- shuffle (line 1654): strange parameter for define^: (amount 1.0)
- shuffle (line 1665): perhaps
- (if (null? regions) () (if (<= (random 1.0) amount) (if (> (length... ->
- (cond ((null? regions) ())
- ((> (random 1.0) amount)
- (cons (car regions) (shuffle (cdr regions) pattern amount)))
- ((<= (length regions) 3) regions)
- (else
- (let ((a (car regions))
- (b (car (cdr regions)))
- (c (car (cdr (cdr regions))))
- (d (car (cdr (cdr (cdr regions))))))
- (append (eval (list-values 'list (apply-values pattern)))
- (shuffle (cdr (cdr (cdr (cdr regions)))) pattern amount)))))
- shuffle (line 1668): perhaps place the much shorter branch first:
- (if (> (length regions) 3) (let ((a (car regions)) (b (car (cdr regions)))... ->
- (if (<= (length regions) 3) regions (let ((a (car regions)) (b (car (cdr...
- shuffle (line 1670): perhaps (car (cdr regions)) -> (cadr regions)
- shuffle (line 1671): perhaps (car (cdr (cdr regions))) -> (caddr regions)
- shuffle (line 1672): perhaps (car (cdr (cdr (cdr regions)))) -> (cadddr regions)
- shuffle (line 1675): perhaps (list-values 'list (apply-values pattern)) -> (cons 'list pattern)
- shuffle (line 1676): perhaps (cdr (cdr (cdr (cdr regions)))) -> (cddddr regions)
- shuffle (line 1676): d not used, initially: (car (cdr (cdr (cdr regions)))) from let
- shuffle (line 1676): c not used, initially: (car (cdr (cdr regions))) from let
- shuffle (line 1676): b not used, initially: (car (cdr regions)) from let
- shuffle (line 1676): a not used, initially: (car regions) from let
- shuffle-8 (line 1681): strange parameter for define^: (amount 1.0)
- shuffle-8 (line 1686): perhaps
- (if (null? regions) () (if (<= (random 1.0) amount) (if (> (length... ->
- (cond ((null? regions) ())
- ((> (random 1.0) amount)
- (cons (car regions) (shuffle-8 (cdr regions) pattern amount)))
- ((<= (length regions) 7) regions)
- (else
- (let ((a (car regions))
- (b (car (cdr regions)))
- (c (car (cdr (cdr regions))))
- (d (car (cdr (cdr (cdr regions)))))
- (e (car (cdr (cdr (cdr (cdr regions))))))
- (f (car (cdr (cdr (cdr (cdr (cdr regions)))))))
- (g (car (cdr (cdr (cdr (cdr (cdr (cdr regions))))))))
- (h (car (cdr (cdr (cdr (cdr (cdr (cdr (cdr regions))))))))))
- (append (eval (list-values 'list (apply-values pattern)))
- (shuffle-8 (cdr (cdr (cdr (cdr (cdr (cdr (cdr (cdr regions)))))))) pattern amount)))))
- shuffle-8 (line 1689): perhaps place the much shorter branch first:
- (if (> (length regions) 7) (let ((a (car regions)) (b (car (cdr regions)))... ->
- (if (<= (length regions) 7) regions (let ((a (car regions)) (b (car (cdr...
- shuffle-8 (line 1692): perhaps (car (cdr regions)) -> (cadr regions)
- shuffle-8 (line 1693): perhaps (car (cdr (cdr regions))) -> (caddr regions)
- shuffle-8 (line 1694): perhaps (car (cdr (cdr (cdr regions)))) -> (cadddr regions)
- shuffle-8 (line 1695): perhaps (car (cdr (cdr (cdr (cdr regions))))) -> (cadddr (cdr regions))
- shuffle-8 (line 1696): perhaps (car (cdr (cdr (cdr (cdr (cdr regions)))))) -> (cadddr (cdr (cdr regions)))
- shuffle-8 (line 1697): perhaps
- (car (cdr (cdr (cdr (cdr (cdr (cdr regions))))))) ->
- (cadddr (cdr (cdr (cdr regions))))
- shuffle-8 (line 1698): perhaps
- (car (cdr (cdr (cdr (cdr (cdr (cdr (cdr regions)))))))) ->
- (cadddr (cdr (cdr (cdr (cdr regions)))))
- shuffle-8 (line 1699): perhaps (list-values 'list (apply-values pattern)) -> (cons 'list pattern)
- shuffle-8 (line 1700): perhaps
- (cdr (cdr (cdr (cdr (cdr (cdr (cdr (cdr regions)))))))) ->
- (cddddr (cdr (cdr (cdr (cdr regions)))))
- shuffle-8 (line 1700): h not used, initially: (car (cdr (cdr (cdr (cdr (cdr (cdr (cdr regions)))))))) from let
- shuffle-8 (line 1700): g not used, initially: (car (cdr (cdr (cdr (cdr (cdr (cdr regions))))))) from let
- shuffle-8 (line 1700): f not used, initially: (car (cdr (cdr (cdr (cdr (cdr regions)))))) from let
- shuffle-8 (line 1700): e not used, initially: (car (cdr (cdr (cdr (cdr regions))))) from let
- shuffle-8 (line 1700): d not used, initially: (car (cdr (cdr (cdr regions)))) from let
- shuffle-8 (line 1700): c not used, initially: (car (cdr (cdr regions))) from let
- shuffle-8 (line 1700): b not used, initially: (car (cdr regions)) from let
- shuffle-8 (line 1700): a not used, initially: (car regions) from let
- vaporwave (line 1712): strange parameter for define^: (pattern vapor-8)
- echo-sound (line 1731): strange parameter for define^: (time 0.25)
- echo-sound (line 1731): strange parameter for define^: (scaler 0.4)
- warp (line 1907): strange parameter for define^: (shift 1.0)
- warp (line 1907): strange parameter for define^: (stretch 1.0)
- warp (line 1907): strange parameter for define^: (seglen 0.15)
- warp (line 1907): strange parameter for define^: (hop 0.05)
- warp (line 1907): strange parameter for define^: (ramp 0.01)
- warp (line 1950): perhaps restrict output-file which is not used in the let* body
- (let* ((file-0 (snd-tempnam)) (file-1 (snd-tempnam)) (input-sound... ->
- (let* ((file-0 (snd-tempnam))
- (file-1 (snd-tempnam))
- (input-sound (new-sound :channels 2))
- (output-sound (let ((output-file (snd-tempnam)))
- (new-sound :channels 2 :srate 44100 :file output-file)))
- (new-region ()))
- ...)
- warp (line 1950): perhaps substitute output-file into output-sound:
- (let* ((file-0 (snd-tempnam)) (file-1 (snd-tempnam)) (input-sound... ->
- (let* ((file-0 (snd-tempnam))
- (file-1 (snd-tempnam))
- (input-sound (new-sound :channels 2))
- (output-sound (new-sound :channels 2 :srate 44100 :file (snd-tempnam)))
- (new-region ()))
- ...)
- warp (line 1950): new-region is only used in expression 4 (of 4),
- (let ((sound-1 (find-sound (with-sound (:channels 1) (exp-snd file-0 :beg... of
- (let* ((file-0 (snd-tempnam)) (file-1 (snd-tempnam)) (input-sound...
- find-spectrum (line 1980): perhaps (* 1 8192) -> 8192
- find-spectrum (line 1981): perhaps (* 1 4096) -> 4096
- find-spectrum (line 2106): closestamp not used, initially: 10.0 from let
- find-spectrum (line 2106): closestp not used, initially: -1 from let
- find-spectrum (line 2110): obank not used, initially: #f from let
- find-spectrum (line 2110): ramped-attack not used, initially: (make-float-vector attack-size) from let
- find-spectrum (line 2110): splice-attack not used, initially: (number? attack) from let
- find-spectrum (line 2110): cur-oscils not used, initially: max-oscils from let
- find-spectrum (line 2031): furthest-away-accepted not used, initially: 0.1 from let
- find-spectrum (line 2026): ihifreq not used, initially: (hz->radians ifreq) from let
- find-spectrum (line 2026): sweeps not used, initially: (make-float-vector max-oscils) from let
- find-spectrum (line 2026): freqs not used, initially: (make-float-vector max-oscils) from let
- find-spectrum (line 2026): rates not used, initially: (make-float-vector max-oscils) from let
- find-spectrum (line 2026): amps not used, initially: (make-float-vector max-oscils) from let
- find-spectrum (line 2110): assuming we see all set!s, the binding (cur-oscils max-oscils) is pointless: perhaps
- (let ((end (+ start (framples region))) (fil (make-readin file)) (fdr... ->
- (let ((end (+ start (framples region)))
- (fil (make-readin file))
- (fdr (make-float-vector fftsize-1))
- (fdi (make-float-vector fftsize-1))
- (window (make-fft-window blackman2-window fftsize-1))
- (current-peak-freqs (make-float-vector max-oscils))
- (last-peak-freqs (make-float-vector max-oscils))
- (current-peak-amps (make-float-vector max-oscils))
- (last-peak-amps (make-float-vector max-oscils))
- (peak-amps (make-float-vector max-peaks-1))
- (peak-freqs (make-float-vector max-peaks-1))
- (amps (make-float-vector max-oscils))
- (rates (make-float-vector max-oscils))
- (freqs (make-float-vector max-oscils))
- (sweeps (make-float-vector max-oscils))
- (ihifreq (hz->radians ifreq))
- (fftscale (/ 1.0 fftsize-1 0.42323000000000005))
- (fft-mag (/ *clm-srate* fftsize-1))
- (furthest-away-accepted 0.1000)
- (filptr 0)
- (filend 0)
- (splice-attack (number? attack))
- (ramped-attack (make-float-vector attack-size)))
- (let ...))
- find-spectrum (line 2110): perhaps move 'attack-size into the inner let (line 1996):
- (let ((max-peaks-1 max-peaks) (output ()) (current-freq** 60.0) (file... ->
- (let ((attack-size 1) (ifreq (/ 1.0 outhop)) (max-oscils (* 2...
- find-spectrum (line 2022): perhaps move 'attack into the inner let (line 1996):
- (let ((max-peaks-1 max-peaks) (output ()) (current-freq** 60.0) (file... ->
- (let ((attack #f) (ifreq (/ 1.0 outhop)) (max-oscils (* 2 max-peaks-1)))...
- find-spectrum (line 2110): attack-size can be moved to find-spectrum's closure
- find-spectrum (line 2110): attack can be moved to find-spectrum's closure
- find-spectrum (line 2110): time-scaler can be moved to find-spectrum's closure
- find-spectrum (line 2110): start can probably be moved to find-spectrum's closure
- region-spectrum* (line 2121): the name @spectrum will be problematic in quasiquote
- region-spectrum* (line 2122): the name @spectrum will be problematic in quasiquote
- region-spectrum* (line 2122): the name @spectrum will be problematic in quasiquote
- region-pitch* (line 2133): the name @pitch will be problematic in quasiquote
- region-pitch* (line 2134): the name @pitch will be problematic in quasiquote
- region-pitch* (line 2134): the name @pitch will be problematic in quasiquote
- region-pitches* (line 2140): the name @pitches will be problematic in quasiquote
- region-pitches* (line 2141): the name @pitches will be problematic in quasiquote
- region-pitches* (line 2141): the name @pitches will be problematic in quasiquote
- region-note* (line 2152): the name @note will be problematic in quasiquote
- region-note* (line 2153): the name @note will be problematic in quasiquote
- region-note* (line 2153): the name @note will be problematic in quasiquote
- sort-frequencies (line 2170): perhaps
- (let ((pairs ()) (len (length amps))) (do ((i 0 (+ i 1))) ((= i len))... ->
- (do ((pairs ())
- (len (length amps))
- (i 0 (+ i 1)))
- ((= i len) (sort! pairs (lambda (a b) (>= (cadr a) (cadr b)))))
- ...)
- loudest-freqs (line 2170): strange parameter for define^: (n 2)
- loudest-notes (line 2173): strange parameter for define^: (n 2)
- define (line 2176): *maximum-notes* is used before it is defined: (define *maximum-notes* 5)
- region-notes* (line 2181): the name @notes will be problematic in quasiquote
- region-notes* (line 2182): the name @notes will be problematic in quasiquote
- region-notes* (line 2182): the name @notes will be problematic in quasiquote
- find-highest-amplitudes (line 2202): perhaps (cadr (car p)) -> (cadar p)
- find-highest-amplitudes (line 2202): let* variable amps is declared twice
- find-highest-amplitudes (line 2202): pair not used, initially: #f from let*
- find-highest-amplitudes (line 2195): notes not used, initially: (region-notes* region) from let*
- find-highest-amplitudes (line 2202): perhaps
- (let* ((notes (region-notes* region)) (spec (region-spectrum* region))... ->
- (let* ((notes (region-notes* region))
- (spec (region-spectrum* region))
- (freqs (spectrum-freqs spec))
- (amps (spectrum-amps spec))
- (pairs (sort-frequencies amps freqs))
- (pair #f))
- (do ((amps 0.0)
- (p pairs (cdr p)))
- ...))
- try-match (line 2244): perhaps
- (do ((s source (cdr s))) ((null? s)) (let ((score (score-function t (car... ->
- (for-each (lambda ([s])
- (let ((score (score-function t [s])))
- (when (<= score best-score)
- (set! best [s])
- (set! best-score score))))
- source)
- shift-match-regions (line 2256): strange parameter for define^: (tolerance 5.0)
- stretch-match-regions (line 2271): strange parameter for define^: (stretch-fn stretch-region)
- stretch-match-regions (line 2290): perhaps
- (let ((length-ratio (/ target-length (framples source)))) (stretch-fn... ->
- (stretch-fn source (/ 1 (/ target-length (framples source))))
- stretch-match-regions (line 2291): perhaps (/ 1 length-ratio) -> (/ length-ratio)
- mix-pairwise (line 2304): this looks suspicious: (r1 regions1 (cdr regions1))
- mix-pairwise (line 2306): perhaps
- (if (not (null? r2)) (begin (push! (mix-regions (car r1) (car r2))... ->
- (if (null? r2)
- (push! (car r1) output-regions)
- (begin
- (push! (mix-regions (car r1) (car r2)) output-regions)
- (set! r2 (cdr r2))))
- mix-pairwise (line 2310): perhaps
- (let ((r2 regions2)) (do ((r1 regions1 (cdr regions1))) ((null? r1)... ->
- (do ((r2 regions2) (r1 regions1 (cdr regions1))) ...)
- mix-pairwise (line 2307): pos not used, initially: 0 from let
- mix-pairwise (line 2310): perhaps
- (let ((pos 0) (output-regions ())) (let ((r2 regions2)) (do ((r1 regions1... ->
- (let ((pos 0)
- (output-regions ())
- (r2 regions2))
- (do ((r1 regions1 (cdr regions1)))
- ((null? r1) output-regions)
- (if (not (null? r2))
- (begin
- (push! (mix-regions (car r1) (car r2)) output-regions)
- (set! r2 (cdr r2)))
- (push! (car r1) output-regions))))
- merge-pairwise (line 2319): this looks suspicious: (r1 regions1 (cdr regions1))
- merge-pairwise (line 2322): perhaps
- (when (not (null? r2)) (mix-region (car r2) pos snd chn) (set! r2 (cdr r2))) ->
- (unless (null? r2) (mix-region (car r2) pos snd chn) (set! r2 (cdr r2)))
- merge-pairwise (line 2326): perhaps
- (let ((r2 regions2)) (do ((r1 regions1 (cdr regions1))) ((null? r1))... ->
- (do ((r2 regions2) (r1 regions1 (cdr regions1))) ...)
- find-tempo (line 2345): in (command-to-string (bpm-command-string file)),
- command-to-string's argument should be a string, but (bpm-command-string file) might also be #f
- process-sound^ (line 2369): perhaps
- (let ((beg (* n actual-block-len))) (let ((reg (make-region beg (+ beg... ->
- (let* ((beg (* n actual-block-len))
- (reg (make-region beg (+ beg actual-block-len -1) snd chn)))
- (func reg beg actual-block-len new chn)
- ...)
- process-sound^ (line 2369): perhaps
- (let ((actual-block-len (ceiling (/ len num-blocks)))) (do ((n 0 (+ n 1)))... ->
- (do ((actual-block-len (ceiling (/ len num-blocks)))
- (n 0 (+ n 1)))
- ((= n num-blocks) (save-sound new) new)
- ...)
- define-method^ (line 2438): perhaps (eq? #f slice-size) -> (not slice-size)
- sequitur-test-1 (line 2503): strange parameter for define^: (reparse? #f)
- sequitur-test-1 (line 2503): strange parameter for define^: (show? #f)
- sequitur-test-2 (line 2508): strange parameter for define^: (reparse? #f)
- sequitur-test-2 (line 2508): strange parameter for define^: (show? #f)
- leading-voice (line 2531): (assoc 'notes entries): perhaps assoc -> assq
- leading-voice (line 2532): (assoc 'notes entries): perhaps assoc -> assq
- leading-voice (line 2536): perhaps (if (< n1 n2) n1 n2) -> (min n1 n2)
- leading-voice (line 2536): perhaps restrict entry which is not used in the let* body
- (let* ((entry (assoc 'notes entries)) (ns (cdr entry)) (n1 (car ns)) (n2... ->
- (let* ((ns (let ((entry (assoc 'notes entries)))
- (cdr entry)))
- (n1 (car ns))
- (n2 (cadr ns)))
- ...)
- leading-voice (line 2536): perhaps split this let*:
- (let* ((entry (assoc 'notes entries)) (ns (cdr entry)) (n1 (car ns)) (n2... ->
- (let* ((entry (assoc 'notes entries))
- (ns (cdr entry)))
- (let ((n1 (car ns))
- (n2 (cadr ns)))
- ...))
- leading-voice (line 2536): perhaps substitute entry into ns:
- (let* ((entry (assoc 'notes entries)) (ns (cdr entry)) (n1 (car ns)) (n2... ->
- (let* ((ns (cdr (assoc 'notes entries)))
- (n1 (car ns))
- (n2 (cadr ns)))
- ...)
- kodaly-regions (line 2571): strange parameter for define^: (slice-size *kodaly-slice-size*)
- takes2-regions (line 2579): strange parameter for define^: (slice-size *kodaly-slice-size*)
- whitney-regions (line 2584): strange parameter for define^: (slice-size *kodaly-slice-size*)
- resynthesis-test-1 (line 2593): let* could be let: (let* ((regions (kodaly-regions))) (let ((syn (make-instance^ 'synth...
- resynthesis-test-1 (line 2594): perhaps, assuming generate-sound is not a macro,
- (let ((syn (make-instance^ 'synth :target-regions regions)))... ->
- (generate-sound (make-instance^ 'synth :target-regions regions))
- resynthesis-test-1 (line 2595): perhaps
- (let* ((regions (kodaly-regions))) (let ((syn (make-instance^ 'synth... ->
- (let* ((regions (kodaly-regions)) (syn (make-instance^ 'synth...
- resynthesis-test-1a (line 2598): let* could be let: (let* ((regions (kodaly-regions))) (let ((s (make-instance^ 'synth...
- resynthesis-test-1a (line 2603): perhaps
- (let ((s (make-instance^ 'synth :target-regions regions))) (let ((sound... ->
- (let* ((s (make-instance^ 'synth :target-regions regions))
- (sound (merge-sound (new-sound :channels 2) (find-regions s *kodaly-resynth-pattern*))))
- (show-grammar (s 'grammar))
- ...)
- resynthesis-test-1a (line 2603): perhaps
- (let* ((regions (kodaly-regions))) (let ((s (make-instance^ 'synth... ->
- (let* ((regions (kodaly-regions))
- (s (make-instance^ 'synth :target-regions regions)))
- (let ((sound (merge-sound (new-sound :channels 2) (find-regions s *kodaly-resynth-pattern*))))
- (show-grammar (s 'grammar))
- sound))
- resynthesis-test-3 (line 2653): map could be for-each: (for-each (lambda (r) (remember-region-properties '(notes) r)) krs)
- resynthesis-test-4 (line 2662): map could be for-each: (for-each (lambda (r) (remember-region-properties '(notes) r)) wrs)
- resynthesis-test-4 (line 2666): perhaps, assuming generate-sound is not a macro,
- (let ((whitney-violin (make-instance^ 'violin-synth :target-regions wrs)))... ->
- (generate-sound (make-instance^ 'violin-synth :target-regions wrs))
- resynthesis-test-5 (line 2672): let* could be let: (let* ((kodaly-regions (split-sound-to-regions (* *kodaly-slice-size* 0.4)...
- resynthesis-test-5 (line 2672): map could be for-each: (for-each region-notes* kodaly-regions)
- resynthesis-test-5 (line 2674): perhaps, assuming generate-sound is not a macro,
- (let ((kodaly-violin (make-violin-synth kodaly-regions))) (generate-sound... ->
- (generate-sound (make-violin-synth kodaly-regions))
- resynthesis-test-6 (line 2680): let* could be let: (let* ((kodaly-regions (split-sound-to-regions (* *kodaly-slice-size* 0.4)...
- resynthesis-test-6 (line 2680): map could be for-each: (for-each region-notes* kodaly-regions)
- resynthesis-test-6 (line 2682): perhaps
- (let ((kodaly-violin (make-violin-synth kodaly-regions))) (generate-sound... ->
- (generate-sound (make-violin-synth kodaly-regions) *kodaly-resynth-pattern*)
- shift-match-test-1 (line 2689): perhaps, assuming generate-sound is not a macro,
- (let ((synth (make-shift-match-synth :source-regions (whitney-regions)... ->
- (generate-sound (make-shift-match-synth :source-regions (whitney-regions)...
- new-stretch-test (line 2696): perhaps (/ 1 0.5) -> 2.0
- new-stretch-test (line 2699): perhaps, assuming generate-sound is not a macro,
- (let ((mosaic (make-mosaic-synth :processor (lambda (regions) (map (lambda... ->
- (generate-sound (make-mosaic-synth
- :processor (lambda (regions)
- (map (lambda (r) (stretch-region* r (/ 1 0.5))) regions))
- :input-file (project-file "it-takes-2-clip.wav")
- :tempo (find-tempo (project-file "it-takes-2-clip.wav"))
- :slice-size eighth-note))
- new-speed-test (line 2710): perhaps, assuming generate-sound is not a macro,
- (let ((mosaic (make-mosaic-synth :processor (lambda (regions) (map (lambda... ->
- (generate-sound (make-mosaic-synth
- :processor (lambda (regions)
- (map (lambda (r) (speed-region r 0.741)) regions))
- :input-file (project-file "it-takes-2-clip.wav")
- :tempo (find-tempo (project-file "it-takes-2-clip.wav"))
- :slice-size eighth-note))
- mix-synth (line 2729): perhaps (eq? #f name) -> (not name)
- when (line 2789): perhaps (eq? #f *mosaic-menu*) -> (not *mosaic-menu*)
- vocal-test (line 2825): perhaps (/ 1 0.7000000000000001) -> 1.4285714285714284
- vocal-test (line 2835): give-bpm not used, initially: bpm from let*
- vocal-test (line 2874): perhaps restrict vocal-file which is not used in the let* body
- (let* ((give-file (project-file "it-takes-2-clip.wav")) (vocal-file... ->
- (let* ((give-file (project-file "it-takes-2-clip.wav"))
- (vocal (let ((vocal-file (project-file "whitney.wav")))
- (open-sound vocal-file)))
- (bpm (find-tempo give-file))
- (give-mosaic (make-instance^
- 'mosaic-synth
- :processor (lambda (regions)
- (map (lambda (r)
- (stretch-region* (shift-region r 0.741) (/ 1 0.7000000000000001)))
- regions))
- :input-file give-file
- :output-file (project-file "mosaic/backing-track.wav")
- :tempo bpm
- :slice-size (/ bpm 60 4)))
- (give-regions (give-mosaic 'output-regions))
- (give-bpm bpm)
- (give-slice-size (give-mosaic 'slice-size))
- (vocal-regions (split-sound-to-regions give-slice-size vocal 0))
- (side-regions (split-sound-to-regions give-slice-size
- (open-sound (project-file "unchained-clip.wav")) 0))
- (vocal-match-regions (shift-match-regions give-regions vocal-regions))
- (vocal-mosaic (merge-sound (new-sound) vocal-match-regions))
- (side-mosaic (merge-sound (new-sound) (shift-match-regions vocal-match-regions side-regions)))
- (extra-mosaic (merge-sound (new-sound)
- (shift-match-regions side-regions
- (split-sound-to-regions give-slice-size (open-sound *extra-file*) 0)))))
- ...)
- vocal-test (line 2874): perhaps substitute vocal-file into vocal:
- (let* ((give-file (project-file "it-takes-2-clip.wav")) (vocal-file... ->
- (let* ((give-file (project-file "it-takes-2-clip.wav"))
- (vocal (open-sound (project-file "whitney.wav")))
- (bpm (find-tempo give-file))
- (give-mosaic (make-instance^
- 'mosaic-synth
- :processor (lambda (regions)
- (map (lambda (r)
- (stretch-region* (shift-region r 0.741) (/ 1 0.7000000000000001)))
- regions))
- :input-file give-file
- :output-file (project-file "mosaic/backing-track.wav")
- :tempo bpm
- :slice-size (/ bpm 60 4)))
- (give-regions (give-mosaic 'output-regions))
- (give-bpm bpm)
- (give-slice-size (give-mosaic 'slice-size))
- (vocal-regions (split-sound-to-regions give-slice-size vocal 0))
- (side-regions (split-sound-to-regions give-slice-size
- (open-sound (project-file "unchained-clip.wav")) 0))
- (vocal-match-regions (shift-match-regions give-regions vocal-regions))
- (vocal-mosaic (merge-sound (new-sound) vocal-match-regions))
- (side-mosaic (merge-sound (new-sound) (shift-match-regions vocal-match-regions side-regions)))
- (extra-mosaic (merge-sound (new-sound)
- (shift-match-regions side-regions
- (split-sound-to-regions give-slice-size (open-sound *extra-file*) 0)))))
- ...)
- vaporwave-synth (line 2874): strange parameter for define^: (pattern vapor-8)
- vaporwave-match (line 2887): strange parameter for define^: (pattern vapor-8)
- vaporwave-match (line 2895): in (mix (file-name (synth-sound (match-synths v m))) :in-chan #t :snd...,
- mix's argument 2 should be an integer, but :in-chan is a keyword?
- vaporwave-match (line 2895): in (mix (file-name (synth-sound (match-synths v m))) :in-chan #t :snd...,
- mix's argument 6 should be a boolean, but :with-mix-tags is a keyword?
- top-level: (line 2899): variable show-structure is declared twice
- #<unspecified>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement