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

 
 

bug #31728: fluxa clock-map

Submitted by:  gabor papp <gabor_papp>
Submitted on:  Mon 22 Nov 2010 11:13:10 AM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Open

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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>
Project Member

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    No Changes Have Been Made to This Item

    Back to the top


    Powered by Savane 3.1-cleanup1