p1 is the number of beats by which p2 values of subsequent i statements are modified. If p1 is positive, the clock is reset forward, and subsequent notes appear later, the number of beats specified by p1 being added to the note's p2. If p1 is negative, the clock is reset backward, and subsequent notes appear earlier, the number of beats specified by p1 being subtracted from the note's p2. The clock is incremented by p1 for subsequent notes.
Examples
Here is an example of the B statement. It uses the file capB-modern.csd.
<CsoundSynthesizer><CsOptions>; Select audio/midi flags here according to platform-odac -d ;;;realtime audio out;-iadc ;;;uncomment -iadc if RT audio input is needed too; For Non-realtime ouput leave only the line below:; -o b.wav -W ;;; for file output any platform</CsOptions><CsInstruments>sr=44100ksmps=32nchnls=20dbfs=1instr1dur:i=p3env:a=expseg(0.01,dur*0.25,1,dur*0.75,0.01)sig:a=poscil3(0.4*env,220,1)outs(sig,sig)endininstr2sig:a=pluck(0.7,p4,220,0,1)outs(sig,sig)endininstr3sig:a=loscil(0.8,1,2,1)outs(sig,sig)endininstr4sig:a=bamboo(0.8,0.01)outs(sig,sig)endin</CsInstruments><CsScore>f1016384101;sine wavef2001"fox.wav"000;samplei102i1102b5; set the clock "forward"i212220; start time = 6i222110; start time = 7B-6; move clock backi332; start time = 2i35.51; start time = 4.5b0; reset clock to normali4102; start time = 10e</CsScore></CsoundSynthesizer>
Here is an example of the B statement. It uses the file capB.csd.
<CsoundSynthesizer><CsOptions>; Select audio/midi flags here according to platform-odac ;;;realtime audio out;-iadc ;;;uncomment -iadc if RT audio input is needed too; For Non-realtime ouput leave only the line below:; -o b.wav -W ;;; for file output any platform</CsOptions><CsInstruments>sr=44100ksmps=32nchnls=20dbfs=1instr1aenvexpseg.01,p3*0.25,1,p3*0.75,0.01asigposcil3.4*aenv,220,1outsasig,asigendininstr2asigpluck0.7,p4,220,0,1outsasig,asigendininstr3asigloscil.8,1,2,1outsasig,asigendininstr4asigbamboo.8,0.01outsasig,asigendin</CsInstruments><CsScore>f1016384101;sine wavef2001"fox.wav"000;samplei102i1102b5; set the clock "forward"i212220; start time = 6i222110; start time = 7B-6; move clock backi332; start time = 2i35.51; start time = 4.5b0; reset clock to normali4102; start time = 10e</CsScore></CsoundSynthesizer>