Guest User

Untitled

a guest
Apr 20th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. <CsoundSynthesizer>
  2. <CsOptions>
  3. -o dac
  4. </CsOptions>
  5. <CsInstruments>
  6. ;example by joachim heintz
  7. sr = 44100
  8. ksmps = 4410; very high because of printing (change to 441 to see the difference)
  9. nchnls = 2
  10. 0dbfs = 1
  11.  
  12. instr 1
  13. ;initialize a general audio variable
  14. aSum init 0
  15. ;produce a sine signal (change frequency to 401 to see the difference)
  16. aAdd oscils .1, 400, 0
  17. ;add it to the general audio (= the previous vector)
  18. aSum = aSum + aAdd
  19. kmax max_k aSum, 1, 1; calculate maximum
  20. printk 0, kmax; print it out
  21. outs aSum, aSum
  22. endin
  23.  
  24. </CsInstruments>
  25. <CsScore>
  26. i 1 0 1
  27. </CsScore>
  28. </CsoundSynthesizer>
Add Comment
Please, Sign In to add comment