This document is part of the tutorial Getting Started With SuperCollider.Ĭlick here to go on to the next section: 04. You can also refer to the default server with the text fault, for example: In general the examples in this tutorial assume that the server is running. Many examples in the documentation have s.boot at the beginning, but in general you should make sure the server is running before using any examples that generate audio, or otherwise access the server. Try this out and then leave the server running. You can send messages to start and stop it like so: s.quit If this happens, please reach out to the community for help: īy default you can refer to the localhost server in your code by using the letter s. If for some reason it failed to boot, there should be information printed about the error that occurred. Shared memory server interface initialized Localhost: keeping clientID (0) as confirmed by server process. Localhost: server process's maxLogins (1) matches with my options. Requested notification messages from server 'localhost' SC_AudioDriver: sample rate = 44100.000000, driver's block size = 512 For example: Booting server 'localhost' on address 127.0.0.1:57110. More about them soon.Īlso take a look at the post window, where SC has given you some info, and let you know that it booted okay. The view also provides you with some information about CPU usage, and some other things which probably aren't too clear yet. This indicates that the server is running. Notice that the white font on the black view on the bottom of the window has changed to green. There is also a Server menu entry for "Boot Server". The easiest way to do this is to use the shortcut Ctrl-B (Cmd-B on macOS). After resetting these max values, SuperCollider would play an extra 6th note, just for fun.Ĭurious as to how our music turned out? Listen to the music of the following web pages here (or explore the source code on GitHub):Ĭrawling the University of Michigan (umich.Before we can make any sound, we need to start or 'boot' a server application. com, or other domain name) occurred, the maximum values for number of divs and number of links were reset - this helped avoid a situation where the mapping functions produced only low results because of an extremely high number of divs or links on a single page had skewed the range. Lastly, whenever a change of top level domain (i.e. SuperCollider selected a chord with no inversion, first inversion, or second inversion depending upon the number of divs on the page (utilizing the same scaling strategy as for the melody note). For the chord synth, SuperCollider generated a chord only in cases when the amount of time to open the link exceeded one second. This interval was added to the base note of G to created a melody note within the G natural minor scale for every message. For the smooth synth, we scaled the number of links parameter and matched it to an interval across a two octaves range. The two synths created were named smooth and chord. Each synth used the G below middle C as a starting note (to give the outputted sounds a common tonality). The note(s) were played using two digital instrument definitions – called synths – created in SuperCollider. To turn the web crawling data into music, a note or set of notes was played each time the SuperCollider received a message from the web crawler. Only after exploring the entire set of links would the script begin to explore the next tier of pages, thus prioritizing the breadth of links over the depth of links. com, or other domain name)Īfter gathering data from the starting web page, the script opened the first link found on the page, and the same data was extracted and sent as a message to SuperCollider. Next the second link of the starting page was opened, data extracted and sent, and then the third, and so on. Utilizing the Beautiful Soup Python library, the script recorded the following data about a starting web page to send as a message over a local server: Within the Python portion of the project, we first supplied a starting web page (e.g. In our first project as data visualization interns, we used Python to crawl the web and collect parameters, which we passed to SuperCollider to generate music. SuperCollider is free and open-source software that allows users to generate audio programmatically, including from messages sent over a local server.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |