<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Making music with SAS in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Making-music-with-SAS/m-p/510871#M2041</link>
    <description>A choir of machines for Christmas would be fun :).</description>
    <pubDate>Tue, 06 Nov 2018 19:39:22 GMT</pubDate>
    <dc:creator>pink_poodle</dc:creator>
    <dc:date>2018-11-06T19:39:22Z</dc:date>
    <item>
      <title>Making music with SAS</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Making-music-with-SAS/m-p/510564#M1978</link>
      <description>&lt;P&gt;Did anyone ever try to make music with SAS?&lt;/P&gt;</description>
      <pubDate>Mon, 05 Nov 2018 19:22:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Making-music-with-SAS/m-p/510564#M1978</guid>
      <dc:creator>pink_poodle</dc:creator>
      <dc:date>2018-11-05T19:22:35Z</dc:date>
    </item>
    <item>
      <title>Re: Making music with SAS</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Making-music-with-SAS/m-p/510578#M1979</link>
      <description>&lt;P&gt;Hi &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/235176"&gt;@pink_poodle&lt;/a&gt;, I didn't try it so far. In fact, after seeing your question I started exploring it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's interesting to know that you can make music in SAS. There are functions in SAS using which you can call any frequency (musical notes). You can define the duration as well for which you want to play any note.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All musical&amp;nbsp; notes are based on two primary parameters: Frequency &amp;amp; Duration. The CALL SOUND routine generates a sound with a specific frequency and duration using the following syntax:&lt;BR /&gt;&lt;BR /&gt;CALL SOUND(frequency,duration);&lt;BR /&gt;&lt;BR /&gt;Required arguments:&lt;BR /&gt;&lt;BR /&gt;1. frequency – specifies the sound frequency in terms of cycles per second.&amp;nbsp; The frequency must be at least 20 and no greater than 20,000.&lt;BR /&gt;2. duration – specifies the sound duration in milliseconds.&amp;nbsp; The default is -1.&lt;BR /&gt;&lt;BR /&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;The following statement will play “middle C” for 2 seconds:&lt;BR /&gt;data _null_;&lt;BR /&gt;&amp;nbsp; call sound(261.63,2000);&lt;BR /&gt;run; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this will be helpful. You can refer to below document for more detailed understanding on this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://support.sas.com/resources/papers/proceedings16/3442-2016.pdf" target="_blank"&gt;https://support.sas.com/resources/papers/proceedings16/3442-2016.pdf&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Nov 2018 19:52:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Making-music-with-SAS/m-p/510578#M1979</guid>
      <dc:creator>manishiiita</dc:creator>
      <dc:date>2018-11-05T19:52:37Z</dc:date>
    </item>
    <item>
      <title>Re: Making music with SAS</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Making-music-with-SAS/m-p/510587#M1983</link>
      <description>&lt;P&gt;I used to use the Call Sound to play a warning warble in some programs when I had a really critical issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But the current work environment I have all the speakers turned off so have quit playing with that.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Nov 2018 20:30:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Making-music-with-SAS/m-p/510587#M1983</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-11-05T20:30:53Z</dc:date>
    </item>
    <item>
      <title>Re: Making music with SAS</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Making-music-with-SAS/m-p/510608#M1991</link>
      <description>&lt;P&gt;Almost that time of year and a blast from the past.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's the SAS Christmas Carol:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data holidays;

  retain fmtname '@$holiday';

  length data $3;

  ratio = 1.05946309436;

  str1 ='A A#B C C#D D#E F F#G G#';

  str2='A BbCbB#DbD EbFbE#GbG Ab';

  o = 1;

  do i = 0 to 87;

    p = 55 * ratio**i;

        data = compress(substr(str1,mod(i,12)*2+1,2)||o);

    output;

        if data^=compress(substr(str2,mod(i,12)*2+1,2)||o) then do;

          data = compress(substr(str2,mod(i,12)*2+1,2)||o);

          output;

        end;

        if mod(i,12)=2 then o=o+1;

  end;

  rename data=start p=label;

  keep fmtname data p;

run;



proc format cntlin=holidays;

run;



%macro play(input);

data _Null_;

  %let i=1;

  %do %while(%scan(&amp;amp;input,&amp;amp;i,%str( ))^=);

    %let note = %scan(&amp;amp;input,&amp;amp;i,%str( ));

        %let pitch = %upcase(%scan(&amp;amp;note,1,=));

        %let duration = %scan(&amp;amp;note,2,=);

    %let i = %eval(&amp;amp;i+1);

        %if &amp;amp;pitch=R %then

          call sleep((1/&amp;amp;duration)*750);

        %else

          call sound(input("&amp;amp;pitch",$holiday.),(1/&amp;amp;duration)*300);

    ;

  %end;

run;

%mend;

%play(%str(C6=1 B5=1.5 A5=6 G5=1 R=2 F5=2 E5=1 D5=1 C5=1

R=2 G5=2 A5=1 R=2 A5=2 B5=1 R=2 B5=2 C6=.33

C6=2 C6=2 B5=2 A5=2 G5=2 G5=1.5 F5=4 E5=2

C6=2 C6=2 B5=2 A5=2 G5=2 G5=1.5 F5=4 E5=2 E5=2

E5=2 E5=2 E5=2 E5=4 F5=4 G5=1 R=4 F5=4 E5=4

D5=2 D5=2 D5=2 D5=4 E5=4 F5=1 R=4 E5=4 D5=4

C5=2 C6=1 A5=2 G5=1.5 F5=6 E5=2 F5=2 E5=1 D5=1 C5=1));&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One source is here:&lt;BR /&gt;&lt;A href="https://groups.google.com/forum/#!topic/comp.soft-sys.sas/a9lmYmTNlv8" target="_blank"&gt;https://groups.google.com/forum/#!topic/comp.soft-sys.sas/a9lmYmTNlv8&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Though this is significantly older than that. You can always search on LexJansen.com to see some other variants.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://lexjansen.com/search/searchresults.php?q=music" target="_blank"&gt;https://lexjansen.com/search/searchresults.php?q=music&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Nov 2018 21:30:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Making-music-with-SAS/m-p/510608#M1991</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-11-05T21:30:12Z</dc:date>
    </item>
    <item>
      <title>Re: Making music with SAS</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Making-music-with-SAS/m-p/510619#M1995</link>
      <description>This is great!</description>
      <pubDate>Mon, 05 Nov 2018 22:12:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Making-music-with-SAS/m-p/510619#M1995</guid>
      <dc:creator>pink_poodle</dc:creator>
      <dc:date>2018-11-05T22:12:36Z</dc:date>
    </item>
    <item>
      <title>Re: Making music with SAS</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Making-music-with-SAS/m-p/510666#M2007</link>
      <description>&lt;P&gt;that is really cool.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Nov 2018 02:11:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Making-music-with-SAS/m-p/510666#M2007</guid>
      <dc:creator>VDD</dc:creator>
      <dc:date>2018-11-06T02:11:26Z</dc:date>
    </item>
    <item>
      <title>Re: Making music with SAS</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Making-music-with-SAS/m-p/510676#M2009</link>
      <description>&lt;P&gt;This will only work if you have Base SAS installed on a local PC / laptop. It wont work if you use Enterprise Guide or SAS Studio with a remote SAS server.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Nov 2018 03:29:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Making-music-with-SAS/m-p/510676#M2009</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2018-11-06T03:29:13Z</dc:date>
    </item>
    <item>
      <title>Re: Making music with SAS</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Making-music-with-SAS/m-p/510683#M2011</link>
      <description>I listened to the Christmas carol in SAS EG.</description>
      <pubDate>Tue, 06 Nov 2018 04:05:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Making-music-with-SAS/m-p/510683#M2011</guid>
      <dc:creator>pink_poodle</dc:creator>
      <dc:date>2018-11-06T04:05:54Z</dc:date>
    </item>
    <item>
      <title>Re: Making music with SAS</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Making-music-with-SAS/m-p/510785#M2027</link>
      <description>Or SAS UE sadly &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;</description>
      <pubDate>Tue, 06 Nov 2018 15:46:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Making-music-with-SAS/m-p/510785#M2027</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-11-06T15:46:49Z</dc:date>
    </item>
    <item>
      <title>Re: Making music with SAS</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Making-music-with-SAS/m-p/510787#M2028</link>
      <description>The thought of a random machine starting to &lt;BR /&gt;'sing' christmas carols in a data center does amuse me &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
      <pubDate>Tue, 06 Nov 2018 15:47:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Making-music-with-SAS/m-p/510787#M2028</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-11-06T15:47:30Z</dc:date>
    </item>
    <item>
      <title>Re: Making music with SAS</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Making-music-with-SAS/m-p/510871#M2041</link>
      <description>A choir of machines for Christmas would be fun :).</description>
      <pubDate>Tue, 06 Nov 2018 19:39:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Making-music-with-SAS/m-p/510871#M2041</guid>
      <dc:creator>pink_poodle</dc:creator>
      <dc:date>2018-11-06T19:39:22Z</dc:date>
    </item>
    <item>
      <title>Re: Making music with SAS</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Making-music-with-SAS/m-p/524644#M4807</link>
      <description>&lt;P&gt;I love this thread! Wish I'd seen it earlier,&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/235176"&gt;@pink_poodle&lt;/a&gt;. Here's an example of SAS making music -- literally making charts and graphs "sing" through the SAS Graphics Accelerator.&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/19700"&gt;@EdSummers_SAS&lt;/a&gt;' team developed it to give visually impaired folks a way to "see" data&amp;nbsp; through sound.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Here's a TV interview Ed gave:&amp;nbsp;&lt;A href="https://www.wral.com/new-sas-software-helps-blind-users-see-data-in-unique-way/16576691/&amp;nbsp;" target="_blank"&gt;https://www.wral.com/new-sas-software-helps-blind-users-see-data-in-unique-way/16576691/&amp;nbsp;&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;You can &lt;A href="https://chrome.google.com/webstore/detail/sas-graphics-accelerator/ockmipfaiiahknplinepcaogdillgoko?hl=en" target="_self"&gt;access this capability through a Chrome extension&lt;/A&gt;.&lt;/LI&gt;
&lt;LI&gt;More about it on our support page:&amp;nbsp;&lt;A href="http://support.sas.com/software/products/graphics-accelerator/index.html&amp;nbsp;" target="_blank"&gt;http://support.sas.com/software/products/graphics-accelerator/index.html&amp;nbsp;&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Fri, 04 Jan 2019 18:32:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Making-music-with-SAS/m-p/524644#M4807</guid>
      <dc:creator>BeverlyBrown</dc:creator>
      <dc:date>2019-01-04T18:32:28Z</dc:date>
    </item>
    <item>
      <title>Re: Making music with SAS</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Making-music-with-SAS/m-p/524645#M4808</link>
      <description>&lt;P&gt;&lt;A href="https://communities.sas.com/t5/Have-Your-Say/Using-CALL-SOUND-to-buzz-market-Star-Wars/m-p/237014#M1" target="_self"&gt;Here's another example&lt;/A&gt;, featuring a theme you might have heard before.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IFRAME src="https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/235571140&amp;amp;color=ff5500&amp;amp;auto_play=false&amp;amp;hide_related=false&amp;amp;show_comments=true&amp;amp;show_user=true&amp;amp;show_reposts=false" width="100%" height="166" frameborder="no" scrolling="no"&gt;&lt;/IFRAME&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Jan 2019 18:37:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Making-music-with-SAS/m-p/524645#M4808</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2019-01-04T18:37:26Z</dc:date>
    </item>
    <item>
      <title>Re: Making music with SAS</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Making-music-with-SAS/m-p/524772#M4826</link>
      <description>&lt;P&gt;Thank you,&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/34537"&gt;@BeverlyBrown&lt;/a&gt;! I think that representing mathematical functions with music is fascinating. It helps people and also quickens their understanding. Moreover, some functions sound nice and, in reverse, some music looks beautiful. James Huneker in his essay about Chopin's Ballades mentions an anecdote about Chopin and Meyerbeer. Meyerbeer quarreled with Chopin over a rhythm of a mazurka and said "Can one reduce women to notation? They would breed mischief were they emancipated from the measure." I wonder what that mazurka would look like as a graph. Most probably nothing like George Sand :). Makes one think of Cypher from the Matrix when he looked at the code, which, I recently found out, was sushi recipes from a Japanese cookbook of the producer's wife.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 05 Jan 2019 00:36:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Making-music-with-SAS/m-p/524772#M4826</guid>
      <dc:creator>pink_poodle</dc:creator>
      <dc:date>2019-01-05T00:36:42Z</dc:date>
    </item>
    <item>
      <title>Re: Making music with SAS</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Making-music-with-SAS/m-p/524886#M4854</link>
      <description>&lt;P&gt;Love your observations! That Meyerbeer quote is priceless. Don't think it's coincidental that many software developers are also musicians.&amp;nbsp;One of our execs told Forbes a while back that he always asks candidates about their hobbies. If the candidate mentions playing a musical instrument, that's a plus.&lt;/P&gt;</description>
      <pubDate>Sun, 06 Jan 2019 14:18:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Making-music-with-SAS/m-p/524886#M4854</guid>
      <dc:creator>BeverlyBrown</dc:creator>
      <dc:date>2019-01-06T14:18:58Z</dc:date>
    </item>
  </channel>
</rss>

