%let pc=1.25; %macro df3(note,octave,length); select(¬e.); when('A') call sound(55*(2**&octave.),&length.*160*&pc.); when('A#') call sound(58*(2**&octave.),&length.*160*&pc.); when('Bb') call sound(58*(2**&octave.),&length.*160*&pc.); when('B') call sound(62*(2**&octave.),&length.*160*&pc.); when('C') call sound(65*(2**&octave.),&length.*160*&pc.); when('C#') call sound(69*(2**&octave.),&length.*160*&pc.); when('Db') call sound(69*(2**&octave.),&length.*160*&pc.); when('D') call sound(73.5*(2**&octave.),&length.*160*&pc.); when('D#') call sound(73.5*(2**&octave.),&length.*160*&pc.); when('Eb') call sound(78*(2**&octave.),&length.*160*&pc.); when('E') call sound(82*(2**&octave.),&length.*160*&pc.); when('F') call sound(87*(2**&octave.),&length.*160*&pc.); when('F#') call sound(92.5*(2**&octave.),&length.*160*&pc.); when('Gb') call sound(92.5*(2**&octave.),&length.*160*&pc.); when('G') call sound(98*(2**&octave.),&length.*160*&pc.); when('G#') call sound(104*(2**&octave.),&length.*160*&pc.); when('Ab') call sound(104*(2**&octave.),&length.*160*&pc.); when('R') call sleep((&length./3)*&pc.,1); otherwise; end; %mend; /* Ils ont des chapeaux ronds , vive les bretons */ data _null_; %df3('D', 2 , 0.4); %df3('E', 2 , 0.4); %df3('E', 2 , 0.4); %df3('D', 2 , 0.4); %df3('E', 2 , 0.4); %df3('E', 2 , 0.4); %df3('D', 2 , 0.4); %df3('E', 2 , 0.4); %df3('E', 2 , 0.4); %df3('D', 2 , 0.4); %df3('E', 2 , 0.4); %df3('B', 1 , 0.4); %df3('Ab', 1 , 0.4); %df3('A', 1 , 0.4); %df3('D', 2 , 0.4); %df3('E', 2 , 0.4); %df3('E', 2 , 0.4); %df3('D', 2 , 0.4); %df3('E', 2 , 0.4); %df3('E', 2 , 0.4); %df3('D', 2 , 0.4); %df3('E', 2 , 0.4); %df3('E', 2 , 0.4); %df3('D', 2 , 0.4); %df3('E', 2 , 0.4); %df3('Ab', 1 , 0.4); %df3('G', 1 , 0.4); %df3('E', 0 , 0.4); %df3('D', 0 , 0.4); %df3('E', -1 , 0.4); %df3('D', 2 , 0.4); %df3('E', 2 , 0.4); %df3('E', 2 , 0.4); %df3('D', 2 , 0.4); %df3('E', 2 , 0.4); %df3('E', 2 , 0.4); %df3('D', 2 , 0.4); %df3('E', 2 , 0.4); %df3('E', 2 , 0.4); %df3('D', 2 , 0.4); %df3('E', 2 , 0.4); %df3('B', 1 , 0.4); %df3('Ab', 1 , 0.4); %df3('A', 1 , 0.4); %df3('D', 2 , 0.4); %df3('E', 2 , 0.4); %df3('E', 2 , 0.4); %df3('D', 2 , 0.4); %df3('E', 2 , 0.4); %df3('E', 2 , 0.4); %df3('D', 2 , 0.4); %df3('E', 2 , 0.4); %df3('E', 2 , 0.4); %df3('D', 2 , 0.4); %df3('E', 2 , 0.4); %df3('Ab', 1 , 0.4); %df3('G', 1 , 0.4); %df3('E', 0 , 0.4); %df3('D', 0 , 0.4); %df3('E', -1 , 0.4); run;