[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [sc-users] arrays of (changing) functions
- To: sc-users@xxxxxxxxxxxxxxxx
- Subject: Re: [sc-users] arrays of (changing) functions
- From: Dan Stowell <danstowell@xxxxxxxxx>
- Date: Tue, 3 Mar 2009 09:58:21 +0000
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=oMiIhwzng0O1OMLx5UnzU1G0GacKrWTRs2x9sIuvY6g=; b=aa2nCL7zp78rRzoDQLr3tLEQQBNeWk/boxgbjyS0gMFpB4gxeG1qqKq2WiS4pJCUn3 sHoOoN1pWfShV0INgBr3ZSqvlOx94KwRzWVdlD7aDxpUlR394nBMeH/4MloI+Ddf3XmU 2IJ9p0PdzdjZ4Wh9QmOWgShCRj0LhoRXRV3DQ=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=quVf35FPNIh/qdyQq+zP/ZuIQp23XNOy43aQSNyJwzkzMe886lWOc1EMClA9O0ujo7 CNRxc05UTb0Kiaq0CA1gawCqnoaNS+EdeWA2P9YW2APUGsQ2PFlp0HMqxFSs94Nm7AHg EtSyVKdAKPmpgxZ2QX8HjwKufpPPlETxZpIww=
- In-reply-to: <920398.61504.qm@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
- List-id: SuperCollider users mailing list <sc-users.create.ucsb.edu>
- References: <D9080077-72FC-4BB5-8F6F-8837454D5534@xxxxxxxx> <920398.61504.qm@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Reply-to: sc-users@xxxxxxxxxxxxxxxx
- Sender: owner-sc-users@xxxxxxxxxxxxxxxx
it's mac-only at the moment - it's used to get round a little quarky
issue on mac.
dan
2009/3/3, Björn Kessler <kebjoern@xxxxxxxx>:
>
> I know its a joke, but I thought it might be interesting. So I tried it out:
>
> "cat % > scclasses".format(Class.allClasses).runInTerminal;
>
> When I run this code, I get this message:
>
> /usr/bin/open: invalid option -- a
>
> This option seems not to be supported on linux (I have ubuntu 8.01). What is it for. Do I have to change the class-definition to make this work? I never did something like this, so a helping word would be appreciated.
>
> Sincerely, bjoern
>
> --- LFSaw <lfsaw@xxxxxxxx> schrieb am Di, 3.3.2009:
>
> > Von: LFSaw <lfsaw@xxxxxxxx>
> > Betreff: Re: [sc-users] arrays of (changing) functions
> > An: sc-users@xxxxxxxxxxxxxxxx
> > Datum: Dienstag, 3. März 2009, 0:05
>
> > "cat % >
> > /dev/brain".format(Class.allClasses).runInTerminal("/bin/ssh
> > andrea@valle");
> >
> >
> > > On 03.03.2009, at 00:00, Andrea Valle wrote:
> >
> >
> > wow. 00:00h ^^^^ have to go to bed now…
> >
> > cheers
> > Till
> >
> >
> > > Yes, the fact is how to keep my brain updated...
> > >
> > > Best
> > > -a-
> > >
> > > On 2 Mar 2009, at 23:52, LFSaw wrote:
> > >
> > >> It's located in JITLib/various/FDef.sc
> > >> so you should find it (or update… :-)
> > >>
> > >> On 02.03.2009, at 23:40, Andrea Valle wrote:
> > >>
> > >>> (Oh! Maybe, there's also Maybe. It's a
> > theoretical question if I just ever know by name all the
> > classes in the main distro.
> > >>
> > >> Class.allClasses.printAll; ""
> > >> *g*
> > >>
> > >> lg
> > >> Till
> > >>
> > >>> Maybe (hmm, returns nil here))
> > >>> Best
> > >>>
> > >>> -a-
> > >>>
> > >>> On 2 Mar 2009, at 22:07, Julian Rohrhuber
> > wrote:
> > >>>
> > >>>> have a look if Maybe helps you further
> > (see Maybe.hlep and LazyEnvir.help)
> > >>>>
> > >>>>
> > >>>>> hi,
> > >>>>>
> > >>>>> I'm trying to change functions on
> > the fly that works great when I create
> > >>>>> them explicitly but trying to use
> > arrays of functions I have to reevaluate
> > >>>>> the whole collect statement to get it
> > to work why is that ?
> > >>>>>
> > >>>>> // this is pretty much what I want,
> > and that works:
> > >>>>> ~f1 = nil; // nothing
> > >>>>> ~t1 = {~f1.()}; // works
> > >>>>> ~t1.(); // test -> ok
> > >>>>> ~f1 = { "f1".postln; } //
> > change
> > >>>>> ~t1.(); // test ->
> > ok ~f1 = { "f1a".postln; } // etc ....
> > >>>>> ~t1.();
> > >>>>> ~f2 = { "f2".postln; }
> > >>>>> ~t1 = {~f2.()};
> > >>>>> ~t1.();
> > >>>>> // but arrays of functions don't:
> > >>>>> ~f3 = nil;
> > >>>>> ~fs = [~f1,~f3];
> > >>>>> ~t1 = { ~fs[0].() }; // still
> > >>>>> ~t1.(); // works
> > >>>>> ~f3 = { "f3".postln;} ~t1 =
> > { ~fs[1].() }; // this
> > >>>>> ~t1.(); // doesn't
> > >>>>>
> > >>>>> is there a simple solution without
> > reevaluating the array and re-collect it ?
> > >>>>>
> > >>>>> TIA,
> > >>>>> x
> > >>>>>
> > >>>>> --
> > >>>>> chris@xxxxxxxxxx Postmodernism
> > is german romanticism with better
> > >>>>> http://pilot.fm/ special
> > effects. (Jeff Keuss / via ctheory.net)
> > >>>>>
> > >>>>>
> > _______________________________________________
> > >>>>> sc-users mailing list
> > >>>>>
> > >>>>> info (subscription, etc.):
> > http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
> > >>>>> archive:
> > https://listarc.bham.ac.uk/marchives/sc-users/
> > >>>>> search:
> > https://listarc.bham.ac.uk/lists/sc-users/search/
> > >>>>
> > >>>>
> > >>>> --
> > >>>>
> > >>>>
> > >>>>
> > >>>>
> > >>>> .
> > >>>>
> > >>>>
> > _______________________________________________
> > >>>> sc-users mailing list
> > >>>>
> > >>>> info (subscription, etc.):
> > http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
> > >>>> archive:
> > https://listarc.bham.ac.uk/marchives/sc-users/
> > >>>> search:
> > https://listarc.bham.ac.uk/lists/sc-users/search/
> > >>>
> > >>>
> > --------------------------------------------------
> > >>> Andrea Valle
> > >>>
> > --------------------------------------------------
> > >>> CIRMA - DAMS
> > >>> Università degli Studi di Torino
> > >>> --> http://www.cirma.unito.it/andrea/
> > >>> --> http://www.myspace.com/andreavalle
> > >>> -->
> > http://www.flickr.com/photos/vanderaalle/
> > >>> -->
> > http://www.youtube.com/user/vanderaalle
> > >>> --> andrea.valle@xxxxxxxx
> > >>>
> > --------------------------------------------------
> > >>>
> > >>> "The objectives of SuperCollider have
> > been taken a stage further with the development of SAOL, the
> > fruits of a research project based at MIT, launched in
> > 1998"
> > >>> (P. Manning, Electronic and Computer Music,
> > revised and expanded edition, 2004)
> > >>>
> > >>
> > >>
> > >> _______________________________________________
> > >> sc-users mailing list
> > >>
> > >> info (subscription, etc.):
> > http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
> > >> archive:
> > https://listarc.bham.ac.uk/marchives/sc-users/
> > >> search:
> > https://listarc.bham.ac.uk/lists/sc-users/search/
> > >
> > > --------------------------------------------------
> > > Andrea Valle
> > > --------------------------------------------------
> > > CIRMA - DAMS
> > > Università degli Studi di Torino
> > > --> http://www.cirma.unito.it/andrea/
> > > --> http://www.myspace.com/andreavalle
> > > --> http://www.flickr.com/photos/vanderaalle/
> > > --> http://www.youtube.com/user/vanderaalle
> > > --> andrea.valle@xxxxxxxx
> > > --------------------------------------------------
> > >
> > > "The objectives of SuperCollider have been taken
> > a stage further with the development of SAOL, the fruits of
> > a research project based at MIT, launched in 1998"
> > > (P. Manning, Electronic and Computer Music, revised
> > and expanded edition, 2004)
> > >
> >
> >
> > _______________________________________________
> > sc-users mailing list
> >
> > info (subscription, etc.):
> > http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
> > archive: https://listarc.bham.ac.uk/marchives/sc-users/
> > search:
> > https://listarc.bham.ac.uk/lists/sc-users/search/
>
>
>
>
> _______________________________________________
> sc-users mailing list
>
> info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
> archive: https://listarc.bham.ac.uk/marchives/sc-users/
> search: https://listarc.bham.ac.uk/lists/sc-users/search/
>
--
http://www.mcld.co.uk
_______________________________________________
sc-users mailing list
info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: https://listarc.bham.ac.uk/marchives/sc-users/
search: https://listarc.bham.ac.uk/lists/sc-users/search/