[Csnd] Csound Notebook
Date | 2014-04-17 01:30 |
From | Steven Yi |
Subject | [Csnd] Csound Notebook |
Hi All, I'm happy to announce the Csound Notebook server is available at: http://csound-notebook.kunstmusik.com It allows creating notebooks filled with Csound notes (projects). It uses the pNaCl version of Csound to render projects in realtime and allows live coding by re-evaluating selected text. With pNaCl, you do not have to have Csound previously installed. This does require that you use Google Chrome or Chromium browsers that support pNaCl. To get started, use the register button to create an account. Upon successful creation, you will receive an email to activate your account. Once you activate, you will be able to login. From there, click "My Notebook" and you can get started with Csound. To note, use the Play button to start Csound. Once Csound starts, you can start evaluating code. The Play button becomes a Pause button which you can use to pause csound. Some notes: currently there's no warning to save a Note if you've modified it and moved on to another note. Please be careful to save before changing notes. Also, I don't think there's a way to restart Csound to a clean state without refreshing the page. We may need to add some changes to pNaCl Csound to support this. I think there's a lot of potential here to further develop this web application. I look forward to hearing any feedback. Thanks! steven |
Date | 2014-04-17 03:00 |
From | Michael Gogins |
Subject | Re: [Csnd] Csound Notebook |
I think this is a really great idea. I think there is potential here for getting more of a foothold in music technology education. And of course you can just start using Csound on any computer that has Chrome with PNaCl. There's a lot of other things like this happening too, but with Csound you can teach or use just about any synthesis technique and easily implement new techniques. This obviously is just the beginning.
Thanks! Mike -----------------------------------------------------
Michael GoginsIrreducible Productions http://michaelgogins.tumblr.com Michael dot Gogins at gmail dot com On Wed, Apr 16, 2014 at 8:30 PM, Steven Yi <stevenyi@gmail.com> wrote: Hi All, |
Date | 2014-04-17 05:50 |
From | Forrest Cahoon |
Subject | Re: [Csnd] Csound Notebook |
This is great; I just got a chromebook, not realizing how limited it is, and of course I wanted a way to use csound with it. Unfortunately, it isn't working for me, Steven. I signed up and created a note, which filled in with a default csound orc and sco (which I'm guessing is known to be good?) When I play it, though, no sound comes out, and the console stops with the line "SECTION 1:".
I checked my sound by going to soundcloud, so that's not an issue. Here's the full console text: Csound: loading... (count=1) Csound: ready Csound: running...
sample rate overrides: esr = 44100.0000, ekr = 689.0625, ksmps = 64 Csound version 6.02.0 (float samples) Jan 7 2014 graphics suppressed, ascii substituted 0dBFS level = 1.0 orch now loaded
audio buffered in 512 sample-frame blocks SECTION 1: On Wed, Apr 16, 2014 at 7:30 PM, Steven Yi <stevenyi@gmail.com> wrote: Hi All, |
Date | 2014-04-17 05:54 |
From | Forrest Cahoon |
Subject | Re: [Csnd] Csound Notebook |
I forgot to add, the "Play" button changes to "Pause" when I click it, and then it stays there, seemingly forever. Definitely looks like the csound process died and nothing was cleaned up.
On Wed, Apr 16, 2014 at 11:50 PM, Forrest Cahoon <forrest.cahoon@gmail.com> wrote:
|
Date | 2014-04-17 06:28 |
From | Jim Aikin |
Subject | [Csnd] Re: Csound Notebook |
I was a little confused at first. Forrest, have you tried this? 1) Click Play. 2) Select the entire instr code and click Evaluate. 3) Select the entire orc code and click Evaluate. That works for me (in Chrome in Windows 7.) It's a bit counter-intuitive, because clicking Play by itself does nothing. That just starts the Csound engine -- it doesn't seem to actually compile and execute any code. That seems to happen when you evaluate the code. If I'm correct in my analysis of this, perhaps "Play" is a confusing label. Perhaps it should say "Activate" or "Run." Just a thought. -- View this message in context: http://csound.1045644.n5.nabble.com/Csound-Notebook-tp5734285p5734290.html Sent from the Csound - General mailing list archive at Nabble.com. |
Date | 2014-04-17 10:53 |
From | Tarmo Johannes |
Subject | Re: [Csnd] Csound Notebook |
Hi, this is awsesome! This way it is possible to work on your csound snippets weherever you can find a recent Chrome and perfect for teaching for other similar projects! At the first try works great! Since it uses pnacl module - no plugin opcodes though. Is there a easy way to find out which are the opcodes included in plugins to avoid those? thanks! tarmo On Wednesday 16 April 2014 20:30:52 Steven Yi wrote: > Hi All, > > I'm happy to announce the Csound Notebook server is available at: > > http://csound-notebook.kunstmusik.com > > It allows creating notebooks filled with Csound notes (projects). It > uses the pNaCl version of Csound to render projects in realtime and > allows live coding by re-evaluating selected text. With pNaCl, you do > not have to have Csound previously installed. This does require that > you use Google Chrome or Chromium browsers that support pNaCl. > > To get started, use the register button to create an account. Upon > successful creation, you will receive an email to activate your > account. Once you activate, you will be able to login. From there, > click "My Notebook" and you can get started with Csound. > > To note, use the Play button to start Csound. Once Csound starts, you > can start evaluating code. The Play button becomes a Pause button > which you can use to pause csound. > > Some notes: currently there's no warning to save a Note if you've > modified it and moved on to another note. Please be careful to save > before changing notes. Also, I don't think there's a way to restart > Csound to a clean state without refreshing the page. We may need to > add some changes to pNaCl Csound to support this. > > I think there's a lot of potential here to further develop this web > application. I look forward to hearing any feedback. > > Thanks! > steven > > > Send bugs reports to > https://github.com/csound/csound/issues > Discussions of bugs and features can be posted here > To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe > csound" |
Date | 2014-04-17 10:59 |
From | Victor Lazzarini |
Subject | Re: [Csnd] Csound Notebook |
Just to note that they are the same ones missing in Android and OSX: mostly the ones with external dependencies (fluidsynth, OSC) and the C++-based ones (signalflow, linear algebra etc). ======================== Dr Victor Lazzarini Senior Lecturer NUI Maynooth, Ireland victor dot lazzarini at nuim dot ie On 17 Apr 2014, at 10:53, Tarmo Johannes |
Date | 2014-04-17 11:05 |
From | Victor Lazzarini |
Subject | Re: [Csnd] Csound Notebook |
By the way, I just tried this. It works really well. It might be very useful for teaching. ======================== Dr Victor Lazzarini Senior Lecturer NUI Maynooth, Ireland victor dot lazzarini at nuim dot ie On 17 Apr 2014, at 10:59, Victor Lazzarini |
Date | 2014-04-17 13:54 |
From | Anthony Palomba |
Subject | Re: [Csnd] Re: Csound Notebook |
Hey Steven, Will CSound NoteBook work with Chrome on iOS?On Thu, Apr 17, 2014 at 12:28 AM, Jim Aikin <midiguru23@sbcglobal.net> wrote: I was a little confused at first. Forrest, have you tried this? |
Date | 2014-04-17 14:22 |
From | Steven Yi |
Subject | Re: [Csnd] Re: Csound Notebook |
Hi All, Thanks for the feedback! I think there's still a lot to do, but it seems like a nice start and hopefully enough is there to start getting some ideas on ways to improve it all. I would love to see this grow to be usable for education purposes, as well as general sound art needs. Anthony: I don't believe Chrome on iOS supports pNaCl at this time. One of the things I'd like to see is adding support for both pNaCl and Emscripten Csound builds. The idea would be then to use pNaCl if available, and fall back to Emscripten otherwise. The Emscripten build certainly needs a lot more attention, and in general there are limitations just due to it using WebAudio. On the other hand, it at least does run on most mobile browsers as I think they're all supporting WebAudio these days. Ed and I were just chatting over email about doing a new Emscripten Csound build with the newer toolchain, though it looks like there might be some issues there. Something to work through. Also to note, I am pondering open sourcing the whole notebook server. I am curious: are there members of the community who are Rails and/or AngularJS developers who are interested to contribute to this project? I'd have to do some research on what's the best way to ensure no private data (i.e. db passwords, server credentials, etc.) is checked in. (Looking at Figaro at the moment). I don't know if I could develop this alone and be able to move it forward at the pace I'd like to see, so making it a community project might be the way forward. Thanks! steven On Thu, Apr 17, 2014 at 8:54 AM, Anthony Palomba |
Date | 2014-04-17 17:47 |
From | Andres Cabrera |
Subject | Re: [Csnd] Re: Csound Notebook |
Hi Steven, This is great. It makes me wonder whether it's time to bundle all of the csound syntax into a new format, so you don't have to be jumping around between orchestra and score, but have a single format for this kind of live coding. It would be ideal if it was supported by csound itself, that way there are no divergences between different front ends.For example, how about some syntax for score events within the orc section: score i 1 0 10 ... endsco I first though of using some shorter character like: { } But then it looked so different to the rest of the language and using a keyword makes it more readable. Also I think this should go in the news section of the github webpage. We should start keeping that page in mind for announcements, so it's visible for external people how active Csound development is. Andrés On Thu, Apr 17, 2014 at 6:22 AM, Steven Yi <stevenyi@gmail.com> wrote: Hi All, |
Date | 2014-04-17 17:57 |
From | Michael Gogins |
Subject | Re: [Csnd] Re: Csound Notebook |
Have you looked at the LuaJIT opcodes? They enable quite sophisticated algorithmic composition to be done by evaluating embedded Lua code in the orchestra header, to be run by the lua_exec opcode. This is actually the main way I work now. I use CsoundQt so I can fine-tune my instruments and levels with sliders, and I just write my pieces as Lua right in the orchestra header. Oh, but I see you are speaking in the context of live coding. Oops, the orchestra header is only evaluated when Csound starts to run and then not again, is that not correct? Is it possible to send a multi-line string from the sco to Csound? In that case a UDO could just evaluate any Lua code in that string. You could do live coding that way.
Regards, Mike ----------------------------------------------------- Michael GoginsIrreducible Productions http://michaelgogins.tumblr.com Michael dot Gogins at gmail dot com On Thu, Apr 17, 2014 at 12:47 PM, Andres Cabrera <mantaraya36@gmail.com> wrote:
|
Date | 2014-04-17 18:01 |
From | Andres Cabrera |
Subject | Re: [Csnd] Re: Csound Notebook |
I'm thinking more of a format that is not meant to be executed directly with csound, but that can hold everything you would need for live-coding. I'm not entirely sure if that really makes sense though... Cheers,Andrés On Thu, Apr 17, 2014 at 9:57 AM, Michael Gogins <michael.gogins@gmail.com> wrote:
|
Date | 2014-04-17 19:08 |
From | Michael Gogins |
Subject | Re: [Csnd] Re: Csound Notebook |
Have you seen the current issue of Computer Music Journal? It is all about live coding. There are two live encoding environments in the "Products of Interest" section, at least one of which is open source, I think probably both of them are actually. Regards, Mike ----------------------------------------------------- Michael GoginsIrreducible Productions http://michaelgogins.tumblr.com Michael dot Gogins at gmail dot com On Thu, Apr 17, 2014 at 1:01 PM, Andres Cabrera <mantaraya36@gmail.com> wrote:
|
Date | 2014-04-17 19:18 |
From | Andres Cabrera |
Subject | Re: [Csnd] Re: Csound Notebook |
Thanks for the pointers. I do know Gibber is open source and it is developed by Charlie Roberts here at MAT. Cool project to checkout if you haven't. It is slowly turning the editor into an interface (i.e. the editor shows where in a drum pattern you currently are, and has other nice usability features). It actually has two separate rendering engines, one using web audio, and the other using javescript for the DSP with some clever optimization techniques to improve performance. http://charlie-roberts.com/gibber/info/ Overtone is also open source, and interestingly it uses the supercollider engine for audio and processing for visual. So it is more of a clojure front-end to both. http://overtone.github.io/ Cheers, Andrés On Thu, Apr 17, 2014 at 11:08 AM, Michael Gogins <michael.gogins@gmail.com> wrote:
|
Date | 2014-04-17 19:21 |
From | francesco |
Subject | [Csnd] Re: Csound Notebook |
i guess a useful resource about live coding is: http://toplap.org/ ciao, francesco. -- View this message in context: http://csound.1045644.n5.nabble.com/Csound-Notebook-tp5734285p5734321.html Sent from the Csound - General mailing list archive at Nabble.com. |
Date | 2014-04-17 19:23 |
From | Michael Gogins |
Subject | Re: [Csnd] Re: Csound Notebook |
It might be possible without too much trouble to use Csound's PNaCl build as a synthesis engine for Gibber. Regards, Mike ----------------------------------------------------- Michael GoginsIrreducible Productions http://michaelgogins.tumblr.com Michael dot Gogins at gmail dot com On Thu, Apr 17, 2014 at 2:18 PM, Andres Cabrera <mantaraya36@gmail.com> wrote:
|
Date | 2014-04-17 19:25 |
From | Andres Cabrera |
Subject | Re: [Csnd] Re: Csound Notebook |
I have talked to Charlie about this, but he is not comfortable with a browser specific solution. Cheers,Andrés On Thu, Apr 17, 2014 at 11:23 AM, Michael Gogins <michael.gogins@gmail.com> wrote:
|
Date | 2014-04-17 19:37 |
From | Michael Gogins |
Subject | Re: [Csnd] Re: Csound Notebook |
It doesn't have to be him, it can be an extension of his work maintained by someone else. Conversely, it can be an extension of Victor's PNaCl interface that incorporates Gibber. Regards, Mike ----------------------------------------------------- Michael GoginsIrreducible Productions http://michaelgogins.tumblr.com Michael dot Gogins at gmail dot com On Thu, Apr 17, 2014 at 2:25 PM, Andres Cabrera <mantaraya36@gmail.com> wrote:
|
Date | 2014-04-17 19:40 |
From | Steven Yi |
Subject | Re: [Csnd] Re: Csound Notebook |
I've looked at both Gibber/Gibberish and Overtone. Both are fine systems, but I'd rather leverage Csound for synthesis than use either. For Gibber, it solves certain needs for a realtime event generation that could be useful if it could be made to work with a Csound backend. That'd make writing Javascript score generation code easier to do. For Csound, if we move to having a universal solution that uses pNaCl or Emscripten, depending on what is available, we'd be able to use Csound across browsers with the same API. Overtone is great in that it uses Clojure, which I really like. It's tied to Supercollider though which is a fine design decision, but I'd rather not use Supercollider as I have my preference for Csound. I've used Clojure with Csound and am composing that way now within Blue. There's a lot to explore with Csound on the Web. We could certainly look at things like Clojurescript and Csound, as well as Javascript and Csound. Ed, Victor, John, and I have a paper presentation in a couple weeks at the LAC that will cover some of these things. We'll present the Csound Notebook as part of the demos, and I'm planning on writing an example of using processing.js with Csound to show too. On Thu, Apr 17, 2014 at 2:25 PM, Andres Cabrera |
Date | 2014-04-17 20:02 |
From | Richard Dobson |
Subject | Re: [Csnd] Re: Csound Notebook |
A bit of extra background: the lead developer on Overtone is Sam Aaron, who is also the creator of the R-Pi hosted Sonic-Pi music language (using Ruby, OSC and Supercollider behind the scenes). This is finding a good home in many Computing classes in schools, and demonstrates a good example of how simple a starting point needs to be to get the 10-yr-olds interested. "As seen on TV"! Peeps could do a lot worse than create a port (including browser-based) of Sonic-Pi, or something closely comparable which more expressly supports music programming rather than "just" teaching computing, driving Csound internally. Richard Dobson On 17/04/2014 19:18, Andres Cabrera wrote: > Thanks for the pointers. ... > > Overtone is also open source, and interestingly it uses the > supercollider engine for audio and processing for visual. So it is more > of a clojure front-end to both. > http://overtone.github.io/ > |