[Csnd] pattern in SC3
Date | 2010-11-15 22:20 |
From | peiman khosravi |
Subject | [Csnd] pattern in SC3 |
I don't want to start a Csound vs SC3 discussion. Today a friend was showing me how he generates events in SC3 (like Cmask but a lot more sophisticated and much faster for sure). http://danielnouri.org/docs/SuperColliderHelp/Streams-Patterns-Events/Pattern.html When I see such elegance I want to give SC3 a go. Is there a similar tool in/for Csound (apart from writing your own classes in python that is)? Would be nice if the Csound score language could be extended to include these function. This is on top of my wish for Xmas! I am even thinking of using SC3 to generate score for Csound... Best, Peiman |
Date | 2010-11-15 23:01 |
From | Michael Gogins |
Subject | [Csnd] Re: pattern in SC3 |
We haven't done it, but we could embed Lua in Csound and enable "luascore" and Lua opcodes. Would that do the job? Lua with JIT is 1/3 the speed of C which is stupendously fast for a dynamic language. Regards, Mike On Mon, Nov 15, 2010 at 5:20 PM, peiman khosravi |
Date | 2010-11-16 00:54 |
From | peiman khosravi |
Subject | [Csnd] Re: Re: pattern in SC3 |
Sounds very intriguing. Where can I read more about luascore and opcodes? Best, Peiman On 15 November 2010 23:01, Michael Gogins <michael.gogins@gmail.com> wrote: We haven't done it, but we could embed Lua in Csound and enable |
Date | 2010-11-16 01:21 |
From | Michael Gogins |
Subject | [Csnd] Re: Re: Re: pattern in SC3 |
I am saying we could create them, not that they exist. Sorry for the confusion... Regards, Mike On Mon, Nov 15, 2010 at 7:54 PM, peiman khosravi |
Date | 2010-11-16 01:24 |
From | peiman khosravi |
Subject | [Csnd] Re: Re: Re: Re: pattern in SC3 |
ha!! yes yes it sounds good! P On 16 November 2010 01:21, Michael Gogins <michael.gogins@gmail.com> wrote: I am saying we could create them, not that they exist. |
Date | 2010-11-16 01:25 |
From | matt ingalls |
Subject | [Csnd] Re: pattern in SC3 |
not quite sure what you are looking for, but if you want to make an instrument that generates a bunch of notes you generally do something like this: instr GestureGenerator if (kCurrentTime >= kNextStart) then ; write a new note! <calculate pfields here> ; spawn new note event "i", <pfields here...> kNextStart = kNextStart + kDensity endif kCurrentTime = kCurrentTime + iResolution endin i have a .csd that generates a .sco file instead of real-time "event" with ranges of randomness for every pfield. if you want i can post it. -m On Nov 15, 2010, at 2:20 PM, peiman khosravi wrote: I don't want to start a Csound vs SC3 discussion. Today a friend was showing me how he generates events in SC3 (like Cmask but a lot more sophisticated and much faster for sure). |
Date | 2010-11-16 01:32 |
From | Brian Wong |
Subject | [Csnd] RE: Re: Re: Re: pattern in SC3 |
Peiman, Given that I know you are already familiar with blue, so I'll suggest you should you look at trying to do it with a Python soundObject in blue. Personally I tried out pmask, but quickly moved on to creating my own code and systems. I found the pmask documentation difficult and most of what it does it easily duplicated with your own code and the Python random and math libraries. Brian ---------------------------------------- > Date: Mon, 15 Nov 2010 20:21:34 -0500 > From: michael.gogins@gmail.com > To: csound@lists.bath.ac.uk > Subject: [Csnd] Re: Re: Re: pattern in SC3 > > I am saying we could create them, not that they exist. > > Sorry for the confusion... > > Regards, > Mike > > On Mon, Nov 15, 2010 at 7:54 PM, peiman khosravi > wrote: > > Sounds very intriguing. Where can I read more about luascore and opcodes? > > > > Best, > > Peiman > > > > On 15 November 2010 23:01, Michael Gogins wrote: > >> > >> We haven't done it, but we could embed Lua in Csound and enable > >> "luascore" and Lua opcodes. Would that do the job? Lua with JIT is 1/3 > >> the speed of C which is stupendously fast for a dynamic language. > >> > >> Regards, > >> Mike > >> > >> On Mon, Nov 15, 2010 at 5:20 PM, peiman khosravi > >> wrote: > >> > I don't want to start a Csound vs SC3 discussion. Today a friend was > >> > showing > >> > me how he generates events in SC3 (like Cmask but a lot more > >> > sophisticated > >> > and much faster for sure). > >> > > >> > > >> > http://danielnouri.org/docs/SuperColliderHelp/Streams-Patterns-Events/Pattern.html > >> > > >> > When I see such elegance I want to give SC3 a go. Is there a similar > >> > tool > >> > in/for Csound (apart from writing your own classes in python that is)? > >> > > >> > Would be nice if the Csound score language could be extended to include > >> > these function. This is on top of my wish for Xmas! I am even thinking > >> > of > >> > using SC3 to generate score for Csound... > >> > > >> > Best, > >> > > >> > Peiman > >> > > >> > > >> > > >> > >> > >> > >> -- > >> Michael Gogins > >> Irreducible Productions > >> http://www.michael-gogins.com > >> Michael dot Gogins at gmail dot com > >> > >> > >> Send bugs reports to the Sourceforge bug tracker > >> https://sourceforge.net/tracker/?group_id=81968&atid=564599 > >> Discussions of bugs and features can be posted here > >> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe > >> csound" > >> > > > > > > > > -- > Michael Gogins > Irreducible Productions > http://www.michael-gogins.com > Michael dot Gogins at gmail dot com > > > Send bugs reports to the Sourceforge bug tracker > https://sourceforge.net/tracker/?group_id=81968&atid=564599 > Discussions of bugs and features can be posted here > To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound" > Send bugs reports to the Sourceforge bug tracker https://sourceforge.net/tracker/?group_id=81968&atid=564599 Discussions of bugs and features can be posted here To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound" |
Date | 2010-11-16 09:41 |
From | peiman khosravi |
Subject | [Csnd] Re: Re: pattern in SC3 |
Hi Mat, This seems like a good method actually. I would love to have a look at your csd! Best, Peiman On 16 November 2010 01:25, matt ingalls <matt@sonomatics.com> wrote:
|
Date | 2010-11-16 09:52 |
From | peiman khosravi |
Subject | [Csnd] Re: RE: Re: Re: Re: pattern in SC3 |
Hi Brian, Yes. Although my python skills are quite rusty at the moment! Unfortunately I have not been able to run blue on my computer since a couple of versions ago. Trying to get that done right now! Best, Peiman On 16 November 2010 01:32, Brian Wong <brian.wong1@hotmail.com> wrote:
|
Date | 2010-11-16 20:15 |
From | matt ingalls |
Subject | [Csnd] score generating orc, was Re: Re: Re: pattern in SC3 |
OK i probably posted this before, but its been a number of years.. it is a MacCsound file, but should run on any platform. there are a number of unusual things i am doing that makes it easier for user. (recursive udos, weird sr, generating text instead of audio, etc) - it is not necessary to understand the orc to use.. to specify a gesture of notes, you essentially create 2 tables for every p-field for the i-statements you want to be generated. These functions represent the allowable minimum and maximum range of the p-field. (see notes in the score for more details) HOW TO RUN: 1) Change the path in gScoName to the desired path & score file name to be generated. ( Optionally change the sr to be a different "temporal resolution" -- see note in orc) 2) tweak the score parameters (see notes in score) and then render. (NOTE use the -n flag to avoid generating a soundfile along with it!!!) 3) now take the score you just generated and run it with your orc. this is the one i use: nchnls = 2 instr 1 aSig vco2 p4*0dbfs, cpsoct(p5) outs aSig*sqrt(p6), aSig*sqrt(1-p6) endin let me know if you have any questions. -m |
Date | 2010-11-16 20:18 |
From | Rory Walsh |
Subject | [Csnd] Re: score generating orc, was Re: Re: Re: pattern in SC3 |
I think you showed this one in Ireland when you last visited. It's been quite a while but I never forget an instrument! Rory. On 16 November 2010 20:15, matt ingalls |
Date | 2010-11-16 20:35 |
From | matt ingalls |
Subject | [Csnd] Re: Re: score generating orc, was Re: Re: Re: pattern in SC3 |
yep - in fact i found it in a folder called "sounds electric workshop"! On Nov 16, 2010, at 12:18 PM, Rory Walsh wrote: > I think you showed this one in Ireland when you last visited. It's > been quite a while but I never forget an instrument! > > Rory. > > > On 16 November 2010 20:15, matt ingalls |
Date | 2010-11-18 18:11 |
From | peiman khosravi |
Subject | [Csnd] Re: RE: Re: Re: Re: pattern in SC3 |
Thanks to everyone for your inputs. Following a suggestion I started look at common music and found that it has loads of pattern generation objects. In fact both the syntax and the functionality are very similar to SC! And it is indeed very easy to learn the language. I've already (just after four days or so) started generating scores similar to Cmask and more. I never realised that you can even call csound from inside CM (terminal only though). It's much easier than python too as you most of the objects are ready for use so very little low level coding is required. CM does also send OSC messages but I can imagine that if csound api was integrated there somehow even live coding would be possible with CM and Csound. Best, Peiman On 16 November 2010 09:52, peiman khosravi <peimankhosravi@gmail.com> wrote: Hi Brian, |
Date | 2010-11-18 18:29 |
From | Anthony Palomba |
Subject | [Csnd] Re: Re: RE: Re: Re: Re: pattern in SC3 |
I have been using CM for quite some time, it is pretty cool. Unfortunately it only lets you write csound scores, not CSound API support. The CM OSC implementation of windows is not working. That being said it is still a great tool. It has a very interesting library of functions for doing spectral composition. I like CM so much that I am re-implementing a good part of its functionality in python. Hopefully in the end I will have a CM like environment that can REALLY interface with csound. We'll also see if python will run as well as Scheme. -ap On Thu, Nov 18, 2010 at 12:11 PM, peiman khosravi <peimankhosravi@gmail.com> wrote: Thanks to everyone for your inputs. Following a suggestion I started look at common music and found that it has loads of pattern generation objects. In fact both the syntax and the functionality are very similar to SC! And it is indeed very easy to learn the language. I've already (just after four days or so) started generating scores similar to Cmask and more. I never realised that you can even call csound from inside CM (terminal only though). It's much easier than python too as you most of the objects are ready for use so very little low level coding is required. CM does also send OSC messages but I can imagine that if csound api was integrated there somehow even live coding would be possible with CM and Csound. |
Date | 2010-11-18 18:48 |
From | Michael Gogins |
Subject | [Csnd] Re: Re: Re: RE: Re: Re: Re: pattern in SC3 |
There is some degree of Csound API support in Common Music -- if you use the Lisp version of Common Music (instead of the Scheme used in Grace) you can call out using the Lisp CFFI wrapper for the Csound API. I'm not sure what to do about the Scheme situation, but I will at least look into it. It could be a problem because the Scheme in Grace uses a custom implementation of Scheme. Regards Mike On Thu, Nov 18, 2010 at 1:29 PM, Anthony Palomba |
Date | 2010-11-18 18:59 |
From | Steven Yi |
Subject | [Csnd] Re: pattern in SC3 |
I thought I'd mention generating score and sending the events live to a running Csound via blue's blueLive mode. I'll use blueLive for this myself when working on new music scripts to help prototype. You should be able to call cm from blue, generate the score, then do further processing within blue if desired. One should be able to do this by making a small host in lisp or scheme as well. (There is also a nice csound journal article in the upcoming Csound journal that demonstrates some live usage of csound via the API and python via IPython shell). On 11/18/10, Michael Gogins |
Date | 2010-11-18 19:18 |
From | peiman khosravi |
Subject | [Csnd] Re: Re: Re: Re: RE: Re: Re: Re: pattern in SC3 |
On 18 November 2010 18:48, Michael Gogins <michael.gogins@gmail.com> wrote: There is some degree of Csound API support in Common Music -- if you It would be great if that was made possible in the future. Mind you most of my scores are too dens to play in rt anyway! Best, Peiman Regards |