bugfluxus - Bugs: bug #31728, fluxa clock-map

 
 

bug #31728: fluxa clock-map

Submitter:  gabor papp <gabor_papp>
Submitted:  Mon 22 Nov 2010 11:13:10 AM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 22 Nov 2010 11:13:10 AM UTC, original submission:  

from Kassen:

the internal help for (clock-map) is this;

 (seq (lambda (time clock)
    (clock-map
      (lambda (nt cutoff)
        (play time (mul (adsr 0 0.1 0 0)
          (mooglp (saw (note nt)) cutoff 0.4))))
      clock
      (list 39 28 3)
      (list 0.1 0.1 0.4 0.9))))

And should likely read;

 (seq (lambda (time clock)
    (clock-map
      (lambda (nt cutoff)
        (play time (mul (adsr 0 0.1 0 0)
          (mooglp (saw (note nt)) cutoff 0.4))))
      clock
      (list 39 28 3)
      (list 0.1 0.1 0.4 0.9)) .15 ))

...or something like it.

  • To make matters worse, if we do run the example as is, we get this;


Error in Task 'fluxa-update-task - Task removed.
+: expects type <number> as 2nd argument, given: #<void>; other arguments
were:
 1290416223.224918
call stack:
go-flux line 976 in /usr/local/lib/fluxus-017/fluxa.ss
#f line 174 in /usr/local/lib/fluxus-017/tasks.ss
call-with-exception-handler line 274 in
/usr/local/lib/racket/collects/racket/private/more-scheme.rkt
for-each line 45 in /usr/local/lib/racket/collects/racket/private/map.rkt
run-tasks line 161 in /usr/local/lib/fluxus-017/tasks.ss
default-fluxus-frame-callback line 373 in
/usr/local/lib/fluxus-017/scratchpad.ss

.......we get that to the terminal if that's what we started from and I get
it on my "dramatic debug-printing" but it doesn't seem to show up in the
plain repl. I think it should. This means losing the fluxa task and I don't
think I've been able to get that task back up without re-starting Fluxus. I
don't think that's proper behaviour as this is a easy typo to make (clearly!
:¬) ) and additionally there is the "fluxa error handler" that I imagine is
meant to prevent exactly that sort of thing from happening in catching stuff
like this before it causes that big a problem.

gabor papp <gabor_papp>
Group Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by gabor_papp (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    No changes have been made to this item

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code