⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 instruments.h

📁 一个96K的3D游戏源码
💻 H
📖 第 1 页 / 共 5 页
字号:
      0,          // Panning LFO No. (0=off)
      0,          // Phase shift left  (0.0 - 1.0)
      0,          // Phase shift right (0.0 - 1.0)
      0.3,        // Pulse width for WF_SQUAREWAVE
      0,          // Pulse width LFO

      // Oscillator 2
      1,          // Active?
      COMBINE_ADD,// Combine Method
      2.0,        // Amplitude ( 0.0 to 1.0 )
      0,          // Amplitude LFO No.  (0=off)
      100,        // Start pitch ( 0 = dependent to note )
      1.0,        // Pitch Mod. 
      0,          // Pitch LFO No. (0=off)
      0.0,        // Pitch step
      0,          // Pitch step accelleration
      WF_SINE,   // Waveform 
      0.0,        // Panning (-1.0 to 1.0)
      0,          // Panning LFO No. (0=off)
      0.3,        // Phase shift left  (0.0 - 1.0)
      0,          // Phase shift right (0.0 - 1.0)
      0.5,        // Pulse width for WF_SQUAREWAVE
      0,          // Pulse width LFO

      // Oscillator 3
      0,          // Active?
      COMBINE_ADD,// Combine Method
      0.1,        // Amplitude ( 0.0 to 1.0 )
      0,          // Amplitude LFO No.  (0=off)
      0,          // Start pitch ( 0 = dependent to note )
      4,          // Pitch Mod. 
      0,          // Pitch LFO No. (0=off)
      0.0,        // Pitch step
      0,          // Pitch step accelleration
      WF_SAWTOOTH,    // Waveform 
      0.0,        // Panning (-1.0 to 1.0)
      2,          // Panning LFO No. (0=off)
      0,          // Phase shift left  (0.0 - 1.0)
      0,          // Phase shift right (0.0 - 1.0)
      0.5,        // Pulse width for WF_SQUAREWAVE
      0,          // Pulse width LFO

      // Amplitude Parameters
      0,          // Continuous? (1 = yes, 0 = no)
      0,          // Attack (ms)
      0,          // Decay (ms)
      0,          // Sustain (ms)
      400,        // Release (ms)  
      1.0,        // Sustain amplitude ( 0.0 to 1.0 )

      // Lowpass Filter
      0,          // Active?
      200,        // Frequency cutoff (Hz)
      0.1,        // Resonance ( 0.0 to 1.0 )
      0,          // Cutoff LFO No. 
      0,          // Resonance LFO No.

      // Highpass Filter
      0,          // Active?
      500,        // Frequency cutoff (Hz)
      0.5,        // Resonance ( 0.0 to 1.0 )
      0,          // Cutoff LFO No. 
      0,          // Resonance LFO No.

      // LFO 1
      WF_OFF,     // LFO Waveform
      1,          // Reset when note retriggers
      6.0,        // Rate (hz)
      0.4,        // Depth

      // LFO 2
      WF_OFF,     // LFO Waveform
      1,          // Reset when note retriggers
      4.0,        // Rate (hz)
      0.5,        // Depth

      // LFO 3
      WF_OFF,     // LFO Waveform
      1,          // Reset when note retriggers
      1.0,        // Rate (hz)
      0.0,        // Depth

      // LFO 4
      WF_OFF,     // LFO Waveform
      1,          // Reset when note retriggers
      0.3,        // Rate (hz)
      4.0,        // Depth

      // LFO 5
      WF_OFF,     // LFO Waveform
      1,          // Reset when note retriggers
      1.0,        // Rate (hz)
      0.0,        // Depth

      // LFO 6
      WF_OFF,     // LFO Waveform
      1,          // Reset when note retriggers
      1.0,        // Rate (hz)
      0.0,        // Depth

      // Gain / Distortion
      0,          // Distortion (0->no distortion / 10->max distortion)
      1.0,        // Gain value

      // ----------------------------------------
      // Hihat
      // ----------------------------------------

      // Oscillator 1
      1,          // Active?
      COMBINE_ADD,// Combine Method
      0.5,        // Amplitude ( 0.0 to 1.0 )
      0,          // Amplitude LFO No.  (0=off)
      0,          // Start pitch ( 0 = dependent to note )
      1.0,        // Pitch Mod. 
      0,          // Pitch LFO No. (0=off)
      0.0,        // Pitch step
      0,          // Pitch step accelleration
      WF_WHITENOISE,   // Waveform 
      0.0,        // Panning (-1.0 to 1.0)
      0,          // Panning LFO No. (0=off)
      0,          // Phase shift left  (0.0 - 1.0)
      0,          // Phase shift right (0.0 - 1.0)
      0.5,        // Pulse width for WF_SQUAREWAVE
      0,          // Pulse width LFO

      // Oscillator 2
      0,          // Active?
      COMBINE_ADD,// Combine Method
      0.2,        // Amplitude ( 0.0 to 1.0 )
      0,          // Amplitude LFO No.  (0=off)
      0,          // Start pitch ( 0 = dependent to note )
      0.5,        // Pitch Mod. 
      0,          // Pitch LFO No. (0=off)
      0.0,        // Pitch step
      0,          // Pitch step accelleration
      WF_SQUAREWAVE,   // Waveform 
      0.0,        // Panning (-1.0 to 1.0)
      0,          // Panning LFO No. (0=off)
      0,          // Phase shift left  (0.0 - 1.0)
      0,          // Phase shift right (0.0 - 1.0)
      0.5,        // Pulse width for WF_SQUAREWAVE
      0,          // Pulse width LFO

      // Oscillator 3
      0,          // Active?
      COMBINE_ADD,// Combine Method
      0.1,        // Amplitude ( 0.0 to 1.0 )
      0,          // Amplitude LFO No.  (0=off)
      0,          // Start pitch ( 0 = dependent to note )
      4,          // Pitch Mod. 
      0,          // Pitch LFO No. (0=off)
      0.0,        // Pitch step
      0,          // Pitch step accelleration
      WF_SAWTOOTH,    // Waveform 
      0.0,        // Panning (-1.0 to 1.0)
      2,          // Panning LFO No. (0=off)
      0,          // Phase shift left  (0.0 - 1.0)
      0,          // Phase shift right (0.0 - 1.0)
      0.5,        // Pulse width for WF_SQUAREWAVE
      0,          // Pulse width LFO

      // Amplitude Parameters
      0,          // Continuous? (1 = yes, 0 = no)
      0,          // Attack (ms)
      0,          // Decay (ms)
      0,          // Sustain (ms)
      100,        // Release (ms)  
      1.0,        // Sustain amplitude ( 0.0 to 1.0 )

      // Lowpass Filter
      0,          // Active?
      2000,       // Frequency cutoff (Hz)
      0.5,        // Resonance ( 0.0 to 1.0 )
      0,          // Cutoff LFO No. 
      0,          // Resonance LFO No.

      // Highpass Filter
      0,          // Active?
      500,        // Frequency cutoff (Hz)
      0.5,        // Resonance ( 0.0 to 1.0 )
      0,          // Cutoff LFO No. 
      0,          // Resonance LFO No.
      
      // LFO 1
      WF_OFF,     // LFO Waveform
      1,          // Reset when note retriggers
      6.0,        // Rate (hz)
      0.4,        // Depth

      // LFO 2
      WF_OFF,     // LFO Waveform
      1,          // Reset when note retriggers
      4.0,        // Rate (hz)
      0.5,        // Depth

      // LFO 3
      WF_OFF,     // LFO Waveform
      1,          // Reset when note retriggers
      1.0,        // Rate (hz)
      0.0,        // Depth

      // LFO 4
      WF_OFF,     // LFO Waveform
      1,          // Reset when note retriggers
      0.3,        // Rate (hz)
      4.0,        // Depth

      // LFO 5
      WF_OFF,     // LFO Waveform
      1,          // Reset when note retriggers
      1.0,        // Rate (hz)
      0.0,        // Depth

      // LFO 6
      WF_OFF,     // LFO Waveform
      1,          // Reset when note retriggers
      1.0,        // Rate (hz)
      0.0,        // Depth

      // Gain / Distortion
      0,          // Distortion (0->no distortion / 10->max distortion)
      1.0,        // Gain value

      // ----------------------------------------
      // Bass
      // ----------------------------------------

      // Oscillator 1
      1,          // Active?
      COMBINE_ADD,// Combine Method
      3.0,        // Amplitude ( 0.0 to 1.0 )
      0,          // Amplitude LFO No.  (0=off)
      0,          // Start pitch ( 0 = dependent to note )
      0.5,        // Pitch Mod. 
      0,          // Pitch LFO No. (0=off)
      0.0,        // Pitch step
      0,          // Pitch step accelleration
      WF_SQUAREWAVE,  // Waveform 
      0.5,        // Panning (-1.0 to 1.0)
      0,          // Panning LFO No. (0=off)
      0,          // Phase shift left  (0.0 - 1.0)
      0.25,       // Phase shift right (0.0 - 1.0)
      0.5,        // Pulse width for WF_SQUAREWAVE
      2,          // Pulse width LFO

      // Oscillator 2
      0,          // Active?
      COMBINE_ADD,// Combine Method
      1.0,        // Amplitude ( 0.0 to 1.0 )
      0,          // Amplitude LFO No.  (0=off)
      0,          // Start pitch ( 0 = dependent to note )
      0.25,        // Pitch Mod. 
      0,          // Pitch LFO No. (0=off)
      0.0,        // Pitch step
      0,          // Pitch step accelleration
      WF_SAWTOOTH,    // Waveform 
      -0.5,        // Panning (-1.0 to 1.0)
      0,          // Panning LFO No. (0=off)
      0,          // Phase shift left  (0.0 - 1.0)
      0,          // Phase shift right (0.0 - 1.0)
      0.5,        // Pulse width for WF_SQUAREWAVE
      0,          // Pulse width LFO

      // Oscillator 3
      0,          // Active?
      COMBINE_ADD,// Combine Method
      3.0,        // Amplitude ( 0.0 to 1.0 )
      0,          // Amplitude LFO No.  (0=off)
      0,          // Start pitch ( 0 = dependent to note )
      0.125,        // Pitch Mod. 
      0,          // Pitch LFO No. (0=off)
      0.0,        // Pitch step
      0,          // Pitch step accelleration
      WF_SAWTOOTH,   // Waveform 
      0.0,        // Panning (-1.0 to 1.0)
      0,          // Panning LFO No. (0=off)
      0,          // Phase shift left  (0.0 - 1.0)
      0,          // Phase shift right (0.0 - 1.0)
      0.5,        // Pulse width for WF_SQUAREWAVE
      0,          // Pulse width LFO

      // Amplitude Parameters
      0,          // Continuous? (1 = yes, 0 = no)
      0,          // Attack (ms)
      50,         // Decay (ms)
      100,        // Sustain (ms)
      200,        // Release (ms)  
      0.4,        // Sustain amplitude ( 0.0 to 1.0 )

      // Lowpass Filter
      1,          // Active?
      600,        // Frequency cutoff (Hz)
      0.9,        // Resonance ( 0.0 to 1.0 )
      1,          // Cutoff LFO No. 
      0,          // Resonance LFO No.

      // Highpass Filter
      0,          // Active?
      700,        // Frequency cutoff (Hz)
      0.8,        // Resonance ( 0.0 to 1.0 )
      0,          // Cutoff LFO No. 
      0,          // Resonance LFO No.

      // LFO 1
      WF_SINE,    // LFO Waveform
      1,          // Reset when note retriggers
      1.0,        // Rate (hz)
      400,       // Depth

      // LFO 2
      WF_SINE,    // LFO Waveform
      1,          // Reset when note retriggers
      0.5,        // Rate (hz)
      0.5,        // Depth

      // LFO 3
      WF_OFF,     // LFO Waveform
      1,          // Reset when note retriggers
      1.0,        // Rate (hz)
      0.0,        // Depth

      // LFO 4
      WF_OFF,     // LFO Waveform
      1,          // Reset when note retriggers
      0.3,        // Rate (hz)
      4.0,        // Depth

      // LFO 5
      WF_OFF,     // LFO Waveform
      1,          // Reset when note retriggers
      1.0,        // Rate (hz)
      0.0,        // Depth

      // LFO 6
      WF_OFF,     // LFO Waveform
      1,          // Reset when note retriggers
      1.0,        // Rate (hz)
      0.0,        // Depth

      // Gain / Distortion
      0,          // Distortion (0->no distortion / 10->max distortion)
      0.4,        // Gain value

      // ----------------------------------------
      // Bass 2
      // ----------------------------------------

      // Oscillator 1
      1,          // Active?
      COMBINE_ADD,// Combine Method
      1.0,        // Amplitude ( 0.0 to 1.0 )
      0,          // Amplitude LFO No.  (0=off)
      0,          // Start pitch ( 0 = dependent to note )
      1.0,        // Pitch Mod. 
      0,          // Pitch LFO No. (0=off)
      0.0,        // Pitch step
      0,          // Pitch step accelleration
      WF_SQUAREWAVE,   // Waveform 
      0.0,        // Panning (-1.0 to 1.0)
      0,          // Panning LFO No. (0=off)
      0,          // Phase shift left  (0.0 - 1.0)
      0.2,        // Phase shift right (0.0 - 1.0)
      0.5,        // Pulse width for WF_SQUAREWAVE
      0,          // Pulse width LFO

      // Oscillator 2
      1,          // Active?
      COMBINE_ADD,// Combine Method
      0.2,        // Amplitude ( 0.0 to 1.0 )
      0,          // Amplitude LFO No.  (0=off)
      0,          // Start pitch ( 0 = dependent to note )
      1,          // Pitch Mod. 
      0,          // Pitch LFO No. (0=off)
      0.0,        // Pitch step
      0,          // Pitch step accelleration
      WF_SQUAREWAVE,   // Waveform 
      0.0,        // Panning (-1.0 to 1.0)
      0,          // Panning LFO No. (0=off)
      0.2,        // Phase shift left  (0.0 - 1.0)
      0,          // Phase shift right (0.0 - 1.0)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -