[CM] CM tutorial example raises out-of-range error on guile/Snd

Carlos Pita carlosjosepita@yahoo.com.ar
Sat, 9 Sep 2006 03:11:52 -0300 (ART)


Just want to add that I have tested the same code
fragment against guile 1.8 and it run as smooth as
silk. So the previous report applies at least for
guile 1.6.x (off-the-shelf debian package), but not
for the newer 1.8.x series.

Regards,
Carlos

 --- Carlos Pita <carlosjosepita@yahoo.com.ar>
escribió:

> A different error is thrown in each case (standalone
> guile with and without ice-9 format):
> 
> with ice-9 format)
> 
> guile> (list-objects #&pulse :end 10)
> 0. /usr/share/guile/1.6/ice-9/format.scm:123:19: In
> procedure substring in expression (substring
> format-string 0 ...):
> /usr/share/guile/1.6/ice-9/format.scm:123:19:
> Argument
> 3 out of range: 2
> ABORT: (out-of-range)
> 
> without ice-9 format)
> 
> guile> (list-objects #&pulse :end 10)
> objects.scm:338:24: In procedure simple-format in
> expression (format #t "~d. ~s~%" ...):
> objects.scm:338:24: FORMAT: Unsupported format
> option
> ~d - use (ice-9 format) instead
> ABORT: (misc-error)
> 
> Regards,
> Carlos
> 
>  --- Rick Taube <taube@uiuc.edu> escribió:
> 
> > please let me know if using (ice-9 format) this
> > fixes the problem,  
> > try this:
> > 
> > 
> > (use-modules (ice-9 format))
> > 
> > (new seq :name 'pulse
> >       :subobjects
> >       (loop with d = .1
> >             for i below 80
> >             collect (new midi :time (* i d)
> >           :keynum (pickl '(c4 d4 ef4 f4 g4 af4 bf4
> > c5))
> >           :duration d
> >           :amplitude (interp (mod i 8) 0 .25 7
> > .75))))
> > 
> > (list-objects #&pulse :end 3)
> > 
> > 
> > _______________________________________________
> > Cmdist mailing list
> > Cmdist@ccrma.stanford.edu
> >
>
http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist
> > 
> 
> 
> 
> 	
> 	
> 		
> __________________________________________________
> Preguntá. Respondé. Descubrí.
> Todo lo que querías saber, y lo que ni imaginabas,
> está en Yahoo! Respuestas (Beta).
> ¡Probalo ya! 
> http://www.yahoo.com.ar/respuestas
> 
> _______________________________________________
> Cmdist mailing list
> Cmdist@ccrma.stanford.edu
>
http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist
> 



	
	
		
__________________________________________________
Preguntá. Respondé. Descubrí.
Todo lo que querías saber, y lo que ni imaginabas,
está en Yahoo! Respuestas (Beta).
¡Probalo ya! 
http://www.yahoo.com.ar/respuestas