Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
hahawoo authored Oct 9, 2019
1 parent c198048 commit 5a09fcc
Show file tree
Hide file tree
Showing 79 changed files with 9,327 additions and 6,893 deletions.
612 changes: 328 additions & 284 deletions modules/audio/Audio.lua

Large diffs are not rendered by default.

20 changes: 10 additions & 10 deletions modules/audio/enums/DistanceModel.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,31 +4,31 @@ return {
constants = {
{
name = 'none',
description = 'Sources do not get attenuated.'
description = 'Sources do not get attenuated.',
},
{
name = 'inverse',
description = 'Inverse distance attenuation.'
description = 'Inverse distance attenuation.',
},
{
name = 'inverseclamped',
description = 'Inverse distance attenuation. Gain is clamped. In version 0.9.2 and older this is named inverse clamped.'
description = 'Inverse distance attenuation. Gain is clamped. In version 0.9.2 and older this is named \'\'\'inverse clamped\'\'\'.',
},
{
name = 'linear',
description = 'Linear attenuation.'
description = 'Linear attenuation.',
},
{
name = 'linearclamped',
description = 'Linear attenuation. Gain is clamped. In version 0.9.2 and older this is named linear clamped.'
description = 'Linear attenuation. Gain is clamped. In version 0.9.2 and older this is named \'\'\'linear clamped\'\'\'.',
},
{
name = 'exponent',
description = 'Exponential attenuation.'
description = 'Exponential attenuation.',
},
{
name = 'exponentclamped',
description = 'Exponential attenuation. Gain is clamped. In version 0.9.2 and older this is named exponent clamped.'
}
}
}
description = 'Exponential attenuation. Gain is clamped. In version 0.9.2 and older this is named \'\'\'exponent clamped\'\'\'.',
},
},
}
22 changes: 11 additions & 11 deletions modules/audio/enums/EffectType.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,35 +4,35 @@ return {
constants = {
{
name = 'chorus',
description = 'Plays multiple copies of the sound with slight pitch and time variation. Used to make sounds sound "fuller" or "thicker".'
description = 'Plays multiple copies of the sound with slight pitch and time variation. Used to make sounds sound "fuller" or "thicker".',
},
{
name = 'compressor',
description = 'Decreases the dynamic range of the sound, making the loud and quiet parts closer in volume, producing a more uniform amplitude throughout time.'
description = 'Decreases the dynamic range of the sound, making the loud and quiet parts closer in volume, producing a more uniform amplitude throughout time.',
},
{
name = 'distortion',
description = 'Alters the sound by amplifying it until it clips, shearing off parts of the signal, leading to a compressed and distorted sound.'
description = 'Alters the sound by amplifying it until it clips, shearing off parts of the signal, leading to a compressed and distorted sound.',
},
{
name = 'echo',
description = 'Decaying feedback based effect, on the order of seconds. Also known as delay; causes the sound to repeat at regular intervals at a decreasing volume.'
description = 'Decaying feedback based effect, on the order of seconds. Also known as delay; causes the sound to repeat at regular intervals at a decreasing volume.',
},
{
name = 'equalizer',
description = 'Adjust the frequency components of the sound using a 4-band (low-shelf, two band-pass and a high-shelf) equalizer.'
description = 'Adjust the frequency components of the sound using a 4-band (low-shelf, two band-pass and a high-shelf) equalizer.',
},
{
name = 'flanger',
description = 'Plays two copies of the sound; while varying the phase, or equivalently delaying one of them, by amounts on the order of milliseconds, resulting in phasing sounds.'
description = 'Plays two copies of the sound; while varying the phase, or equivalently delaying one of them, by amounts on the order of milliseconds, resulting in phasing sounds.',
},
{
name = 'reverb',
description = 'Decaying feedback based effect, on the order of milliseconds. Used to simulate the reflection off of the surroundings.'
description = 'Decaying feedback based effect, on the order of milliseconds. Used to simulate the reflection off of the surroundings.',
},
{
name = 'ringmodulator',
description = 'An implementation of amplitude modulation; multiplies the source signal with a simple waveform, to produce either volume changes, or inharmonic overtones.'
}
}
}
description = 'An implementation of amplitude modulation; multiplies the source signal with a simple waveform, to produce either volume changes, or inharmonic overtones.',
},
},
}
38 changes: 19 additions & 19 deletions modules/audio/enums/EffectWaveform.lua
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
return {
name = 'EffectWaveform',
description = 'The different types of waveforms that can be used with the ringmodulator EffectType.',
constants = {
{
name = 'sawtooth',
description = 'A sawtooth wave, also known as a ramp wave. Named for its linear rise, and (near-)instantaneous fall along time.'
name = 'EffectWaveform',
description = 'The different types of waveforms that can be used with the \'\'\'ringmodulator\'\'\' EffectType.',
constants = {
{
name = 'sawtooth',
description = 'A sawtooth wave, also known as a ramp wave. Named for its linear rise, and (near-)instantaneous fall along time.',
},
{
name = 'sine',
description = 'A sine wave. Follows a trigonometric sine function.',
},
{
name = 'square',
description = 'A square wave. Switches between high and low states (near-)instantaneously.',
},
{
name = 'triangle',
description = 'A triangle wave. Follows a linear rise and fall that repeats periodically.',
},
},
{
name = 'sine',
description = 'A sine wave. Follows a trigonometric sine function.'
},
{
name = 'square',
description = 'A square wave. Switches between high and low states (near-)instantaneously.'
},
{
name = 'triangle',
description = 'A triangle wave. Follows a linear rise and fall that repeats periodically.'
}
}
}
34 changes: 17 additions & 17 deletions modules/audio/enums/FilterType.lua
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
return {
name = 'FilterType',
description = 'The different types of filters for Sources',
constants = {
{
name = 'lowpass',
description = 'Low-pass filter. High frequency sounds are attenuated.'
},
{
name = 'highpass',
description = 'High-pass filter. Low frequency sounds are attenuated.'
},
{
name = 'bandpass',
description = 'Band-pass filter. Both high and low frequency sounds are attenuated based on the given parameters.'
}
}
}
name = 'FilterType',
description = 'Types of filters for Sources.',
constants = {
{
name = 'lowpass',
description = 'Low-pass filter. High frequency sounds are attenuated.',
},
{
name = 'highpass',
description = 'High-pass filter. Low frequency sounds are attenuated.',
},
{
name = 'bandpass',
description = 'Band-pass filter. Both high and low frequency sounds are attenuated based on the given parameters.',
},
},
}
12 changes: 6 additions & 6 deletions modules/audio/enums/SourceType.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ return {
constants = {
{
name = 'static',
description = 'The whole audio is decoded.'
description = 'The whole audio is decoded.',
},
{
name = 'stream',
description = 'The audio is decoded in chunks when needed.'
description = 'The audio is decoded in chunks when needed.',
},
{
name = 'queue',
description = 'The audio must be manually queued by the user with Source:queue.'
}
}
}
description = 'The audio must be manually queued by the user.',
},
},
}
10 changes: 5 additions & 5 deletions modules/audio/enums/TimeUnit.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ return {
constants = {
{
name = 'seconds',
description = 'Regular seconds.'
description = 'Regular seconds.',
},
{
name = 'samples',
description = 'Audio samples.'
}
}
}
description = 'Audio samples.',
},
},
}
Loading

0 comments on commit 5a09fcc

Please sign in to comment.