James Hearon | 19 May 19:09 2016
Picon

s7 and c


re: gcc -o repel_test repel_test.c s7.o -Wl, -export-dynamic -lm -I. -ldl

I think your problem is that you have a space
after -Wl, -- it'a all one argument:
-Wl,-export-dynamic
-----------
Yes.  Great.  Thank you.  I was stumped, but am now off and compiling.

Regards,
Jim
James Hearon | 18 May 19:18 2016
Picon

s7 with c


Hi,

I'm stuck on figuring out compiling a simple s7 repel test in c.  I'm on fedora 23.  I've tried a few different things but not sure what /usr/bin/ld error is trying to tell me.



gcc error:

/usr/bin/ld: cannot find : No such file or directory


//gcc -o repel_test repel_test.c s7.o -Wl, -export-dynamic -lm -I. -ldl

#include "/opt/snd-16/s7.h"

int main (int argc, char **argv)
{
    s7_scheme *sc;
    sc = s7_init();
    s7_load(sc, "/opt/snd-16/repl.scm");
    s7_eval_c_string(sc, "((*repl* 'run))");
    return(0);
}


Regards,

Jim

_______________________________________________
Cmdist mailing list
Cmdist@...
https://cm-mail.stanford.edu/mailman/listinfo/cmdist
bil | 18 May 13:37 2016
Picon

Re: negative number in cond

(I accidentally deleted the original, and there's
no undelete in this mailer), but I think your
problem is that in both these cases, you're not
getting a range:

     ((and (>= -6 theslope) (<= theslope -10))
     ((and (>= 6 theslope) (<= theslope 10))

You get (<= theslope -10) in the first case -- I think
you accidentally reversed the order of the arguments.
It might be more clear to use (<= 6 theslope 10) etc.
Lynn Artas | 18 May 01:32 2016
Picon

possible to compare negatives in cond

Hi list!
  
I've isolated my problem, but have no idea how to fix it and would really appreciate some help

I'm using a span of numbers within a cond to set case. Some of the values in the number span in the cond are
negative. This doesn't work. The same version of the code with all the slopes positive works as expected. 

Notes:
1. please ignore the things about longdurs—they shouldn't come into play with the envelope set to '(0 1000 630 1000). If they
happen, it'll still work, but won't go into the case statement.
2. the doubled midi calls inside the case statement are for keyswitching. If you have EastWest, set your DAW to cello
to add a little interest to the listening. (You may miss a col legno if it goes out of range. This version
doesn't include the transposition loop.)

This is a simplified version of my code. I tried to cut as much of the fat as possible while still giving an idea of how it works, when it 
works with the positive slopes. Also pasting in case attachments aren't allowed on the list.

Any and all help appreciated, 
Best, 
~L.


;;;;;;;;;;;;;;;;;;;;;ruby-simple5-noNegs;;;;;;;;;;;;;;;;;;;;;;;;
;;; -*- syntax: Lisp; font-size: 16; line-numbers: no; -*-

(define headings (make-cycle '(
 258.6 299.5 334.1 38.5 318.5 210.3 215.1 255.5 210.3 221.3 270 297.6 320.2 188.9 239.5 285.7 277 254.2 212.4 
209.8 172.1 191.1 308 327.1 242.8 111.3 161.9 329.3 163.5 168.7 
)))

(define slopes (make-cycle '(1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30)))

(define speeds (make-cycle '(.125 .125 .125 .125 .125  .25 .25 .25 .25 .25  .5 .5 .5 .5 .5 .75 .75 .75 .75 .75  1 1 1 1 1 1.5 1.5 1.5 1.5 1.5 )))


(define (ruby4 zeronote fullcirclenote shortestnote longestnote quantVal longdurs longdurchanceenv datapoints)
(let* (
       (longdurs longdurs)
       (datapoints datapoints)
       (shortestnote shortestnote)
       (longestnote longestnote)
       (longdurchanceenv longdurchanceenv)
       (quantVal quantVal)
       (count 0)
       (newkey 0)
       (thelongdur 0)
       (longdurchance 0)
       (thecase 0)
       (theslope 0)
       (outrhythm 0)
       (start-time 0)
       (thedurpick 0)
       (waittime 0)
       (thespeed 0)
       (thedur 0)
       (theheading 0)
       (theamp 0)
       (zeronote zeronote)
       (fullcirclenote fullcirclenote)
       )

 (process repeat datapoints
   do

   (set! theslope (next slopes))

   (print "theslope is") (print theslope)
   (cond 
      ((and (>= theslope 1) (<= theslope 5))
      (begin
        (print "chose case 0")
        (set! thecase 0)
         ))
     
     ((and (>= 6 theslope) (<= theslope 10))
      (begin
        (print "chose case 1")
        (set! thecase 1)
      ))
      
      ((and (>= theslope 11 ) (<= theslope 15))
      (begin
        (print "chose case 2")
        (set! thecase 2)
      )) 
     
     ((and (>= theslope 16) (<= theslope 20))
      (begin
        (print "chose case 3")
        (set! thecase 3)
      ))
     
     ((and (>= theslope 21 ) (<= theslope 25))
      (begin
        (print "chose case 4")
        (set! thecase 4)
      )) 
     
     ((and (>= theslope 26) (< theslope 30))
      (begin
        (print "chose case 5")
        (set! thecase 5)
        )) 
     )
 
 append
  
   (set! longdurchance  (interp count longdurchanceenv))
   (if (<= (random longdurchance) 1)
     (begin
       (set! thedurpick (floor (interp count 0 0 631 (- (length longdurs) 1 ))))
       (set! thelongdur (nth longdurs thedurpick))
       (mp:midi :time start-time :key (pick 28 29) :dur (quantize thelongdur quantVal) :amp 1 :chan 0) 
       (mp:midi :time start-time :key newkey :dur (quantize thelongdur quantVal) :amp (between 0.6 0.75) :chan 1)
       (mp:midi :time start-time :key (+ newkey (pick 8 9)) :dur (quantize thelongdur quantVal) :amp (between 0.6 0.75)  :chan 1)
       (set! start-time (+ start-time thelongdur))
       )
     )
   (set! outrhythm .5)
   (set! theheading (next headings))
   (set! newkey (floor (rescale theheading 0 359.4 zeronote fullcirclenote)))
   (set! theamp (between 0.6 0.75))
   
   (case thecase 
         ((0)
          (print "IN CASE 0")
          (mp:midi :time start-time :key (pick 28 29) :dur outrhythm :amp theamp :chan 0);normal E0 and F0
          (mp:midi :time start-time :key  newkey :dur outrhythm :amp theamp :chan 1)
          (set! start-time (+ start-time outrhythm))
         )
         
         ((1)
          (print "IN CASE 1-pizz")
          (mp:midi :time start-time :key 90 :dur outrhythm :amp theamp :chan 0) ;pizz
          (mp:midi :time start-time :key  newkey :dur outrhythm :amp theamp :chan 1)
          (set! start-time (+ start-time outrhythm))
          )
         
         ((2)
          (print "IN CASE 2")
          (mp:midi :time start-time :key (pick 28 29) :dur outrhythm :amp theamp :chan 0) ;normal
          (mp:midi :time start-time :key newkey :dur outrhythm :amp theamp :chan 1)
          (mp:midi :time start-time :key (+ 4 newkey) :dur outrhythm :amp theamp :chan 1)
          (set! start-time (+ start-time outrhythm))
          )
         
         ((3)
          (print "IN CASE 3")
          (mp:midi :time start-time :key 89  :dur outrhythm :amp theamp :chan 0) 
          (mp:midi :time start-time :key newkey :dur outrhythm :amp theamp :chan 1)
          (set! start-time (+ start-time outrhythm))
          ) 
         
         ((4)
          (print "IN CASE 4")
          (mp:midi :time start-time :key (pick 28 29) :dur outrhythm :amp theamp :chan 0);normal E0 and F0
          (mp:midi :time start-time :key newkey :dur outrhythm :amp theamp :chan 1) 
          (mp:midi :time start-time :key (+ 2 newkey) :dur outrhythm :amp theamp :chan 1)
          (set! start-time (+ start-time outrhythm))
          ) 
         
         ((5) 
          (print "IN CASE 5")
          (mp:midi :time start-time :key 91 :dur outrhythm :amp theamp :chan 0) 
          (mp:midi :time start-time :key newkey :dur outrhythm :amp theamp :chan 1)
          (set! start-time (+ start-time outrhythm))
          )
         )
   )
 )
)

(sprout (ruby4 36 82         .125              1         .125     '(2 1 .75 1 2) '(0 1000 630 1000 ) 100))


;;;;;;;;;;;;;;;;;;;;;ruby-simple5-withNegs;;;;;;;;;;;;;;;;;;;;;;;;
;;; -*- syntax: Lisp; font-size: 16; line-numbers: no; -*-

(define headings (make-cycle '(
 258.6 299.5 334.1 38.5 318.5 210.3 215.1 255.5 210.3 221.3 270 297.6 320.2 188.9 239.5 285.7 277 254.2 212.4 
209.8 172.1 191.1 308 327.1 242.8 111.3 161.9 329.3 163.5 168.7 
)))

(define slopes (make-cycle '(1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30)))

(define speeds (make-cycle '(.125 .125 .125 .125 .125  .25 .25 .25 .25 .25  .5 .5 .5 .5 .5 .75 .75 .75 .75 .75  1 1 1 1 1 1.5 1.5 1.5 1.5 1.5 )))



(define (ruby4 zeronote fullcirclenote shortestnote longestnote quantVal longdurs longdurchanceenv datapoints)
(let* (
       (longdurs longdurs)
       (datapoints datapoints)
       (shortestnote shortestnote)
       (longestnote longestnote)
       (longdurchanceenv longdurchanceenv)
       (quantVal quantVal)
       (count 0)
       (newkey 0)
       (thelongdur 0)
       (longdurchance 0)
       (thecase 0)
       (theslope 0)
       (outrhythm 0)
       (start-time 0)
       (thedurpick 0)
       (waittime 0)
       (thespeed 0)
       (thedur 0)
       (theheading 0)
       (theamp 0)
       (zeronote zeronote)
       (fullcirclenote fullcirclenote)
       )

 (process repeat datapoints
   do

   (set! theslope (next slopes))
   (cond 
      ((and (>= theslope -5) (<= theslope -1))
      (begin
        (print "chose case 0")
        (set! thecase 0)
         ));normal
     
     ((and (>= -6 theslope) (<= theslope -10))
      (begin
        (print "chose case 1")
        (set! thecase 1)
      ));pizz
      
      ((and (>= theslope -11 ) (<= theslope -15))
      (begin
        (print "chose case 2")
        (set! thecase 2)
      )) ; M3 sing 
     
     ((and (>= theslope -16) (<= theslope -20))
      (begin
        (print "chose case 3")
        (set! thecase 3)
      )) ;martele
     
     ((and (>= theslope -21 ) (<= theslope -25))
      (begin
        (print "chose case 4")
        (set! thecase 4)
      )) ;M2 for sul pont
     
     ((and (>= theslope -26) (< theslope -30))
      (begin
        (print "chose case 5")
        (set! thecase 5)
        )) ;col legno
     )
 
 append
  
   (set! longdurchance  (interp count longdurchanceenv))
   (if (<= (random longdurchance) 1)
     (begin
       (set! thedurpick (floor (interp count 0 0 631 (- (length longdurs) 1 ))))
       (set! thelongdur (nth longdurs thedurpick))
       (mp:midi :time start-time :key (pick 28 29) :dur (quantize thelongdur quantVal) :amp 1 :chan 0) 
       (mp:midi :time start-time :key newkey :dur (quantize thelongdur quantVal) :amp (between 0.6 0.75) :chan 1)
       (mp:midi :time start-time :key (+ newkey (pick 8 9)) :dur (quantize thelongdur quantVal) :amp (between 0.6 0.75)  :chan 1)
       (set! start-time (+ start-time thelongdur))
       )
     )
   (set! outrhythm .5)
   (set! theheading (next headings))
   (set! newkey (floor (rescale theheading 0 359.4 zeronote fullcirclenote)))
   (set! theamp (between 0.6 0.75))
   
   (case thecase 
         ((0)
          (print "IN CASE 0")
          (mp:midi :time start-time :key (pick 28 29) :dur outrhythm :amp theamp :chan 0);normal E0 and F0
          (mp:midi :time start-time :key  newkey :dur outrhythm :amp theamp :chan 1)
          (set! start-time (+ start-time outrhythm))
         )
         
         ((1)
          (print "IN CASE 1-pizz")
          (mp:midi :time start-time :key 90 :dur outrhythm :amp theamp :chan 0) ;pizz
          (mp:midi :time start-time :key  newkey :dur outrhythm :amp theamp :chan 1)
          (set! start-time (+ start-time outrhythm))
          )
         
         ((2)
          (print "IN CASE 2")
          (mp:midi :time start-time :key (pick 28 29) :dur outrhythm :amp theamp :chan 0) ;normal
          (mp:midi :time start-time :key newkey :dur outrhythm :amp theamp :chan 1)
          (mp:midi :time start-time :key (+ 4 newkey) :dur outrhythm :amp theamp :chan 1)
          (set! start-time (+ start-time outrhythm))
          )
         
         ((3)
          (print "IN CASE 3")
          (mp:midi :time start-time :key 89  :dur outrhythm :amp theamp :chan 0) 
          (mp:midi :time start-time :key newkey :dur outrhythm :amp theamp :chan 1)
          (set! start-time (+ start-time outrhythm))
          ) 
         
         ((4)
          (print "IN CASE 4")
          (mp:midi :time start-time :key (pick 28 29) :dur outrhythm :amp theamp :chan 0);normal E0 and F0
          (mp:midi :time start-time :key newkey :dur outrhythm :amp theamp :chan 1) 
          (mp:midi :time start-time :key (+ 2 newkey) :dur outrhythm :amp theamp :chan 1)
          (set! start-time (+ start-time outrhythm))
          ) 
         
         ((5) 
          (print "IN CASE 5")
          (mp:midi :time start-time :key 91 :dur outrhythm :amp theamp :chan 0) 
          (mp:midi :time start-time :key newkey :dur outrhythm :amp theamp :chan 1)
          (set! start-time (+ start-time outrhythm))
          )
         )
   )
 )
)


(sprout (ruby4 36 82         .125              1         .125     '(2 1 .75 1 2) '(0 1000 630 1000 ) 100))






Attachment (ruby-simple5-noNegs): application/octet-stream, 7720 bytes
Attachment (ruby-simple5-withNegs): application/octet-stream, 7760 bytes
_______________________________________________
Cmdist mailing list
Cmdist@...
https://cm-mail.stanford.edu/mailman/listinfo/cmdist
Dave Phillips | 9 May 15:01 2016
Picon

[OT] Fomus build problem

Greetings,

I decided to update my Fomus installation. Things went well until here :

Making all in exe
make[3]: Entering directory '/home/dlphilp/src/fomus-code/src/exe'
depbase=`echo main.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
g++ -DHAVE_CONFIG_H -I. -I../..  -DNDEBUG -DNDEBUGOUT -pthread 
-I/usr/include -I../../src/lib/api -w -DNDEBUG -DNDEBUGOUT -O2 
-fomit-frame-pointer -O2 -MT main.o -MD -MP -MF $depbase.Tpo -c -o 
main.o main.cc &&\
mv -f $depbase.Tpo $depbase.Po
/bin/sh ../../libtool  --tag=CXX   --mode=link g++ -O2 
-fomit-frame-pointer -O2 -L/usr/lib64 -rpath /usr/local/lib  -o fomus 
main.o ../../src/lib/libfomus.la -lncursesw -lboost_program_options -ldl
libtool: link: g++ -O2 -fomit-frame-pointer -O2 -o .libs/fomus main.o  
-L/usr/lib64 ../../src/lib/.libs/libfomus.so -lltdl -lboost_system 
-lboost_filesystem -lboost_thread -lncursesw -lboost_program_options 
-ldl -Wl,-rpath -Wl,/usr/local/lib
../../src/lib/.libs/libfomus.so: undefined reference to 
`fomus::fom_get_rval_up(int)'
collect2: error: ld returned 1 exit status
Makefile:440: recipe for target 'fomus' failed
make[3]: *** [fomus] Error 1
make[3]: Leaving directory '/home/dlphilp/src/fomus-code/src/exe'
Makefile:404: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory '/home/dlphilp/src/fomus-code/src'
Makefile:460: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/dlphilp/src/fomus-code'
Makefile:391: recipe for target 'all' failed
make: *** [all] Error 2

Can anyone tell me what's going on here ? I ran make clean, rebuilt, 
still the same error.

System here is Fedora 21, GCC 4.9.2.

Best,

dp
Joe Python | 9 May 04:33 2016
Picon

warnings and errors while compiling with Oracle Solaris Studio 12.4 compiler on SPARC Solaris 10

Compilation failed with following warnings and errors while compiling with Oracle Solaris Studio 12.4 compiler on SPARC Solaris 10. Am i using the right options while compiling?

$ c99 s7.c -o repl -DWITH_MAIN -I. -g3 -ldl -lm -Wl,-export-dynamic
"s7.c", line 2458: warning: statement not reached
"s7.c", line 10478: warning: statement not reached
"s7.c", line 11397: warning: statement not reached
"s7.c", line 11651: warning: statement not reached
"s7.c", line 11749: invalid token: 1.0fi
"s7.c", line 11749: syntax error before or at: )
"s7.c", line 14404: invalid token: 1.0fi
"s7.c", line 14404: syntax error before or at: )
"s7.c", line 14550: invalid token: 1.0fi
"s7.c", line 14550: syntax error before or at: )
"s7.c", line 14596: invalid token: 1.0fi
"s7.c", line 14596: syntax error before or at: )
"s7.c", line 14635: invalid token: 1.0fi
"s7.c", line 14635: syntax error before or at: )
"s7.c", line 14660: invalid token: 1.0fi
"s7.c", line 14660: cannot dereference non-pointer type
"s7.c", line 14691: invalid token: 1.0fi
"s7.c", line 14691: syntax error before or at: )
"s7.c", line 14696: invalid token: 1.0fi
"s7.c", line 14696: syntax error before or at: )
"s7.c", line 14731: invalid token: 1.0fi
"s7.c", line 14731: cannot dereference non-pointer type
"s7.c", line 14732: invalid token: 1.0fi
"s7.c", line 14732: cannot dereference non-pointer type
"s7.c", line 14759: invalid token: 1.0fi
"s7.c", line 14759: syntax error before or at: )
"s7.c", line 14815: invalid token: 1.0fi
"s7.c", line 14815: syntax error before or at: )
"s7.c", line 14859: invalid token: 1.0fi
"s7.c", line 14859: syntax error before or at: )
"s7.c", line 14899: invalid token: 1.0fi
"s7.c", line 14899: syntax error before or at: )
"s7.c", line 14935: invalid token: 1.0fi
"s7.c", line 14935: syntax error before or at: )
"s7.c", line 14968: invalid token: 1.0fi
"s7.c", line 14968: syntax error before or at: )
"s7.c", line 15166: invalid token: 1.0fi
"s7.c", line 15166: syntax error before or at: )
"s7.c", line 16970: warning: statement not reached
"s7.c", line 16994: warning: statement not reached
"s7.c", line 17039: warning: statement not reached
"s7.c", line 17069: warning: statement not reached
"s7.c", line 17088: warning: statement not reached
"s7.c", line 17107: warning: statement not reached
"s7.c", line 17139: warning: statement not reached
"s7.c", line 18056: warning: statement not reached
"s7.c", line 18086: warning: statement not reached
"s7.c", line 18113: warning: statement not reached
"s7.c", line 18145: warning: statement not reached
"s7.c", line 18165: warning: statement not reached
"s7.c", line 18185: warning: statement not reached
"s7.c", line 18205: warning: statement not reached
"s7.c", line 18236: warning: statement not reached
"s7.c", line 19134: warning: statement not reached
"s7.c", line 19176: warning: statement not reached
"s7.c", line 19213: warning: statement not reached
"s7.c", line 19233: warning: statement not reached
"s7.c", line 19253: warning: statement not reached
"s7.c", line 19289: warning: statement not reached
"s7.c", line 20967: warning: statement not reached
"s7.c", line 20999: warning: statement not reached
"s7.c", line 21067: warning: statement not reached
"s7.c", line 22046: warning: statement not reached
"s7.c", line 22074: warning: statement not reached
"s7.c", line 22126: warning: statement not reached
"s7.c", line 22201: warning: statement not reached
"s7.c", line 22254: warning: statement not reached
"s7.c", line 22324: warning: statement not reached
"s7.c", line 22355: warning: statement not reached
"s7.c", line 22408: warning: statement not reached
"s7.c", line 22510: warning: statement not reached
"s7.c", line 22614: warning: statement not reached
"s7.c", line 26670: warning: statement not reached
"s7.c", line 27334: warning: statement not reached
"s7.c", line 28966: warning: statement not reached
"s7.c", line 33507: warning: implicit function declaration: popen
"s7.c", line 33507: warning: improper pointer/integer combination: op "="
"s7.c", line 33522: warning: implicit function declaration: pclose
"s7.c", line 34116: warning: statement not reached
"s7.c", line 34345: warning: statement not reached
"s7.c", line 34397: warning: statement not reached
"s7.c", line 34446: warning: statement not reached
"s7.c", line 35552: warning: statement not reached
"s7.c", line 35606: warning: statement not reached
"s7.c", line 35758: warning: statement not reached
"s7.c", line 35774: warning: statement not reached
"s7.c", line 35808: warning: statement not reached
"s7.c", line 35856: warning: statement not reached
"s7.c", line 35876: warning: statement not reached
"s7.c", line 35903: warning: statement not reached
"s7.c", line 35935: warning: statement not reached
"s7.c", line 35988: warning: statement not reached
"s7.c", line 36019: warning: statement not reached
"s7.c", line 36059: warning: statement not reached
"s7.c", line 36083: warning: statement not reached
"s7.c", line 43807: warning: statement not reached
"s7.c", line 44689: warning: statement not reached
"s7.c", line 49534: warning: statement not reached
"s7.c", line 56661: warning: improper pointer/integer combination: op "="
"s7.c", line 56693: warning: improper pointer/integer combination: op "="
"s7.c", line 56696: warning: improper pointer/integer combination: op "="
"s7.c", line 56698: warning: improper pointer/integer combination: op "="
"s7.c", line 56715: warning: improper pointer/integer combination: op "="
"s7.c", line 56718: warning: improper pointer/integer combination: op "="
"s7.c", line 56720: warning: improper pointer/integer combination: op "="
"s7.c", line 56734: warning: improper pointer/integer combination: op "="
"s7.c", line 56738: warning: improper pointer/integer combination: op "="
"s7.c", line 56782: warning: improper pointer/integer combination: op "="
"s7.c", line 56805: warning: improper pointer/integer combination: op "="
"s7.c", line 56809: warning: improper pointer/integer combination: op "="
"s7.c", line 60500: warning: statement not reached
"s7.c", line 67829: warning: statement not reached
c99: acomp failed for s7.c

- Jo
_______________________________________________
Cmdist mailing list
Cmdist@...
https://cm-mail.stanford.edu/mailman/listinfo/cmdist
Joe Python | 8 May 23:27 2016
Picon

Warnings while using S7 repl in Ubuntu 14.04

s7.c was compiled with gcc 4.8.4

$ ./repl
writing libc_s7.c
libc_s7.o: In function `s7_dl_tmpnam':
libc_s7.c:(.text+0x4787): warning: the use of `tmpnam' is dangerous, better use `mkstemp'
libc_s7.o: In function `s7_dl_tempnam':
libc_s7.c:(.text+0x489e): warning: the use of `tempnam' is dangerous, better use `mkstemp'
libc_s7.o: In function `s7_dl_mktemp':
libc_s7.c:(.text+0x78fa): warning: the use of `mktemp' is dangerous, better use `mkstemp' or `mkdtemp'
loading libc_s7.so
<1> (exit)

All references to tmpnam, tempnam and mktemp are in libc.scm
_______________________________________________
Cmdist mailing list
Cmdist@...
https://cm-mail.stanford.edu/mailman/listinfo/cmdist
bil | 6 May 21:06 2016
Picon

Snd 16.5

Snd 16.5

Kjetil Matheussen added the --with-webserver configuration flag to Snd, 
and
   made all the supporting changes.

Daniel Hensel sent instructions to build Snd in OSX -- see README.Snd.

ttaenc removed: it appears to be dead (no movement in 10 years), or 
infected.

changed spectr.scm to export only *spectr*, rgb.scm *rgb*.

checked: sbcl 1.3.4|5, gtk 3.20.2|3 3.21.1, gsl 2.1

Thanks!: Greg Santucci, Daniel Lopez, Kjetil Matheussen, Daniel Hensel
James Hearon | 5 May 21:00 2016
Picon

scheme move-locsig


Hi,
I couldn't come up with the magic to get a pan-env working across a heap of notes with move-locsig.  But I made a
solution below by just passing degree only to the inst and controlling degree over the total duration of
the heap from with-sound.  Not elegant, but it pans across the whole heap of notes.

------------
(provide 'snd-nrev.scm)

(if (provided? 'snd)
    (require snd-ws.scm)
    (require sndlib-ws.scm))

(load "/opt/snd-16/CM_patterns.scm")

(define (round-off z n)
  (let ((power (expt 10 n)))
    (/ (round (* power z)) power)))

(definstrument (myinst start-time duration frequency amplitude sampling-rate revamt distance degree )
  (let* ((beg (floor (* start-time sampling-rate)))
	 (end (+ beg (floor (* duration sampling-rate))))
	 (loc (make-locsig :degree degree :distance distance :reverb revamt))
	 (sine-wave (make-oscil :frequency frequency)))
     (do ((i beg (+ i 1)))
         ((= i end))
     (let ((x (* amplitude (oscil sine-wave))))
       (locsig loc i x)
       (move-locsig loc degree distance)
       ))))

(let ((aaa (make-heap '(360 800.345 1200 600))) 
      (bbb (make-heap '(1 1 .75 .25 .20 .15 .10 .10 .10 .10))) )
(with-sound (:reverb nrev :output "/home/MyTest.wav" :srate 48000 :channels 2
		     :header-type mus-riff :statistics #t :play #t)
	      (let ((i 0))
		(let ((mypanenv (make-env '(0 90 5 0) :length 70))) ;not sure why length  works here instead of duration
	           (do ((k 0 (+ k 1)))
	           ((>= k 40))
		   (let ((v (next bbb)))     		     
		(myinst  i v  (next aaa) .9 48000  0.01  1.0  (mypanenv k)  ) ;send degree to inst
		(set! i (+ (round-off i 2) v))
		  ))))) )
		   
Daniel Hensel | 10 Apr 13:52 2016

Request

Hello to the community,

my name is Daniel Hensel, I am a german composer. At first I have to apologize bothering you!  I recently
downloaded „Grace“ and tried to play around a little, which led me to the website of Common Lisp Music.
So I tried to use the clm-examples in Grace, until I found out, that Grace uses Scheme instead of Lisp. Is
this the reason why cml-examples are not working? I got the following Errors for the following example
entered in the Grace-Editor:

(definstrument examp2 (start-time duration frequency amplitude 
		       &optional (amp-env '(0 0 50 1 100 0)))
  (let* ((beg (floor (* start-time sampling-rate)))
	 (end (+ beg (floor (* duration sampling-rate))))
	 (sine-wave (make-oscil :frequency frequency))
	 (amp (make-env :envelope amp-env :scaler amplitude 
			:start-time start-time :duration duration)))
    (Run 
     (loop for i from beg to end do
	   (outa i (* (env amp) (oscil sine-wave)))))))

Error: >>> Error: car argument, examp2, is a symbol but should be a pair
(car args)                                        ; args: examp2
((name (car args)) (targs (cdr args)) (utargs ...
(examp2 (start-time duration frequency amplitu...
(definstrument examp2 (start-time duration fre...

>>> Error: beg: unbound variable
((beg (floor (* start-time sampling-rate))) (e...
((floor (* start-time sampling-rate)))           
((end (+ beg (floor (* duration sampling-rate)...
((beg (floor (* start-time sampling-rate))) (e…

Three years ago I worked with Csound, PD and SuperCollider. But then I discovered CLM and Common Music, so I
wanted to give it a try, I admit, that I am a real Lisp-newbie.

So I installed Clisp, Sbcl, Clozure-Cl via homebrew on my mac. But I cannot get Common Lisp Music working. I
also cannot find a working „how-to“ for OS X 10.11.4. I put the folder clm-4 into my brew-cellar. I
created a .swank-file, which should load clm for slime. It looks like this:

(load "/usr/local/Cellar/clm-4/all.lisp")
(in-package :clm)
(compile-file "/usr/local/Cellar/clm-4/nrev.ins")
(load "/usr/local/Cellar/clm-4/nrev.fasl")

What would you recommend to do? To ignore CLM  totally and just to work with Grace? I’d like to learn clm from
scratch.  When I try the CLM-Example in my Emacs, it looks like this:

When I load CLM, it looks like this:
CL-USER> (load "/usr/local/Cellar/clm-4/all.lisp")
;   using existing configuration file mus-config.h

;loading /usr/local/Cellar/clm-4/clm-package.fasl
;loading /usr/local/Cellar/clm-4/initmus.fasl
;loading /usr/local/Cellar/clm-4/sndlib2clm.fasl
;loading /usr/local/Cellar/clm-4/defaults.fasl
;loading /usr/local/Cellar/clm-4/ffi.fasl
;loading /usr/local/Cellar/clm-4/mus.fasl
;loading /usr/local/Cellar/clm-4/run.fasl
;loading /usr/local/Cellar/clm-4/sound.fasl
;loading /usr/local/Cellar/clm-4/defins.fasl
;loading /usr/local/Cellar/clm-4/env.fasl
;loading /usr/local/Cellar/clm-4/export.fasl
;loading /usr/local/Cellar/clm-4/clm1.fasl
T

Later I tried:

 (definstrument auto (dur)
    (let ((os (make-oscil))
          (need-close (not *output*))
          (end (floor (* dur *srate*))))
      (if (not *output*) 
        (setf *output* (open-output "/zap/test.snd")))
      (run
        (loop for i from 0 to end do (outa i (* .1 (oscil os)))))
    (when need-close
      (close-output *output*)
      (dac "/zap/test.snd"))))

But I just got:

; Writing "/usr/local/Cellar/clm-4/clm_AUTO.c"
Help! 11 nested errors. SB-KERNEL:*MAXIMUM-ERROR-DEPTH* exceeded.
Backtrace for: #<SB-THREAD:THREAD "repl-thread" RUNNING {1005400003}>
0: (SB-INT:SIMPLE-EVAL-IN-LEXENV CM #<NULL-LEXENV>)
1: (EVAL CM)
2: (SWANK::EVAL-REGION " cm
")
3: ((LAMBDA NIL :IN SWANK-REPL::REPL-EVAL))
4: (SWANK-REPL::TRACK-PACKAGE #<CLOSURE (LAMBDA NIL :IN SWANK-REPL::REPL-EVAL) {1004AC306B}>)
5: (SWANK::CALL-WITH-RETRY-RESTART "Retry SLIME REPL evaluation request." #<CLOSURE (LAMBDA NIL :IN
SWANK-REPL::REPL-EVAL) {1004AC2FCB}>)
6: (SWANK::CALL-WITH-BUFFER-SYNTAX NIL #<CLOSURE (LAMBDA NIL :IN SWANK-REPL::REPL-EVAL) {1004AC2FAB}>)
7: (SWANK-REPL::REPL-EVAL " cm
")
8: (SB-INT:SIMPLE-EVAL-IN-LEXENV (SWANK-REPL:LISTENER-EVAL " cm
") #<NULL-LEXENV>)
9: (EVAL (SWANK-REPL:LISTENER-EVAL " cm
"))
10: (SWANK:EVAL-FOR-EMACS (SWANK-REPL:LISTENER-EVAL " cm
") "COMMON-LISP-USER" 16)
11: (SWANK::SLDB-LOOP 3)
12: ((FLET SWANK/BACKEND:CALL-WITH-DEBUGGING-ENVIRONMENT :IN
"/Users/danielhensel/quicklisp/dists/quicklisp/software/slime-2.14/swank/sbcl.lisp")
#<FUNCTION (LAMBDA NIL :IN SWANK::DEBUG-IN-EMACS) {10042F4E6B}>)
13: (SWANK::DEBUG-IN-EMACS #<UNBOUND-VARIABLE CLM {100490FE73}>)
14: (SWANK:INVOKE-SLIME-DEBUGGER #<UNBOUND-VARIABLE CLM {100490FE73}>)
15: (SWANK/SBCL::CALL-WITH-BREAK-HOOK #<FUNCTION SWANK:SWANK-DEBUGGER-HOOK> #<CLOSURE (LAMBDA
NIL :IN SWANK:SWANK-DEBUGGER-HOOK) {100490FEDB}>)
16: ((FLET SWANK/BACKEND:CALL-WITH-DEBUGGER-HOOK :IN
"/Users/danielhensel/quicklisp/dists/quicklisp/software/slime-2.14/swank/sbcl.lisp")
#<FUNCTION SWANK:SWANK-DEBUGGER-HOOK> #<CLOSURE (LAMBDA NIL :IN SWANK:SWANK-DEBUGGER-HOOK) {100490FEDB}>)
17: (SWANK:SWANK-DEBUGGER-HOOK #<UNBOUND-VARIABLE CLM {100490FE73}> #<unavailable argument>)
18: (SB-DEBUG::RUN-HOOK *DEBUGGER-HOOK* #<UNBOUND-VARIABLE CLM {100490FE73}>)
19: (INVOKE-DEBUGGER #<UNBOUND-VARIABLE CLM {100490FE73}>)
20: (ERROR UNBOUND-VARIABLE :NAME CLM)
21: ("UNBOUND-SYMBOL-ERROR" CLM)
22: (SB-KERNEL:INTERNAL-ERROR #.(SB-SYS:INT-SAP #X05892000) #<unavailable argument>)
23: ("foreign function: call_into_lisp")
24: ("foreign function: funcall2")
25: ("foreign function: interrupt_internal_error")
26: ("foreign function: signal_emulation_wrapper")
27: ("foreign function: stack_allocation_recover")
28: ("foreign function: stack_allocation_recover")
29: (SB-INT:SIMPLE-EVAL-IN-LEXENV CLM #<NULL-LEXENV>)
30: (EVAL CLM)
31: (SWANK::EVAL-REGION " clm
")
32: ((LAMBDA NIL :IN SWANK-REPL::REPL-EVAL))
33: (SWANK-REPL::TRACK-PACKAGE #<CLOSURE (LAMBDA NIL :IN SWANK-REPL::REPL-EVAL) {100490CA7B}>)
34: (SWANK::CALL-WITH-RETRY-RESTART "Retry SLIME REPL evaluation request." #<CLOSURE (LAMBDA NIL :IN
SWANK-REPL::REPL-EVAL) {100490C9DB}>)
35: (SWANK::CALL-WITH-BUFFER-SYNTAX NIL #<CLOSURE (LAMBDA NIL :IN SWANK-REPL::REPL-EVAL) {100490C9BB}>)
36: (SWANK-REPL::REPL-EVAL " clm
")
37: (SB-INT:SIMPLE-EVAL-IN-LEXENV (SWANK-REPL:LISTENER-EVAL " clm
") #<NULL-LEXENV>)
38: (EVAL (SWANK-REPL:LISTENER-EVAL " clm
"))
39: (SWANK:EVAL-FOR-EMACS (SWANK-REPL:LISTENER-EVAL " clm
") "COMMON-LISP-USER" 14)
40: (SWANK::SLDB-LOOP 2)
41: ((FLET SWANK/BACKEND:CALL-WITH-DEBUGGING-ENVIRONMENT :IN
"/Users/danielhensel/quicklisp/dists/quicklisp/software/slime-2.14/swank/sbcl.lisp")
#<FUNCTION (LAMBDA NIL :IN SWANK::DEBUG-IN-EMACS) {10042F4E6B}>)
42: (SWANK::DEBUG-IN-EMACS #<UNBOUND-VARIABLE CLM {10046892C3}>)
43: (SWANK:INVOKE-SLIME-DEBUGGER #<UNBOUND-VARIABLE CLM {10046892C3}>)
44: (SWANK/SBCL::CALL-WITH-BREAK-HOOK #<FUNCTION SWANK:SWANK-DEBUGGER-HOOK> #<CLOSURE (LAMBDA
NIL :IN SWANK:SWANK-DEBUGGER-HOOK) {100468932B}>)
45: ((FLET SWANK/BACKEND:CALL-WITH-DEBUGGER-HOOK :IN
"/Users/danielhensel/quicklisp/dists/quicklisp/software/slime-2.14/swank/sbcl.lisp")
#<FUNCTION SWANK:SWANK-DEBUGGER-HOOK> #<CLOSURE (LAMBDA NIL :IN SWANK:SWANK-DEBUGGER-HOOK) {100468932B}>)
46: (SWANK:SWANK-DEBUGGER-HOOK #<UNBOUND-VARIABLE CLM {10046892C3}> #<unavailable argument>)
47: (SB-DEBUG::RUN-HOOK *DEBUGGER-HOOK* #<UNBOUND-VARIABLE CLM {10046892C3}>)
48: (INVOKE-DEBUGGER #<UNBOUND-VARIABLE CLM {10046892C3}>)
49: (ERROR UNBOUND-VARIABLE :NAME CLM)
50: ("UNBOUND-SYMBOL-ERROR" CLM)
51: (SB-KERNEL:INTERNAL-ERROR #.(SB-SYS:INT-SAP #X05890000) #<unavailable argument>)
52: ("foreign function: call_into_lisp")
53: ("foreign function: funcall2")
54: ("foreign function: interrupt_internal_error")
55: ("foreign function: signal_emulation_wrapper")
56: ("foreign function: stack_allocation_recover")
57: ("foreign function: stack_allocation_recover")
58: (SB-INT:SIMPLE-EVAL-IN-LEXENV CLM #<NULL-LEXENV>)
59: (EVAL CLM)
60: (SWANK::EVAL-REGION "clm
")
61: ((LAMBDA NIL :IN SWANK-REPL::REPL-EVAL))
62: (SWANK-REPL::TRACK-PACKAGE #<CLOSURE (LAMBDA NIL :IN SWANK-REPL::REPL-EVAL) {100462607B}>)
63: (SWANK::CALL-WITH-RETRY-RESTART "Retry SLIME REPL evaluation request." #<CLOSURE (LAMBDA NIL :IN
SWANK-REPL::REPL-EVAL) {1004625FDB}>)
64: (SWANK::CALL-WITH-BUFFER-SYNTAX NIL #<CLOSURE (LAMBDA NIL :IN SWANK-REPL::REPL-EVAL) {1004625FBB}>)
65: (SWANK-REPL::REPL-EVAL "clm
")
66: (SB-INT:SIMPLE-EVAL-IN-LEXENV (SWANK-REPL:LISTENER-EVAL "clm
") #<NULL-LEXENV>)
67: (EVAL (SWANK-REPL:LISTENER-EVAL "clm
"))
68: (SWANK:EVAL-FOR-EMACS (SWANK-REPL:LISTENER-EVAL "clm
") "COMMON-LISP-USER" 12)
69: (SWANK::SLDB-LOOP 1)
70: ((FLET SWANK/BACKEND:CALL-WITH-DEBUGGING-ENVIRONMENT :IN
"/Users/danielhensel/quicklisp/dists/quicklisp/software/slime-2.14/swank/sbcl.lisp")
#<FUNCTION (LAMBDA NIL :IN SWANK::DEBUG-IN-EMACS) {10042F4E6B}>)
71: (SWANK::DEBUG-IN-EMACS #<UNBOUND-VARIABLE CM {100540FDE3}>)
72: (SWANK:INVOKE-SLIME-DEBUGGER #<UNBOUND-VARIABLE CM {100540FDE3}>)
73: (SWANK/SBCL::CALL-WITH-BREAK-HOOK #<FUNCTION SWANK:SWANK-DEBUGGER-HOOK> #<CLOSURE (LAMBDA
NIL :IN SWANK:SWANK-DEBUGGER-HOOK) {100540FE4B}>)
74: ((FLET SWANK/BACKEND:CALL-WITH-DEBUGGER-HOOK :IN
"/Users/danielhensel/quicklisp/dists/quicklisp/software/slime-2.14/swank/sbcl.lisp")
#<FUNCTION SWANK:SWANK-DEBUGGER-HOOK> #<CLOSURE (LAMBDA NIL :IN SWANK:SWANK-DEBUGGER-HOOK) {100540FE4B}>)
75: (SWANK:SWANK-DEBUGGER-HOOK #<UNBOUND-VARIABLE CM {100540FDE3}> #<unavailable argument>)
76: (SB-DEBUG::RUN-HOOK *DEBUGGER-HOOK* #<UNBOUND-VARIABLE CM {100540FDE3}>)
77: (INVOKE-DEBUGGER #<UNBOUND-VARIABLE CM {100540FDE3}>)
78: (ERROR UNBOUND-VARIABLE :NAME CM)
79: ("UNBOUND-SYMBOL-ERROR" CM)
80: (SB-KERNEL:INTERNAL-ERROR #.(SB-SYS:INT-SAP #X0580E000) #<unavailable argument>)
81: ("foreign function: call_into_lisp")
82: ("foreign function: funcall2")
83: ("foreign function: interrupt_internal_error")
84: ("foreign function: signal_emulation_wrapper")
85: ("foreign function: stack_allocation_recover")
86: ("foreign function: stack_allocation_recover")
87: (SB-INT:SIMPLE-EVAL-IN-LEXENV CM #<NULL-LEXENV>)
88: (EVAL CM)
89: (SWANK::EVAL-REGION "cm
")
90: ((LAMBDA NIL :IN SWANK-REPL::REPL-EVAL))
91: (SWANK-REPL::TRACK-PACKAGE #<CLOSURE (LAMBDA NIL :IN SWANK-REPL::REPL-EVAL) {100540C88B}>)
92: (SWANK::CALL-WITH-RETRY-RESTART "Retry SLIME REPL evaluation request." #<CLOSURE (LAMBDA NIL :IN
SWANK-REPL::REPL-EVAL) {100540C7EB}>)
93: (SWANK::CALL-WITH-BUFFER-SYNTAX NIL #<CLOSURE (LAMBDA NIL :IN SWANK-REPL::REPL-EVAL) {100540C7CB}>)
94: (SWANK-REPL::REPL-EVAL "cm
")
95: (SB-INT:SIMPLE-EVAL-IN-LEXENV (SWANK-REPL:LISTENER-EVAL "cm
") #<NULL-LEXENV>)
96: (EVAL (SWANK-REPL:LISTENER-EVAL "cm
"))
97: (SWANK:EVAL-FOR-EMACS (SWANK-REPL:LISTENER-EVAL "cm
") "COMMON-LISP-USER" 5)
98: (SWANK::PROCESS-REQUESTS NIL)
99: ((LAMBDA NIL :IN SWANK::HANDLE-REQUESTS))
100: ((LAMBDA NIL :IN SWANK::HANDLE-REQUESTS))
101: (SWANK/SBCL::CALL-WITH-BREAK-HOOK #<FUNCTION SWANK:SWANK-DEBUGGER-HOOK> #<CLOSURE (LAMBDA
NIL :IN SWANK::HANDLE-REQUESTS) {100540800B}>)
102: ((FLET SWANK/BACKEND:CALL-WITH-DEBUGGER-HOOK :IN
"/Users/danielhensel/quicklisp/dists/quicklisp/software/slime-2.14/swank/sbcl.lisp")
#<FUNCTION SWANK:SWANK-DEBUGGER-HOOK> #<CLOSURE (LAMBDA NIL :IN SWANK::HANDLE-REQUESTS) {100540800B}>)
103: (SWANK::CALL-WITH-BINDINGS ((*STANDARD-OUTPUT* . #1=#<SWANK/GRAY::SLIME-OUTPUT-STREAM
{10053E6343}>) (*STANDARD-INPUT* . #2=#<SWANK/GRAY::SLIME-INPUT-STREAM {1005F381C3}>)
(*TRACE-OUTPUT* . #1#) (*ERROR-OUTPUT* . #1#) (*DEBUG-IO* . #3=#<TWO-WAY-STREAM :INPUT-STREAM #2#
:OUTPUT-STREAM #1#>) (*QUERY-IO* . #3#) (*TERMINAL-IO* . #3#)) #<CLOSURE (LAMBDA NIL :IN
SWANK::HANDLE-REQUESTS) {100540802B}>)
104: (SWANK::HANDLE-REQUESTS #<SWANK::MULTITHREADED-CONNECTION {1004878733}> NIL)
105: ((FLET #:WITHOUT-INTERRUPTS-BODY-1174 :IN SB-THREAD::INITIAL-THREAD-FUNCTION-TRAMPOLINE))
106: ((FLET SB-THREAD::WITH-MUTEX-THUNK :IN SB-THREAD::INITIAL-THREAD-FUNCTION-TRAMPOLINE))
107: ((FLET #:WITHOUT-INTERRUPTS-BODY-359 :IN SB-THREAD::CALL-WITH-MUTEX))
108: (SB-THREAD::CALL-WITH-MUTEX #<CLOSURE (FLET SB-THREAD::WITH-MUTEX-THUNK :IN
SB-THREAD::INITIAL-THREAD-FUNCTION-TRAMPOLINE) {CA6DCFB}> #<SB-THREAD:MUTEX "thread result
lock" owner: #<SB-THREAD:THREAD "repl-thread" RUNNING {1005400003}>> NIL T NIL)
109: (SB-THREAD::INITIAL-THREAD-FUNCTION-TRAMPOLINE #<SB-THREAD:THREAD "repl-thread" RUNNING
{1005400003}> NIL #<CLOSURE (LAMBDA NIL :IN SWANK-REPL::SPAWN-REPL-THREAD) {10053FFF7B}>
(#<SB-THREAD:THREAD "repl-thread" RUNNING {1005400003}> #<SB-THREAD:THREAD "auto-flush-thread"
RUNNING {10053FFDA3}> #<SB-THREAD:THREAD "swank-indentation-cache-thread" #1=waiting on:
#<WAITQUEUE  {10048880A3}> {1004880143}> #<SB-THREAD:THREAD "reader-thread" RUNNING
{1004880003}> #<SB-THREAD:THREAD "control-thread" RUNNING {1004878883}> #<SB-THREAD:THREAD
"Swank Sentinel" #1# #<WAITQUEUE  {10045E0023}> {10045DAAD3}> #<SB-THREAD:THREAD "main thread"
RUNNING {1005F3CC53}>) NIL NIL NIL NIL)
110: ("foreign function: call_into_lisp")
111: ("foreign function: new_thread_trampoline")
112: ("foreign function: _pthread_body")
113: ("foreign function: _pthread_body")
114: ("foreign function: thread_sta

Does anyone have an idea, how to get this working? 

Sincerely yours,
Daniel Hensel

_______________________________________________
Cmdist mailing list
Cmdist <at> ccrma.stanford.edu
https://cm-mail.stanford.edu/mailman/listinfo/cmdist
Antoine Daurat | 5 Apr 10:25 2016
Picon

building Grace with OSC and FOMUS and saving files

Hello,

since the release of Grace 3.9.0 I’m experiencing a lot of problems with the Grace.app.
Until a few weeks ago, I could build the app from source, with FOMUS and OSC because I was still running 10.7 on my mac – and I had to build it from source because with the app from the App Store, I couldn’t save any files, like everybody I know who downloaded it…

Lately, I updated my system to 10.10 and nothing works any more.

The app from the App Store still can’t save anything AND it doesn’t have FOMUS any way.
I can save files with the old app I built under 10.7 but it doesn’t open with Oscpack available in it any more….
If I try to build a new app from the source without "premake4 --with-oscpack", I get this error :

cc1objplus: error: unrecognized command line option "-Wno-c++11-extensions"
make[1]: *** [obj/juce/Debug/juce_audio_basics.o] Error 1
make: *** [juce] Error 2

and with "premake4 --with-oscpack », I get all those errors : 

couldn't understand kern.osversion `14.5.0'
In file included from oscpack/osc/OscOutboundPacketStream.cpp:37:
oscpack/osc/OscOutboundPacketStream.h:40:29: warning: cstring: No such file or directory
In file included from oscpack/osc/OscOutboundPacketStream.h:43,
                 from oscpack/osc/OscOutboundPacketStream.cpp:37:
oscpack/osc/OscException.h:40:21: warning: exception: No such file or directory
oscpack/osc/OscOutboundPacketStream.cpp:43:62: warning: stdlib.h: No such file or directory
oscpack/osc/OscOutboundPacketStream.cpp:46:19: warning: cassert: No such file or directory
oscpack/osc/OscOutboundPacketStream.cpp:48:32: warning: cstddef: No such file or directory
In file included from oscpack/osc/OscOutboundPacketStream.h:43,
                 from oscpack/osc/OscOutboundPacketStream.cpp:37:
oscpack/osc/OscException.h:44: error: expected class-name before ‘{’ token
oscpack/osc/OscException.h: In copy constructor ‘osc::Exception::Exception(const osc::Exception&)’:
oscpack/osc/OscException.h:50: error: expected class-name before ‘(’ token
In file included from oscpack/osc/OscOutboundPacketStream.cpp:37:
oscpack/osc/OscOutboundPacketStream.h: At global scope:
oscpack/osc/OscOutboundPacketStream.h:78: error: ‘std::size_t’ has not been declared
oscpack/osc/OscOutboundPacketStream.h:83: error: ‘size_t’ in namespace ‘std’ does not name a type
oscpack/osc/OscOutboundPacketStream.h:86: error: ‘size_t’ in namespace ‘std’ does not name a type
oscpack/osc/OscOutboundPacketStream.h:135: error: ‘std::size_t’ has not been declared
oscpack/osc/OscOutboundPacketStream.cpp:149: error: ‘size_t’ in namespace ‘std’ does not name a type
oscpack/osc/OscOutboundPacketStream.cpp:155: error: ‘std::size_t’ has not been declared
oscpack/osc/OscOutboundPacketStream.cpp: In constructor ‘osc::OutboundPacketStream::OutboundPacketStream(char*, int)’:
oscpack/osc/OscOutboundPacketStream.cpp:166: error: ‘assert’ was not declared in this scope
oscpack/osc/OscOutboundPacketStream.cpp: In member function ‘void osc::OutboundPacketStream::EndElement(char*)’:
oscpack/osc/OscOutboundPacketStream.cpp:202: error: ‘assert’ was not declared in this scope
oscpack/osc/OscOutboundPacketStream.cpp:218: error: ‘ptrdiff_t’ is not a member of ‘std’
oscpack/osc/OscOutboundPacketStream.cpp:218: error: expected `;' before ‘d’
oscpack/osc/OscOutboundPacketStream.cpp:221: error: ‘d’ was not declared in this scope
oscpack/osc/OscOutboundPacketStream.cpp: In member function ‘void osc::OutboundPacketStream::CheckForAvailableBundleSpace()’:
oscpack/osc/OscOutboundPacketStream.cpp:238: error: ‘size_t’ is not a member of ‘std’
oscpack/osc/OscOutboundPacketStream.cpp:238: error: expected `;' before ‘required’
oscpack/osc/OscOutboundPacketStream.cpp:240: error: ‘required’ was not declared in this scope
oscpack/osc/OscOutboundPacketStream.cpp:240: error: ‘Capacity’ was not declared in this scope
oscpack/osc/OscOutboundPacketStream.cpp: In member function ‘void osc::OutboundPacketStream::CheckForAvailableMessageSpace(const char*)’:
oscpack/osc/OscOutboundPacketStream.cpp:248: error: ‘size_t’ is not a member of ‘std’
oscpack/osc/OscOutboundPacketStream.cpp:248: error: expected `;' before ‘required’
oscpack/osc/OscOutboundPacketStream.cpp:251: error: ‘required’ was not declared in this scope
oscpack/osc/OscOutboundPacketStream.cpp:251: error: ‘Capacity’ was not declared in this scope
oscpack/osc/OscOutboundPacketStream.cpp: At global scope:
oscpack/osc/OscOutboundPacketStream.cpp:256: error: variable or field ‘CheckForAvailableArgumentSpace’ declared void
oscpack/osc/OscOutboundPacketStream.cpp:256: error: ‘size_t’ is not a member of ‘std’
oscpack/osc/OscOutboundPacketStream.cpp:277: error: ‘size_t’ in namespace ‘std’ does not name a type
oscpack/osc/OscOutboundPacketStream.cpp:283: error: ‘size_t’ in namespace ‘std’ does not name a type
oscpack/osc/OscOutboundPacketStream.cpp: In member function ‘osc::OutboundPacketStream& osc::OutboundPacketStream::operator<<(const osc::BundleInitiator&)’:
oscpack/osc/OscOutboundPacketStream.cpp:329: error: ‘memcpy’ is not a member of ‘std’
oscpack/osc/OscOutboundPacketStream.cpp: In member function ‘osc::OutboundPacketStream& osc::OutboundPacketStream::operator<<(const osc::BeginMessage&)’:
oscpack/osc/OscOutboundPacketStream.cpp:363: error: ‘strcpy’ is not a member of ‘std’
oscpack/osc/OscOutboundPacketStream.cpp:364: error: ‘size_t’ is not a member of ‘std’
oscpack/osc/OscOutboundPacketStream.cpp:364: error: expected `;' before ‘rhsLength’
oscpack/osc/OscOutboundPacketStream.cpp:365: error: ‘rhsLength’ was not declared in this scope
oscpack/osc/OscOutboundPacketStream.cpp:368: error: ‘size_t’ is not a member of ‘std’
oscpack/osc/OscOutboundPacketStream.cpp:368: error: expected `;' before ‘i’
oscpack/osc/OscOutboundPacketStream.cpp:369: error: ‘i’ was not declared in this scope
oscpack/osc/OscOutboundPacketStream.cpp: In member function ‘osc::OutboundPacketStream& osc::OutboundPacketStream::operator<<(const osc::MessageTerminator&)’:
oscpack/osc/OscOutboundPacketStream.cpp:390: error: ‘size_t’ is not a member of ‘std’
oscpack/osc/OscOutboundPacketStream.cpp:390: error: expected `;' before ‘typeTagsCount’
oscpack/osc/OscOutboundPacketStream.cpp:392: error: ‘typeTagsCount’ was not declared in this scope
oscpack/osc/OscOutboundPacketStream.cpp:394: error: ‘alloca’ was not declared in this scope
oscpack/osc/OscOutboundPacketStream.cpp:395: error: ‘memcpy’ is not a member of ‘std’
oscpack/osc/OscOutboundPacketStream.cpp:398: error: ‘size_t’ is not a member of ‘std’
oscpack/osc/OscOutboundPacketStream.cpp:398: error: expected `;' before ‘typeTagSlotSize’
oscpack/osc/OscOutboundPacketStream.cpp:400: error: ‘size_t’ is not a member of ‘std’
oscpack/osc/OscOutboundPacketStream.cpp:400: error: expected `;' before ‘argumentsSize’
oscpack/osc/OscOutboundPacketStream.cpp:402: error: ‘memmove’ is not a member of ‘std’
oscpack/osc/OscOutboundPacketStream.cpp:402: error: ‘typeTagSlotSize’ was not declared in this scope
oscpack/osc/OscOutboundPacketStream.cpp:402: error: ‘argumentsSize’ was not declared in this scope
oscpack/osc/OscOutboundPacketStream.cpp:406: error: ‘size_t’ is not a member of ‘std’
oscpack/osc/OscOutboundPacketStream.cpp:406: error: expected `;' before ‘i’
oscpack/osc/OscOutboundPacketStream.cpp:406: error: ‘i’ was not declared in this scope
oscpack/osc/OscOutboundPacketStream.cpp:410: error: ‘size_t’ is not a member of ‘std’
oscpack/osc/OscOutboundPacketStream.cpp:410: error: expected `;' before ‘i’
oscpack/osc/OscOutboundPacketStream.cpp:410: error: ‘i’ was not declared in this scope
oscpack/osc/OscOutboundPacketStream.cpp:420: error: ‘memcpy’ is not a member of ‘std’
oscpack/osc/OscOutboundPacketStream.cpp: In member function ‘osc::OutboundPacketStream& osc::OutboundPacketStream::operator<<(const char*)’:
oscpack/osc/OscOutboundPacketStream.cpp:602: error: ‘strlen’ is not a member of ‘std’
oscpack/osc/OscOutboundPacketStream.cpp:602: error: ‘RoundUp4’ was not declared in this scope
oscpack/osc/OscOutboundPacketStream.cpp:605: error: ‘strcpy’ is not a member of ‘std’
oscpack/osc/OscOutboundPacketStream.cpp:606: error: ‘size_t’ is not a member of ‘std’
oscpack/osc/OscOutboundPacketStream.cpp:606: error: expected `;' before ‘rhsLength’
oscpack/osc/OscOutboundPacketStream.cpp:607: error: ‘rhsLength’ was not declared in this scope
oscpack/osc/OscOutboundPacketStream.cpp:610: error: ‘size_t’ is not a member of ‘std’
oscpack/osc/OscOutboundPacketStream.cpp:610: error: expected `;' before ‘i’
oscpack/osc/OscOutboundPacketStream.cpp:611: error: ‘i’ was not declared in this scope
oscpack/osc/OscOutboundPacketStream.cpp: In member function ‘osc::OutboundPacketStream& osc::OutboundPacketStream::operator<<(const osc::Symbol&)’:
oscpack/osc/OscOutboundPacketStream.cpp:622: error: ‘strlen’ is not a member of ‘std’
oscpack/osc/OscOutboundPacketStream.cpp:622: error: ‘RoundUp4’ was not declared in this scope
oscpack/osc/OscOutboundPacketStream.cpp:625: error: ‘strcpy’ is not a member of ‘std’
oscpack/osc/OscOutboundPacketStream.cpp:626: error: ‘size_t’ is not a member of ‘std’
oscpack/osc/OscOutboundPacketStream.cpp:626: error: expected `;' before ‘rhsLength’
oscpack/osc/OscOutboundPacketStream.cpp:627: error: ‘rhsLength’ was not declared in this scope
oscpack/osc/OscOutboundPacketStream.cpp:630: error: ‘size_t’ is not a member of ‘std’
oscpack/osc/OscOutboundPacketStream.cpp:630: error: expected `;' before ‘i’
oscpack/osc/OscOutboundPacketStream.cpp:631: error: ‘i’ was not declared in this scope
oscpack/osc/OscOutboundPacketStream.cpp: In member function ‘osc::OutboundPacketStream& osc::OutboundPacketStream::operator<<(const osc::Blob&)’:
oscpack/osc/OscOutboundPacketStream.cpp:642: error: ‘RoundUp4’ was not declared in this scope
oscpack/osc/OscOutboundPacketStream.cpp:648: error: ‘memcpy’ is not a member of ‘std’
make[1]: *** [obj/oscpack/Debug/OscOutboundPacketStream.o] Error 1
make: *** [oscpack] Error 2

I’d be extremely grateful for any help on how to build Grace with FOMUS, OSCpack, and a working « Save » function.

Thank you and best regards,
Antoine
_______________________________________________
Cmdist mailing list
Cmdist@...
https://cm-mail.stanford.edu/mailman/listinfo/cmdist

Gmane