Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Sampler instrument #338

Closed
daveyarwood opened this issue Aug 11, 2017 · 2 comments
Closed

Sampler instrument #338

daveyarwood opened this issue Aug 11, 2017 · 2 comments

Comments

@daveyarwood
Copy link
Member

Idea: an instrument that can load a sample (an audio file on disk) and use it to play notes, chords, etc. by manipulating the speed and pitch of the sample.

Example code sketch:

sampler "voice-sample":
  # load a wav file sample and note that its pitch is A4
  (load-sample "voice-humming.wav" :A4)

  # play the sampler instrument like any other Alda instrument
  c8 d e f g a b > c | c1/e/g
@MinaBombo
Copy link

I will work on this idea but wouldn't it be cooler if we added auto detection for the note played in the audio file? I believe some signal processing and FFT will do the trick.

@daveyarwood
Copy link
Member Author

I think that would be a nice feature to have, although it would also be useful to be able to specify, e.g. when loading a complex sample that has multiple audible pitches. Maybe it should auto-detect the pitch by default, and the pitch could be an optional argument.

@daveyarwood daveyarwood transferred this issue from alda-lang/alda-sound-engine-clj Jan 1, 2021
@alda-lang alda-lang locked and limited conversation to collaborators Oct 7, 2022
@daveyarwood daveyarwood converted this issue into discussion #442 Oct 7, 2022

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Projects
None yet
Development

No branches or pull requests

2 participants