home.social

#creativepact — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #creativepact, aggregated by home.social.

fetched live
  1. Friday’s Post

    I found a really very handy PDF document showing every single available music glyph in the Bravura font, organised by type. Gaze upon it and be amazed by how much notation you don’t know and how very very many types of accidentals there are. I really like the treble clef whose lower stroke ends in a down arrow. I don’t know how I missed it earlier. This is truly the best font ever. I also has letters and numbers and stuff.
    I’ve got an example of using Bravura in a canvas. You have to go elsewhere to see it, because it’s downloading the font via @font-face in css and I can’t do that from this blog.
    If you look at it, you should see an upside down treble clef. This is from the Bravura font. If you don’t see the treble clef, please leave a comment with what browser you’re using (ex: Internet Explorer), the version number (ex: 4.05), the sort of device (ex: Desktop, laptop, tablet, iphone, etc) and the operating system.
    I got that glyph into the canvas by typing the unicode into the string in my text editor. The editor is using a different font, so this is kind of annoying because looking at the text source doesn’t show the result or even the unicode number.
    This is an example of an image in a canvas with some text:

    Your browser does not support the HTML5 canvas tag.

    Big Red Blob originally uploaded by celesteh.

    var c=document.getElementById(“canvas_images”);
    var context=c.getContext(“2d”);
    var numGlyphs = Math.floor((Math.random()*3)+1) + 1;
    var blob = new Image();
    var x, y;

    context.font = “150% Bravura”;
    blob.src = “farm8.staticflickr.com/7322/97;
    blob.onload = function() {
    context.drawImage(blob, 0, 0);
    for (var i = 0; i < numGlyphs; i++) { x = Math.floor((Math.random()*i*50) + 1) +5; y = Math.floor((Math.random()* 205) + 1) +7; //1f49b context.fillText("

    #composing #creativePact #javascript
  2. Chosen Symbols

    I picked which symbols I’m going to use. (I have to link to them rather than post them on this page because they use a bundled font, and some web browsers want that font to come from the same server as the text. I can’t upload the font to blogspot, as far as I know.)
    A couple of iPad users let me know they can see the upside-down treble clef, so I know that this font thing works on that device, so this is excellent news.
    The symbols are sort-of grouped into noteheads, rests, lines, clefs, fermatas, circles, triangles, diamonds, and groovy percussion symbols. There are some cases in which different unicode chars seem to map to identical symbols. Some of the symbols, like the bars, don’t makse sense by themselves, but need to have several grouped together. There’s going to need to be some logic in how symbols are chosen by the program and used. Strings might be pre-defined, so regexes might indicate repetitions of a glyph.
    While going through some papers, I found my first notes from when I first thought of this piece.
    .flickr-photo { border: solid 2px #000000; }.flickr-yourcomment { }.flickr-frame { text-align: left; padding: 3px; }.flickr-caption { font-size: 0.8em; margin-top: 0px; }


    First Notes, originally uploaded by celesteh.

    This piece started as a pen and paper idea. The ideas were:

    Lines

    1. staff lines that go funny, like intersecting lines, steps, etc.
    2. wavy lines using a line drawing tool.

    Notes

    1. pitch sets definied before the lines go off –> indeterminate clefs
    2. Ink blots that fall from an ink pen
    3. granular clouds w/ pitch areas defined in margins

    Changes

    1. Transparencies, ala Cage
    2. Apps written in processing or Open GL, use monitors or projector.
    3. phone app?

    The staff lines that go off is a good idea. They could start straight and then curve or just always be intersecting. This can’t use the staff notation in the font, but will need to be a set of rules on how to draw lines.
    Using indeterminate clefs is not as good an idea – it just means there are two possible versions of every note, which just builds chords.
    By the end of making that outline, it was no longer a pen and paper piece!
    Granular clouds are not well suited to vocal ensembles, but this idea did become another piece.
    Cloud Drawings from Charles Céleste Hutchins on Vimeo.

    #composing #creativePact #music
  3. Fontastic

    I’ve got a demo going of the SMuFL font thing here. This is what my style.css looks like:

    @font-face {
      font-family: Bravura;
      src: local("Bravura Regular"),
        local("BravuraRegular"), 
        url(Bravura.otf) format("opentype");
    }
     
    body {
      font-family: Bravura, Sonata, sans-serif; 
    }
    
    td {font-size:200%;}
    

    I cheated. Instead of writing the script to generate all the glyphs in javascript, I used sclang because I know it already. This is the code:

    i = 0x1D1FF - 0x1D100 + 1;
    
    "<html>".postln;
    "<head>".postln;
    "<link rel="stylesheet" type="text/css" href="style.css">".postln;
    "</head>".postln;
    "<body>".postln;
    "<table border =1 cellpadding =5>".postln;
    
    i.do({|glyph|
     // unicode music section
     glyph = glyph + 0x1D100;
     "<tr><td>%</td><td>&#x%;</td>".postf(glyph.asHexString(5), glyph.asHexString(5));
    
     // SMuFL extra music char section
     glyph = glyph + 0xE000 - 0x1D100;
     "<td>%</td><td>&#x%;</td>".postf(glyph.asHexString(5), glyph.asHexString(5));
     glyph = glyph + 0xFF;
      "<td>%</td><td>&#x%;</td>".postf(glyph.asHexString(5), glyph.asHexString(5));
     glyph = glyph + 0xFF; 
     "<td>%</td><td>&#x%;</td>".postf(glyph.asHexString(5), glyph.asHexString(5));
     glyph = glyph + 0xFF; 
     "<td>%</td><td>&#x%;</td>".postf(glyph.asHexString(5), glyph.asHexString(5));
     glyph = glyph + 0xFF; 
     "<td>%</td><td>&#x%;</td>".postf(glyph.asHexString(5), glyph.asHexString(5));
     glyph = glyph + 0xFF;
     "<td>%</td><td>&#x%;</td>".postf(glyph.asHexString(5), glyph.asHexString(5));
     glyph = glyph + 0xFF;
     "<td>%</td><td>&#x%;</td>".postf(glyph.asHexString(5), glyph.asHexString(5));
     glyph = glyph + 0xFF;
     "<td>%</td><td>&#x%;</td>".postf(glyph.asHexString(5), glyph.asHexString(5));
     glyph = glyph + 0xFF;
     "<td>%</td><td>&#x%;</td>".postf(glyph.asHexString(5), glyph.asHexString(5));
     glyph = glyph + 0xFF;
     "<td>%</td><td>&#x%;</td>".postf(glyph.asHexString(5), glyph.asHexString(5));
     glyph = glyph + 0xFF;
     "<td>%</td><td>&#x%;</td>".postf(glyph.asHexString(5), glyph.asHexString(5));
     glyph = glyph + 0xFF;
     "<td>%</td><td>&#x%;</td></tr>n".postf(glyph.asHexString(5), glyph.asHexString(5));
    });
    "</table>".postln;
    "</body></html>".postln;
    "";
    

    It’s not the nicest code I’ve ever written.
    If you click through and see musical stuff at the top of the first two columns, then all is well. If you see non musical stuff, like linux penguins, then the font thing didn’t work. This is what it looks like for me:
    .flickr-photo { border: solid 2px #000000; }.flickr-yourcomment { }.flickr-frame { text-align: left; padding: 3px; }.flickr-caption { font-size: 0.8em; margin-top: 0px; }


    Bravura in Firefox, originally uploaded by celesteh.

    If you’re getting something really different, if you don’t mind leaving a comment about your browser and operating system? This is supposed to work with internet explorer, so I’m interested in the experiences of Windows users and especially of iPad users.
    I mentioned yesterday that I was drawing some influence from Russian art of the revolutionary period. This is a picture of a plate originally designed around then:
    .flickr-photo { border: solid 2px #000000; }.flickr-yourcomment { }.flickr-frame { text-align: left; padding: 3px; }.flickr-caption { font-size: 0.8em; margin-top: 0px; }


    Supermatist Plate, originally uploaded by celesteh.

    It’s got a nice mix of abstract and concrete symbols. Also this google search returns a load of suprematist images. There seems to be a clear relationship between those kinds of images and some of Schaeffer’s colour pieces, which are single page graphic scores.
    The next steps for me, aside from getting some javascript skills, are picking which of those many many many musical symbols will be in my palette. I can’t just pick randomly within the range, because some of them would be especially nonsensical (like the MIDI cable ones) and not every glyph is supported.
    Also, I still need to pick out some text.

    #composing #creativePact #font #music
Share on Mastodon

Enter the server where you have an account.