ctford / leipzig

A music composition library for Clojure and Clojurescript.
Other
454 stars 26 forks source link

[question] Stringed instruments? #16

Closed baskeboler closed 5 years ago

baskeboler commented 6 years ago

Hi there, I am really digging this library but I am having a bit of a hard time using it with stringed instruments. I tried to write an example based on the overtone stringed synth examples here but it is not clear to me how I could express the chords in a more elegant way. Any ideas or suggestions?

ctford commented 6 years ago

Very cool!

A couple of suggestions on chords. First, phrase accepts single pitches (numbers), tone clusters (vectors) and chords (maps), so you could consider using that instead of the rhythm/having combo you've got going.

The downside of that is that it flattens chords into individual notes, so it may or may not work with your instruments.

For your repeated chords, you could consider using (mapcat repeat [reps] [chords]) as an idiom to reduce redundant chord descriptions.

Rock on!

Chris

El vie., 17 ago. 2018 2:05, Victor Gil notifications@github.com escribió:

Hi there, I am really digging this library but I am having a bit of a hard time using it with stringed instruments. I tried to write an example based on the overtone stringed synth examples here https://github.com/baskeboler/highway-to-hell but it is not clear to me how I could express the chords in a more elegant way. Any ideas or suggestions?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/ctford/leipzig/issues/16, or mute the thread https://github.com/notifications/unsubscribe-auth/AAHa23BQ_4x-gI8hFYsZ4kBYvnELk2VIks5uRgjZgaJpZM4WAwqN .

baskeboler commented 6 years ago

Thanks for your reply! After posting my question I realized that using phrase is a lot cleaner. My knowledge of guitar is very limited (knowledge of piano is nil :P) but getting guitar tabs from the web is a fun starting point and digging into leipzig has been enlightening. I wrote a little function here to translate the guitar chord vectors into midi chords that I think might be useful and a lot more friendlier to use with leipzig transformations.