KIMURA TARO
  • All Sounds
  • One Shot Sample Packs
  • Synth Patches/ Wavetables
  • Blog
  • Contact
  • All Sounds
  • One Shot Sample Packs
  • Synth Patches/ Wavetables
  • 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

    March 2024
    February 2024
    January 2024
    May 2023
    February 2022
    November 2021
    August 2021
    June 2021
    April 2021
    July 2019

    RSS Feed

Product

  • One Shot Sample Packs
  • Synth Patches

Misc

  • Blog
  • Contact

Social

  • Instagram
  • SoundCloud

特定商取引法に基づく表記
© COPYRIGHT 2024. Kimura Taro  ALL RIGHTS RESERVED.
  • All Sounds
  • One Shot Sample Packs
  • Synth Patches/ Wavetables
  • Blog
  • Contact