| 1 |
<CsoundSynthesizer> |
| 2 |
<CsOptions> |
| 3 |
</CsOptions> |
| 4 |
<CsInstruments> |
| 5 |
|
| 6 |
sr = 44100 |
| 7 |
ksmps = 128 |
| 8 |
nchnls = 8 |
| 9 |
0dbfs = 1 |
| 10 |
|
| 11 |
/*****Simple 8 channel soundfile player*****/ |
| 12 |
;example for CsoundQt |
| 13 |
;written by joachim heintz |
| 14 |
;apr 2009 |
| 15 |
;please send bug reports and suggestions |
| 16 |
;to jh at joachimheintz.de |
| 17 |
|
| 18 |
instr 1 |
| 19 |
Sfile invalue "_Browse1" |
| 20 |
kskip invalue "skiptime" |
| 21 |
iskip = i(kskip) |
| 22 |
ifilen filelen Sfile |
| 23 |
p3 = ifilen - iskip; plays until the end of the file, then ends preformance |
| 24 |
a1, a2, a3, a4, a5, a6, a7, a8 soundin Sfile, iskip |
| 25 |
outch 1,a1, 2,a2, 3,a3, 4,a4, 5,a5, 6,a6, 7,a7, 8,a8; change the numbers for other output channels |
| 26 |
endin |
| 27 |
|
| 28 |
</CsInstruments> |
| 29 |
<CsScore> |
| 30 |
i 1 0 1 |
| 31 |
e |
| 32 |
</CsScore> |
| 33 |
</CsoundSynthesizer> |
| 34 |
<MacOptions> |
| 35 |
Version: 3 |
| 36 |
Render: Real |
| 37 |
Ask: Yes |
| 38 |
Functions: ioObject |
| 39 |
Listing: Window |
| 40 |
WindowBounds: 684 341 441 361 |
| 41 |
CurrentView: io |
| 42 |
IOViewEdit: On |
| 43 |
Options: -b128 -A -s -m167 -R |
| 44 |
</MacOptions> |
| 45 |
<MacGUI> |
| 46 |
ioView background {43690, 43690, 32639} |
| 47 |
ioText {46, 172} {80, 25} editnum 0.000000 0.001000 "skiptime" left "Lucida Grande" 8 {0, 0, 0} {65280, 65280, 65280} nobackground noborder 0.000000 |
| 48 |
ioText {13, 135} {387, 25} edit 0.000000 0.00100 "_Browse1" left "Lucida Grande" 8 {0, 0, 0} {65280, 65280, 65280} nobackground noborder |
| 49 |
ioText {44, 197} {83, 28} label 0.000000 0.00100 "" left "Lucida Grande" 16 {0, 0, 0} {65280, 65280, 65280} nobackground noborder Skiptime (sec) |
| 50 |
ioButton {154, 95} {100, 30} value 1.000000 "_Browse1" "Open" "/" |
| 51 |
ioButton {151, 172} {100, 30} value 1.000000 "_Play" "Play" "/" |
| 52 |
ioButton {261, 172} {100, 30} value 1.000000 "_Stop" "Stop" "/" |
| 53 |
ioText {7, 8} {398, 43} label 0.000000 0.00100 "" center "Lucida Grande" 24 {0, 0, 0} {65280, 65280, 65280} nobackground noborder SIMPLE 8 CHANNEL |
| 54 |
ioText {6, 50} {398, 43} label 0.000000 0.00100 "" center "Lucida Grande" 24 {0, 0, 0} {65280, 65280, 65280} nobackground noborder SOUNDFILE PLAYER |
| 55 |
ioText {11, 232} {392, 85} label 0.000000 0.00100 "" left "DejaVu Sans" 12 {0, 0, 0} {65280, 65280, 65280} nobackground noborder Uses the reserved channels for Start and Stop. Just select your soundfile and push the Play button (No need to use the Run Button in CsoundQt). |
| 56 |
</MacGUI> |
| 57 |
|