Merge branch 'main' of https://github.com/Bubobubobubobubo/Topos into logicaltime
This commit is contained in:
@ -8,10 +8,10 @@ export class RestEvent extends Event {
|
||||
}
|
||||
|
||||
_fallbackMethod = (): Event => {
|
||||
return this;
|
||||
return RestEvent.createRestProxy(this.values["duration"], this.app);
|
||||
}
|
||||
|
||||
public static createRestProxy = (duration: number, app: Editor) => {
|
||||
public static createRestProxy = (duration: number, app: Editor): RestEvent => {
|
||||
const instance = new RestEvent(duration, app);
|
||||
return new Proxy(instance, {
|
||||
// @ts-ignore
|
||||
|
||||
@ -1,10 +1,10 @@
|
||||
export class SkipEvent {
|
||||
|
||||
_fallbackMethod = (): SkipEvent => {
|
||||
return this;
|
||||
return SkipEvent.createSkipProxy();
|
||||
}
|
||||
|
||||
public static createSkipProxy = () => {
|
||||
public static createSkipProxy = (): SkipEvent => {
|
||||
const instance = new SkipEvent();
|
||||
return new Proxy(instance, {
|
||||
// @ts-ignore
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
import { type Editor } from '../main';
|
||||
import { AudibleEvent } from './AbstractEvents';
|
||||
import { midiToFreq, noteFromPc } from 'zifferjs';
|
||||
import { type Editor } from "../main";
|
||||
import { AudibleEvent } from "./AbstractEvents";
|
||||
import { midiToFreq, noteFromPc } from "zifferjs";
|
||||
|
||||
import {
|
||||
superdough,
|
||||
@ -8,7 +8,6 @@ import {
|
||||
} from "superdough";
|
||||
|
||||
export class SoundEvent extends AudibleEvent {
|
||||
|
||||
constructor(sound: string | object, public app: Editor) {
|
||||
super(app);
|
||||
if (typeof sound === "string") this.values = { s: sound, dur: 0.5 };
|
||||
|
||||
Reference in New Issue
Block a user