Skip to content
This repository was archived by the owner on Jun 13, 2025. It is now read-only.

add metatune param, now against 1.9-dev#1046

Merged
yaxu merged 1 commit intotidalcycles:1.9-devfrom
ahihi:metatune-1.9
Oct 27, 2023
Merged

add metatune param, now against 1.9-dev#1046
yaxu merged 1 commit intotidalcycles:1.9-devfrom
ahihi:metatune-1.9

Conversation

@ahihi
Copy link
Copy Markdown
Contributor

@ahihi ahihi commented Oct 26, 2023

adds support for the metatune functionality recently merged into SuperDirt.

to summarize:

  • WAV files can contain pitch metadata in a smpl chunk, commonly used by samplers for automatic pitch mapping
  • SuperDirt now reads and stores this metadata for each loaded sample
  • when the dirt_sample synth is passed metatune = 1, it tunes sample playback relative to the sample's pitch metadata

so given e.g. an instrument sample foo:2 recorded at F#4 and tagged as such in its metadata, it is now possible to do d1 $ note "c3" # s "foo:2" # metatune 1 and it will actually play at C3!

metatune defaults to 0, in which case C4 is used as the reference pitch, just like before. C4 is also the fallback when metatune = 1 but the specified sample lacks pitch metadata.

@yaxu yaxu merged commit 6ffb9c4 into tidalcycles:1.9-dev Oct 27, 2023
@yaxu
Copy link
Copy Markdown
Member

yaxu commented Oct 27, 2023

thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants