-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The Global Scope Update 2.0: The End
completed the sequencer added audio exporting
- Loading branch information
Showing
37 changed files
with
1,139 additions
and
920 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,23 @@ | ||
## This is the sequencer's folder. | ||
The code here is responsible for playing back the parsed MIDI sequence with the synthesizer. | ||
The code here is responsible for playing back the parsed MIDI sequence with the synthesizer. | ||
|
||
### Message protocol: | ||
#### Message structure | ||
```js | ||
const message = { | ||
messageType: number, // WorkletSequencerMessageType | ||
messageData: any // any | ||
} | ||
``` | ||
|
||
#### To worklet | ||
Sequencer uses `Synthetizer`'s `post` method to post a message with `messageData` set to `workletMessageType.sequencerSpecific`. | ||
The `messageData` is set to the sequencer's message. | ||
|
||
#### From worklet | ||
`WorkletSequencer` uses `SpessaSynthProcessor`'s post to send a message with `messageData` set to `returnMessageType.sequencerSpecific`. | ||
The `messageData` is set to the sequencer's return message. | ||
|
||
|
||
### Process tick | ||
`processTick` is called every time the `process` method is called via `SpessaSynthProcessor.processTickCallback`. |
Oops, something went wrong.