modif dbgain
This commit is contained in:
3
.vs/ProjectSettings.json
Normal file
3
.vs/ProjectSettings.json
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"CurrentProjectSetting": null
|
||||||
|
}
|
||||||
Binary file not shown.
0
.vs/Topos/FileContentIndex/read.lock
Normal file
0
.vs/Topos/FileContentIndex/read.lock
Normal file
BIN
.vs/Topos/v17/.wsuo
Normal file
BIN
.vs/Topos/v17/.wsuo
Normal file
Binary file not shown.
7
.vs/VSWorkspaceState.json
Normal file
7
.vs/VSWorkspaceState.json
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"ExpandedNodes": [
|
||||||
|
""
|
||||||
|
],
|
||||||
|
"SelectedNode": "\\C:\\Users\\Julien\\Topos",
|
||||||
|
"PreviewInSolutionExplorer": false
|
||||||
|
}
|
||||||
BIN
.vs/slnx.sqlite
Normal file
BIN
.vs/slnx.sqlite
Normal file
Binary file not shown.
@ -102,6 +102,8 @@ export class SoundEvent extends AudibleEvent {
|
|||||||
public begin = (value: number) => this.updateValue("begin", value);
|
public begin = (value: number) => this.updateValue("begin", value);
|
||||||
public end = (value: number) => this.updateValue("end", value);
|
public end = (value: number) => this.updateValue("end", value);
|
||||||
public gain = (value: number) => this.updateValue("gain", value);
|
public gain = (value: number) => this.updateValue("gain", value);
|
||||||
|
public dbgain = (value: number) => this.updateValue("velocity", Math.pow(10, value / 20));
|
||||||
|
public db = this.dbgain;
|
||||||
public cutoff = (value: number) => this.updateValue("cutoff", value);
|
public cutoff = (value: number) => this.updateValue("cutoff", value);
|
||||||
public lpf = this.cutoff;
|
public lpf = this.cutoff;
|
||||||
public resonance = (value: number) => this.updateValue("resonance", value);
|
public resonance = (value: number) => this.updateValue("resonance", value);
|
||||||
|
|||||||
@ -136,10 +136,11 @@ There is a special method to choose the _orbit_ that your sound is going to use:
|
|||||||
|
|
||||||
Simple controls over the amplitude (volume) of a given sound.
|
Simple controls over the amplitude (volume) of a given sound.
|
||||||
|
|
||||||
| Method | Alias | Description |
|
| Method | Alias | Description |
|
||||||
|----------|-------|------------------------------------------------------------|
|
|----------|-------|-----------------------------------------------------------------------------------|
|
||||||
| gain | | Volume of the synth/sample (exponential) |
|
| gain | | Volume of the synth/sample (exponential) |
|
||||||
| velocity | vel | Velocity (amplitude) from 0 to 1. Multipled with gain |
|
| velocity | vel | Velocity (amplitude) from <ic>0</ic> to <ic>1</ic>. Multipled with gain |
|
||||||
|
| dbgain | db | Attenuation in dB from <ic>-inf</ic> to <ic>0</ic> (acts as a sound mixer fader) |
|
||||||
|
|
||||||
${makeExample(
|
${makeExample(
|
||||||
"Velocity manipulated by a counter",
|
"Velocity manipulated by a counter",
|
||||||
|
|||||||
Reference in New Issue
Block a user