So I’ll start off with some simple code examples and then move onto how SuperCollider can use game-code parametric data to drive synthesis ‘patches’ in real-time. Well, as we’ll see later we can make a GUI-based synth in SuperCollider with just a few dozen lines of code! But let’s put GUIs to one side for now, because SuperCollider’s real power is in its ability to produce flexible and complex dynamic systems directly from code, and without too much trepidation… My aim here is to introduce an audio synthesis programming language to an audience that is, for the most part, more comfortable working with a GUI. How are you supposed to make anything without a GUI?! All those words and numbers and operators and punctuation errors… For a start, there’s no GUI. evaluating the region, or by pressing C-M-x inside the expression.Let’s be honest: code can be daunting. together, either by double clicking on the first parenthesis and statements enclosed in ( ) on separate lines should be executed Open a new file with a file name ending in ".sc" and add this SuperCollider code to it: Once the server is up and running you are ready to make noise! You should be able to see the audio ports and connections in the Qjackctl "Connect" window.įrom now on any SuperCollider file you edit in emacs (ending in ".sc") will automatically be in "SuperCollider mode" and you will be able to use the key shortcuts or the "SCLang" menu to send stuff to the server. Long term it pays to learn the emacs key shortcuts for most common operations. Same thing, only slower (your only gain is excersizing the mouse). You could also have booted the server by placing the cursor in the line you typed and using the "SCLang" menu access the "Evaluate Line" entry. The end result will be something like this: You should see output in the bottom pane as SuperCollider reports on the process of booting the server. Put your cursor anywhere on the line you just typed and press Ctrl-c twice (that's the Control Key together with the "c" key, twice). In the top pane (the "SuperCollider Workspace" pane) type: While SuperCollider is actually running at this point there is no server booted by default so let's start one. It is not a "file", it is actually SuperCollider running within emacs. The bottom pane is actually the output of the sclang process which you will be interacting with. The top pane is a text area which you can use to type SuperCollider expressions and send them to SuperCollider. You should see window with two panes, in the lower pane you will see SuperCollider printing messages as it starts. To start SuperCollider just change to the correct directory:Īnd then type (you do have Jack running, right?): Now you are ready to start SuperCollider. In the following instructions we will assumed you have selected "~/220b/sc/" as your SuperCollider working directory. You just need to remember to always start SuperCollider from within that directory. It could be something like "~/supercollider/", or "~/220b/sc/" or whatever you prefer. SuperCollider needs a few directories around when it starts so begin by selecting a directory where you will be working with SuperCollider. Save your changes and quit emacs for now. You can do that by editing that file with emacs: First add the following two lines to your "~/.emacs" emacs configuration file. We will be running SuperCollider from within the emacs text editor. You can now press the "Start" button and the Jack server should get started. The "Interface" should be pointing to " hw:0" which is the first sound card. I routinely use 128 for fast response in interactive situations. The "Frames/Period" setting will be initially 1024 and directly influences the latency of the system (see the Latency box at the bottom right of the setup screen for how long it is with your current settings). In the Parameters section you should have "Realtime" checked as well as "Unlock Memory". Once Qjackctl starts you can press the Setup button to get to the setup screen.įirst make sure that the Server Path is " jackd" (you could have a very old account from when that was jackstart). If this is the first time you start Jack it would be a good idea to check some of its configuration options. Click on it and you should see something like this: The easiest way to start Jack is through the Qjackctl GUI interface which you can start from your "Applications" "Sound and Video" menu. SuperCollider uses Jack as the audio input output engine so you will need to have Jack up and running before starting the SuperCollider environment. If you know how to start Jack just do it and skip to the next section. I'll try to describe in detail what you need to do. There are a few things you need to do before your environment will work. SuperCollider: getting started Introductionĭuring the course we will be using the SuperCollider 3 environment running on our Linux workstations.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |