Live data from Hacker News

I made a command-line tool to assist me with writing polyrhythmic drum parts

github.com

51–60 of 63 posts

Re: I made a command-line tool to assist me with writing polyrhythmic drum parts

#51
post #10

Earlier quoted context omitted.

Very excited to see this. It's very much a tool I would use, excited to give it a spin after work tonight. I also look forward to reading the code. Other cool music tools I've seen implemented in rust: * glicol - https://glicol.org/ * tune - https://github.com/Woyten/tune A while back I wanted to make some tools to aid in composition and was using rust. Very partially baked, but a fun pet project to learn the languag…

Thanks for commenting and reaching out, would love to know what you think of poly. I was learning Rust along the way, so there is definitely room for improvement. From the memory allocation perspective at least, I didn't paid it much mind as the practical applications are not that memory intensive. No clue what intonation pitch lattices are, but now I'm interested to learn!

I was having fun writing one liners with poly, leaving my file explorer open and dragging the output file straight into a Ableton channel with a drum rack set up.

I also tried making a web UI with it via Yew. I got it all compiling and running in the browser, but the crate is all about that CLI. I would have to write a lot of the code that’s in the CLI file to call the create_smf function.

It might be worth considering designing the library’s API to be a bit friendlier to an end user. I think there’s cool stuff that could be done with it. Or at least that’s something I want to do :D

Re: I made a command-line tool to assist me with writing polyrhythmic drum parts

#53
post #47

Earlier quoted context omitted.

Can't be honest about being taken aback without getting crowd downvoted by trigger-happy Rustaceans. You don't have to be that defensive I was honestly surprised by the choice of language for the application.

I don't understand the basis for the grandparent comment, that is, why is the use of rust such a surprise? I only use dynamic scripting languages (so I can't speak from experience) but from what I understand rust is a great language; extremely fast and easier/safer to work with than c++. Why wouldn't it be a good choice for OP's CLI?

I've been mostly doing Haskell for last 9 years, but I find Rust to be awesome nowadays. Great feedback from the type checker, no unnecessary runtime, great tooling. It's unique in a sense that it's fast, but quite safe at the same type. If it would have Higher-Kinded Types, it would be even better for me personally, but it's a tricky compromise from a compiler design perspective.

Also, I find static linking to work great with Rust, so it's quite easy to distribute your app.

Re: I made a command-line tool to assist me with writing polyrhythmic drum parts

#54

This is cool! I have a web-based polyrhythm generator as well based around Euclidean rhythms. https://e-drums-stg.vercel.app/ currently working on a v2 with a much better mobile interface and fewer clicks)

I'll definitely take a look at that! I've decided against an UI for Polyrhythmix for now, as I don't have a good sense of how to make it easy to use, but retain the flexibility I can get with a DSL programmable input.

Re: I made a command-line tool to assist me with writing polyrhythmic drum parts

#55

I shall nickname it "The Haakinator". https://en.wikipedia.org/wiki/Tomas_Haake

> 32xx16xx - Kick pattern from "Bleed" by Meshuggah I had to think about that for a bit, but yeah, that's what it is alright

Glad it makes sense not only to me! I've tried to make an understandable description in a README, but if you have an idea of how to explain it better, it's very welcome.

Re: I made a command-line tool to assist me with writing polyrhythmic drum parts

#57

If you're interested in this, there's a good chance you would enjoy the TidalCycles language for generating music. It's been a mind-expanding experience for me, particularly w/r/t polyrhythms. The landing page: https://tidalcycles.org/ An example of some music made live with it: https://www.youtube.com/watch?v=mlUOWjC5fpY

Also worth checking out Lil Data [1], an artist affiliated with PC Music who uses TidalCycles and also has a doctorate in some pretty interesting musical research [2]. [1] https://soundcloud.com/lil-data [2] https://scholar.google.co.uk/citations?user=APvoBhUAAAAJ&hl=...

This is a very cool approach to UI. I've been struggling to design a reasonable UI for poly. I think I saw a similar thing on the youtube channel of Yogev Gabay, but I forgot the name.

Re: I made a command-line tool to assist me with writing polyrhythmic drum parts

#58

> converges over 3 bars bars of what length? a 3 against 4 polyrhythm converges after 12 beats, so here it's 3 bars of 4 beats, which is a "bar" for the second rhythm you passed in (`'4-x'`) but four or two bars for your first rhythm (depending on if you write it 6/8 or 3/4, this one could go both ways). Would be worth letting us know in the CLI, if you think about more esoteric polyrhythms it gets more confusing.

It defaults to 4/4, unless you supply a different time signature through CLI.

Re: I made a command-line tool to assist me with writing polyrhythmic drum parts

#59
post #20

This is super cool and I can’t wait to try it out. There’s more than one polyrhythm I’m trying to arrange, and being able to quickly hear it without having to come up with a sticking or arrangement would really help.

I'd love to have some feedback from other users, let me know if you need any help!
Post reply on HN