Skip to content
Discussion options

You must be logged in to vote

By default, spessasynth sets the loop to first note on and end on last voice event. End of track is ignored.

In the file you provided, the end of track doesn't seem to be offset like you mentioned:

You can override loop end with the last event tick. Here's a complete example using the 4.0 API:

import Speaker from "speaker";
import fs from "fs/promises";
import {
    BasicMIDI,
    SoundBankLoader,
    SpessaSynthProcessor,
    SpessaSynthSequencer
} from "../src";
import { Readable } from "node:stream";

const midiFile = await fs.readFile("./basic-baião-2-4.mid");
const sfFile = await fs.readFile(
    "/home/spessasus/htdocs/SpessaSynth/soundfonts/gm.dls"
);

const synth = new SpessaSynt…

Replies: 6 comments 11 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by infojunkie
Comment options

You must be logged in to vote
3 replies
@spessasus
Comment options

@infojunkie
Comment options

@infojunkie
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@spessasus
Comment options

Comment options

You must be logged in to vote
7 replies
@infojunkie
Comment options

@infojunkie
Comment options

@spessasus
Comment options

@spessasus
Comment options

@infojunkie
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants