revert to buggy but better version
This commit is contained in:
@ -292,15 +292,13 @@ export class SoundEvent extends AudibleEvent {
|
|||||||
|
|
||||||
out = (): void => {
|
out = (): void => {
|
||||||
if (this.values.chord) {
|
if (this.values.chord) {
|
||||||
this.values.chord.forEach((obj: {[key: string]: number}) => {
|
this.values.chord.forEach((obj: { [key: string]: number }) => {
|
||||||
const copy = {...this.values};
|
const copy = { ...this.values };
|
||||||
copy.freq = obj.freq
|
copy.freq = obj.freq
|
||||||
// This is pure non-sense but I need to adapt somehow
|
superdough(copy, 1 / 4, this.values.dur || 0.5);
|
||||||
superdough(copy, copy.dur*2, copy.dur);
|
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
// This is pure non-sense but I need to adapt somehow
|
superdough(this.values, 1 / 4, this.values.dur || 0.5);
|
||||||
superdough(this.values, this.values.dur * 2, this.values.dur);
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user