KIMURA TARO
  • Home
  • One Shot Sample Packs
  • Synth Patches
  • Blog
  • Contact
  • Home
  • One Shot Sample Packs
  • Synth Patches
  • Blog
  • Contact

Basics of creating  wavetables in Octave Vol.2

4/28/2021

Comments

 
Picture

Creating PWM wavetables

for loop syntax

 The for loop syntax is a way to loop through the array elements in order. By iterating, multiple files can be generated in sequence. This can be used to generate multiple single-cycle waveforms.
https://octave.org/doc/v4.2.1/The-for-Statement.html
for loop

    
The above code loops through the numbers 1 through 5. When executed, it generates five sine waves from the base note to the fifth overtone in sequential numbers.

Sawtooth and Square wave

There are Sawtooth and Square functions in the signal package.
The value of width for  sawtooth accepts values from 0 to 1. Values of 0 and 1 are sawtooth waves, and 0.5 is a triangle wave.
The value of duty for  square accepts values from 0 to 100. By varying the value, PWM can be performed.
Waveforms that can be created in Octave

    
Two optional features can be used to create Wavetables.

Saw to Triangle

The script below creates a wavetable that changes from a sawtooth wave to a triangle wave by gradually changing the value of width.
Download
Saw to Triangle

    
Picture

Pulse Width Modulation

The following script creates a PWM wavetable by gradually varying the value of duty.
Download
PWM

    
Picture
Comments

    Categories

    All
    Ableton Live
    Analog Four
    Analog Rytm
    Sound Design Tips
    Tutorials For Wavetable
    Wavetable

    Archives

    February 2022
    November 2021
    August 2021
    June 2021
    April 2021
    July 2019

    RSS Feed

Product

  • One Shot Sample Packs
  • Synth Patches

Misc

  • Blog
  • Contact
  • bandcamp

Social

  • Instagram
  • SoundCloud
  • Twitter

© COPYRIGHT 2023. Kimura Taro  ALL RIGHTS RESERVED.
  • Home
  • One Shot Sample Packs
  • Synth Patches
  • Blog
  • Contact