From jwmatthys at yahoo.com Wed Jul 11 16:52:06 2012 From: jwmatthys at yahoo.com (Joel Matthys) Date: Wed, 11 Jul 2012 19:52:06 -0400 Subject: [CM] build errors on linux Message-ID: <4FFE11A6.5070201@yahoo.com> Hi all. I just rebuilt CM and Grace from source and encountered a few compile errors. I'm on Ubuntu 12.04 amd64, with a fresh svn checkout: Grace 3.8.0 [svn:1982M] JUCE v1.54.27 S7 Scheme 2.8 FOMUS 0.1.18-alpha 1. a bunch of XShm errors, which required adding Xext to premake links (around line 392) 2. src/AudioFilePlayer.cpp:20:36: error: cannot call constructor 'juce::Font::Font' directly [-fpermissive] (fixed by removing redundant '::Font') 3. src/MidiFilePlayer.cpp:95:42: error: cannot call constructor 'juce::Font::Font' directly [-fpermissive] (fixed by removing redundant '::Font') After fixing those three, everything built fine. Joel -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsack23 at gmail.com Thu Jul 12 15:57:57 2012 From: bsack23 at gmail.com (Bill Sack) Date: Thu, 12 Jul 2012 18:57:57 -0400 Subject: [CM] build errors on linux In-Reply-To: <4FFE11A6.5070201@yahoo.com> References: <4FFE11A6.5070201@yahoo.com> Message-ID: thank you for posting this. i had similar problems compiling on fedora 16 a couple of months ago and just gave up. i just added add(mypackage.links, "dl") add(mypackage.links, "Xext") to premake.lua and changed the other files to get rid of the redundant "::Font" and compiled successfully. thank you for helping me to overcome inertia! bill On Wed, Jul 11, 2012 at 7:52 PM, Joel Matthys wrote: > Hi all. I just rebuilt CM and Grace from source and encountered a few > compile errors. > > I'm on Ubuntu 12.04 amd64, with a fresh svn checkout: > > Grace 3.8.0 [svn:1982M] > JUCE v1.54.27 > S7 Scheme 2.8 > FOMUS 0.1.18-alpha > > 1. a bunch of XShm errors, which required adding Xext to premake links > (around line 392) > > 2. src/AudioFilePlayer.cpp:20:36: error: cannot call constructor > ?juce::Font::Font? directly [-fpermissive] (fixed by removing redundant > '::Font') > > 3. src/MidiFilePlayer.cpp:95:42: error: cannot call constructor > ?juce::Font::Font? directly [-fpermissive] (fixed by removing redundant > '::Font') > > After fixing those three, everything built fine. > > Joel > > _______________________________________________ > Cmdist mailing list > Cmdist at ccrma.stanford.edu > http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From taube at illinois.edu Fri Jul 13 04:29:54 2012 From: taube at illinois.edu (Heinrich Taube) Date: Fri, 13 Jul 2012 06:29:54 -0500 Subject: [CM] build errors on linux In-Reply-To: References: <4FFE11A6.5070201@yahoo.com> Message-ID: <8361BCA9-0CD1-416F-B2DB-341C2B413FEF@illinois.edu> thank you ill clean this up and check it in this weekend. i was able to build on ubuntu, so i wonder what the issue is. On Jul 12, 2012, at 5:57 PM, Bill Sack wrote: > thank you for posting this. i had similar problems compiling on fedora 16 a couple of months ago and just gave up. > > i just added > add(mypackage.links, "dl") > add(mypackage.links, "Xext") > to premake.lua > and changed the other files to get rid of the redundant "::Font" and compiled successfully. > > thank you for helping me to overcome inertia! > > bill > > > On Wed, Jul 11, 2012 at 7:52 PM, Joel Matthys wrote: > Hi all. I just rebuilt CM and Grace from source and encountered a few compile errors. > > I'm on Ubuntu 12.04 amd64, with a fresh svn checkout: > > Grace 3.8.0 [svn:1982M] > JUCE v1.54.27 > S7 Scheme 2.8 > FOMUS 0.1.18-alpha > > 1. a bunch of XShm errors, which required adding Xext to premake links (around line 392) > > 2. src/AudioFilePlayer.cpp:20:36: error: cannot call constructor ?juce::Font::Font? directly [-fpermissive] (fixed by removing redundant '::Font') > > 3. src/MidiFilePlayer.cpp:95:42: error: cannot call constructor ?juce::Font::Font? directly [-fpermissive] (fixed by removing redundant '::Font') > > After fixing those three, everything built fine. > > Joel > > _______________________________________________ > Cmdist mailing list > Cmdist at ccrma.stanford.edu > http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist > > > _______________________________________________ > Cmdist mailing list > Cmdist at ccrma.stanford.edu > http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist -------------- next part -------------- An HTML attachment was scrubbed... URL: From bil at ccrma.Stanford.EDU Mon Jul 23 11:31:39 2012 From: bil at ccrma.Stanford.EDU (Bill Schottstaedt) Date: Mon, 23 Jul 2012 11:31:39 -0700 Subject: [CM] cvs woe Message-ID: <20120723182951.M61151@ccrma.Stanford.EDU> I somehow thoroughly screwed up my connection to the cvs site at sourceforge. After about an hour of pain, I think it's back to normal, but anyone using that stuff please beware and let me know if you notice something messed up. From o.finnendahl at inm.mh-freiburg.de Thu Jul 26 02:40:17 2012 From: o.finnendahl at inm.mh-freiburg.de (Orm Finnendahl) Date: Thu, 26 Jul 2012 11:40:17 +0200 Subject: [CM] reading characters from keyboard in s7 Message-ID: <20120726094017.GA23347@varese> Hi, for snd (using s7) I wrote an interactive search/replace function for regions in a soundfile which needs to read characters from the keyboard, whether or not to replace parts in the soundfile. In guile you can use (read) for this purpose, in s7 this function immediately returns #. Does someone know how to get it done and maybe give a short example (maybe even for single characters without having to type #\return at the end)? -- Orm From bil at ccrma.Stanford.EDU Thu Jul 26 10:36:45 2012 From: bil at ccrma.Stanford.EDU (Bill Schottstaedt) Date: Thu, 26 Jul 2012 10:36:45 -0700 Subject: [CM] reading characters from keyboard in s7 In-Reply-To: <20120726094017.GA23347@varese> References: <20120726094017.GA23347@varese> Message-ID: <20120726173532.M28097@ccrma.Stanford.EDU> (read-char *stdin*) will wait for you to type something in the terminal, then return it. There's a fancier example in s7.html (under begin-hook) which watches for C-C to break out of a loop. It uses tcgetattr and friends; here's a stand-alone C program that is very similar: #include #include #include #include static struct termios saveit; static int tty_reset(int fd) { if (tcsetattr(fd, TCSAFLUSH, &saveit) < 0) return(-1); return(0); } static void sigcatch(int no) { tty_reset(fileno(stdin)); exit(0); } int main (int argc, char **argv) { struct termios buf; int i; char c; if (signal(SIGINT, sigcatch) == SIG_ERR) exit(1); if (signal(SIGQUIT, sigcatch) == SIG_ERR) exit(1); if (signal(SIGTERM, sigcatch) == SIG_ERR) exit(1); if (tcgetattr(fileno(stdin), &saveit) < 0) exit(1); buf = saveit; buf.c_lflag &= ~(ECHO | ICANON); buf.c_cc[VMIN] = 1; buf.c_cc[VTIME] = 0; if (tcsetattr(fileno(stdin), TCSAFLUSH, &buf) < 0) exit(1); while ((i = read(fileno(stdin), &c, 1)) == 1) /* Ctrl-C to exit */ { c &= 255; fprintf(stderr,"got %c\n", c); } tty_reset(fileno(stdin)); return(0); } In the Snd listener, read-hook might be what you want (except it waits for carriage-return). To do something fancier in the listener would probably require hacking the XmNmodifyVerify callback (in Motif) or its equivalent in gtk as applied to the listener text widget. snd-motif.scm has some code that might give you a start. From o.finnendahl at inm.mh-freiburg.de Fri Jul 27 02:48:37 2012 From: o.finnendahl at inm.mh-freiburg.de (Orm Finnendahl) Date: Fri, 27 Jul 2012 11:48:37 +0200 Subject: [CM] reading characters from keyboard in s7 Message-ID: <20120727094837.GB4029@varese> Hi Bill, thanks a lot, your thorough answer is very appreciated! Yours, Orm On Thu, 26 Jul 2012 10:36:59 -0700, Bill Schottstaedt wrote: > > > (read-char *stdin*) > > will wait for you to type something in the terminal, then > return it. There's a fancier example in s7.html (under > begin-hook) which > watches for C-C to break out of a loop. It uses tcgetattr > and friends; here's a stand-alone C program that is very > similar: > > > #include > #include > #include > #include > > static struct termios saveit; > > static int tty_reset(int fd) > { > if (tcsetattr(fd, TCSAFLUSH, &saveit) < 0) > return(-1); > return(0); > } > > static void sigcatch(int no) > { > tty_reset(fileno(stdin)); > exit(0); > } > > int main (int argc, char **argv) > { > struct termios buf; > int i; > char c; > > if (signal(SIGINT, sigcatch) == SIG_ERR) exit(1); > if (signal(SIGQUIT, sigcatch) == SIG_ERR) exit(1); > if (signal(SIGTERM, sigcatch) == SIG_ERR) exit(1); > > if (tcgetattr(fileno(stdin), &saveit) < 0) > exit(1); > buf = saveit; > buf.c_lflag &= ~(ECHO | ICANON); > buf.c_cc[VMIN] = 1; > buf.c_cc[VTIME] = 0; > if (tcsetattr(fileno(stdin), TCSAFLUSH, &buf) < 0) > exit(1); > while ((i = read(fileno(stdin), &c, 1)) == 1) /* Ctrl-C to exit */ > { > c &= 255; > fprintf(stderr,"got %c\n", c); > } > tty_reset(fileno(stdin)); > return(0); > } > > In the Snd listener, read-hook might be what you want (except it waits > for carriage-return). To do something fancier in the listener would > probably require hacking the XmNmodifyVerify callback (in Motif) > or its equivalent in gtk as applied to the listener text widget. > snd-motif.scm has some code that might give you a start. > > _______________________________________________ > Cmdist mailing list > Cmdist at ccrma.stanford.edu > http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist