Sonolus Wiki

07. Note Result

In this chapter, we will implement result logic of Note.

Input

Similar to play mode, we need to mark Note as playable:

export class Note extends Archetype {
    hasInput = true

    // ...
}
export class Note extends Archetype {
    hasInput = true

    // ...
}

Result

We simply need to tell Sonolus the target time:

export class Note extends Archetype {
    // ...

    preprocess() {
        // ...

        this.result.time = this.targetTime
    }

    // ...
}
export class Note extends Archetype {
    // ...

    preprocess() {
        // ...

        this.result.time = this.targetTime
    }

    // ...
}