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

Support the direction opcode #185

Merged
merged 3 commits into from
Apr 16, 2020
Merged

Support the direction opcode #185

merged 3 commits into from
Apr 16, 2020

Conversation

jpcima
Copy link
Collaborator

@jpcima jpcima commented Apr 16, 2020

Implement #179

This supports direction=reverse.

  • Instead of being identified by filename, samples are identified by filename + reverse bit.
    The class FileId is created for this purpose.
  • This change is propagated throughout sfizz in places where applicable.
  • For non-oscillator regions, the file will be requested in the pool with option reverse=1.
    At load time, the sound file seeks at end-N frames, reads N frames to the buffer, and reverses the result.

Note: loop is ignored on reverse=1, a comment is written to indicate it.

Example

<region>
pitch_keycenter=69
sample=mysound.wav
direction=reverse

@jpcima jpcima merged commit 69badd9 into sfztools:develop Apr 16, 2020
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