MuScriptor.Transcribe¶
| Name | Mandatory | Description | Default | Type |
|---|---|---|---|---|
⬅️ Input |
The input of the shard, if any | [Float] |
||
Output ➡️ |
The resulting output of the shard | [{pitch: Int onset: Float offset: Float program: Int drum: Bool instrument: String}] |
||
Model |
No | The MuScriptor model to use. | none |
Var(MuScriptorModel) |
SampleRate |
No | Sample rate of the input samples in Hz; resampled to 16000 if different. | 16000 |
Int |
Instruments |
No | Instrument names to condition the model on (e.g. "acoustic_piano" or ["acoustic_piano" "drums"]). | none |
NoneStringVar(String)[String]Var([String]) |
BatchSize |
No | 5-second chunks transcribed per batch. 0 = auto (4 on GPU, 1 on CPU). | 0 |
Int |
MaxTokens |
No | Maximum generated tokens per chunk. | 2000 |
Int |
Temperature |
No | Sampling temperature. 0 = greedy decoding (the reference default). | 0 |
Float |
TopP |
No | Top-p (nucleus) sampling; takes precedence over TopK. 0 disables. | 0 |
Float |
TopK |
No | Top-k sampling. 0 disables. | 0 |
Int |
Seed |
No | Random seed used when Temperature > 0. | 299792458 |
Int |
Transcribe mono audio samples to MIDI notes using a MuScriptor model. Outputs a sequence of note tables: {pitch: Int, onset: Float, offset: Float, program: Int, drum: Bool, instrument: String}.