Thursday, July 13, 2017

ex2B01. Document Structure

# ex2B01.py
# Document Structure

from moduleCsound import *

tags(1)

header(ksmps=32, nch=1)

# --- instrument (440 Hz sig of 1 sec dur at 0.25 amp)

add("""
instr 1 ; a 440 Hz Sine Wave
aSin      poscil    0dbfs/4, 440
          out       aSin
endin
""")

tags(2)

add("i 1 0 1")

tags(3)

writeRun(__file__)

Output: (spectrograph view with setting of 8192 points, Blackmann-Harris window, and showing frequencies from 0 to 1000.



The reason for the lines at end is because it can not determine frequency there.

No comments:

Post a Comment

ex3A05. Audio Vector