add metatune param, now against 1.9-dev #1046
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
adds support for the
metatune
functionality recently merged into SuperDirt.to summarize:
smpl
chunk, commonly used by samplers for automatic pitch mappingdirt_sample
synth is passedmetatune = 1
, it tunes sample playback relative to the sample's pitch metadataso given e.g. an instrument sample
foo:2
recorded at F#4 and tagged as such in its metadata, it is now possible to dod1 $ note "c3" # s "foo:2" # metatune 1
and it will actually play at C3!metatune
defaults to0
, in which case C4 is used as the reference pitch, just like before. C4 is also the fallback whenmetatune = 1
but the specified sample lacks pitch metadata.