MattCrumpLab,
@MattCrumpLab@fosstodon.org avatar

I might need to manipulate and synthesize midi in R, so I spent the afternoon trying to make various packages work. They are all wrappers for python stuff. It wasn't a cake walk, but I finally made an mp3 of the top gun theme song = declaring victory

#rstats #rtstatsmusic #midi

https://homophony.quest/blog/32_1_30_24_R_synth/

coolbutuseless,
@coolbutuseless@fosstodon.org avatar

@MattCrumpLab This is so great!

I've got some half-arsed, half-finished packages for real-time midi playback in - you've inspired me to bump them up the priority list :)

mccarthymg,
@mccarthymg@fosstodon.org avatar

@MattCrumpLab Now all we need is a ggplot2 + shiny-powered MIDI roll for writing melodies🤘

urswilke,
@urswilke@fosstodon.org avatar

@MattCrumpLab

Really nice to hear that you used the pyramidi package I've written some time ago!

I hope it wasn't too frustrating. You have to feel adventurous to use it.

The package is highly experimental and doesn't work for all sorts of midi files. And it was a bit cumbersome to harmonize the development with the related python package...

MattCrumpLab,
@MattCrumpLab@fosstodon.org avatar

@urswilke Thanks for writing the package!, it helped immensely.

I'm not sure I've used R6 so much before, but other than that I was able to follow along. I'm planning to go back through your docs today as I start exploring mangling with midi. Nice work!!!

urswilke,
@urswilke@fosstodon.org avatar

@MattCrumpLab
whoops! I think I posted my reply in the wrong place...

https://fosstodon.org/deck/@urswilke/111861175759116362

It was supposed to appear here. Sorry about the confusion

MattCrumpLab,
@MattCrumpLab@fosstodon.org avatar

@urswilke No problem, and thanks again for all your work, it's helped me wrap my head around wrangling midi in R...I still have a fair distance to go in terms of getting it all straight, but it's been a lot of fun so far!

Marrekoo,
@Marrekoo@urbanists.social avatar

@MattCrumpLab why did you include ggplot2? Totally off topic, I know. Bit curious.

MattCrumpLab,
@MattCrumpLab@fosstodon.org avatar

@Marrekoo Just sloppy coding. I was copying in some libraries that were used in the docs for pyramidi, and they never got used.

MattCrumpLab,
@MattCrumpLab@fosstodon.org avatar

These GM-style soundfonts are pure cheese, very fun

MattCrumpLab,
@MattCrumpLab@fosstodon.org avatar

I was able to add some hi hats to the basic drum beat, and change tempo, but something seems wrong about tempo. Right now my mp3 has 4 bars of drum beat and what seems like 4 bars of silence, and I'm all MIDIed out for the day

The ggplot code for a keyboard is cool, though, I plotted a C7!

MattCrumpLab,
@MattCrumpLab@fosstodon.org avatar

Looking forward to the day when I systematically randomize the super Mario brothers theme song, in steps of just a little fun to plowing down the green pipe of entropy, into the underworld of fun.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • rosin
  • thenastyranch
  • ethstaker
  • osvaldo12
  • mdbf
  • DreamBathrooms
  • InstantRegret
  • magazineikmin
  • Youngstown
  • ngwrru68w68
  • slotface
  • GTA5RPClips
  • kavyap
  • cubers
  • JUstTest
  • everett
  • cisconetworking
  • tacticalgear
  • anitta
  • khanakhh
  • normalnudes
  • Durango
  • modclub
  • tester
  • provamag3
  • Leos
  • megavids
  • lostlight
  • All magazines