Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add metatune param, now against 1.9-dev #1046

Merged
merged 1 commit into from
Oct 27, 2023
Merged

Conversation

ahihi
Copy link
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
Member

yaxu commented Oct 27, 2023

thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants