An off-topic spot to chat about your musings of the day

Using CALL SOUND to buzz-market Star Wars

Reply
Community Manager
Posts: 2,639

Using CALL SOUND to buzz-market Star Wars

[ Edited ]

Alas, it's tricky to create a data-driven soundtrack with SAS University Edition or SAS Enterprise Guide (with a remote SAS session).  There is no "PC speaker" to send the output to.  And I don't have any "gobble gobble" noises to script.

 

But hey, a new installment of Star Wars is coming out soon.  Fans who have PC SAS can get in the mood by running this program.

 

data _null_;
    length tone 8 len 8;
    infile datalines dsd;
    input tone len;
    call sound(tone,len/2);
datalines;
440,500       
440,500 
440,500        
349,350        
523,150        
440,500        
349,350        
523,150        
440,1000 
659,500        
659,500        
659,500        
698,350        
523,150        
415,500        
349,350        
523,150        
440,1000
;
run;
Super User
Posts: 1,221

Re: Using CALL SOUND to buzz-market Star Wars

[ Edited ]

What a tease @ChrisHemedinger!!! I haven't used PC SAS for years... Might seek to getting it installed to run your code. #curious Smiley Wink

Community Manager
Posts: 2,639

Re: Using CALL SOUND to buzz-market Star Wars

[ Edited ]

Michelle, I won't torture you with suspense. Here's the result.

Super User
Posts: 1,221

Re: Using CALL SOUND to buzz-market Star Wars

[ Edited ]

Oh that is so awesome and very retro! Thanks for saving my sanity.... I was guessing the tune based on the repeated dataline numbes and distances in the code. Smiley Wink

SAS Super FREQ
Posts: 1,061

Re: Using CALL SOUND to buzz-market Star Wars

[ Edited ]

This is so cool.  Thanks Chris.  It really needs its own topic / thread in communities, and not be hidden under the Turkey plot.

This widget could not be displayed.
This widget could not be displayed.
Ask a Question
Discussion stats
  • 4 replies
  • 1374 views
  • 7 likes
  • 3 in conversation