1
MSP MSP More about cycle~ Previously we defined cycle~ as a sine wae oscillator generator. It is actually capable of doing a lot more. Computers generally generate waves (sine waves for example) by looking at stored tables and reading through them at very fast rates. For example, to produce a sine wave of A440, the computer may read through the wave table 440 times per second. Cycle~ is no different. It is also a wave table look up. By default it has 512 values in the table, in the shape of a sine wave. 512 samples equals 11.61 ms buffer length. a buffer length of 11.61 ms is equivalent to 512 samples cycle~ heythere buffer~ heythere 11.61 440. With peek~ we can get different wave forms into buffer~ so that cycle~ can generate a different kind of waveform, even one that you draw. edit table. Get info (size - 511) numbers 1 - 512 sent out as fast as possible place into a range of 0 - 511 limit to a range of - 1. to 1. make a list of sample index, value write values into a buffer called heythere argument of 11.61 ms. = 512 samples Uzi 513 - 1 table / 200. pack 0 0. peek~ heythere buffer~ heythere 11.61 cycle~ heythere dac~ 0.

Cycle More

Embed Size (px)

DESCRIPTION

cycle more

Citation preview

  • MSP

    MSP More about cycle~

    Previously we defined cycle~ as a sine wae oscillator generator. It is actually capable of doing a lot more.Computers generally generate waves (sine waves for example) by looking at stored tables and readingthrough them at very fast rates. For example, to produce a sine wave of A440, the computer may readthrough the wave table 440 times per second.

    Cycle~ is no different. It is also a wave table look up. By default it has 512 values in the table, in the shape of a sine wave. 512 samples equals 11.61 ms buffer length.

    a buffer length of 11.61 ms is equivalent to 512 samples

    cycle~ heythere

    buffer~ heythere 11.61440.

    With peek~ we can get different wave forms into buffer~ so that cycle~ can generate a different kind of waveform, even one that you draw.

    edit table. Get info (size - 511)

    numbers 1 - 512 sent out as fast as possible

    place into a range of 0 - 511

    limit to a range of -1. to 1.

    make a list of sample index, value

    write values into a buffer called heythere

    argument of 11.61 ms. = 512 samplesUzi 513

    - 1

    table

    / 200.

    pack 0 0.

    peek~ heythere

    buffer~ heythere 11.61

    cycle~ heythere

    dac~

    0.