Lance Massey Posted April 22, 2016 Share Posted April 22, 2016 I'm ok (not great) with music and algorithms, but I know *nothing* about Lisp, so please excuse me if I'm completely off base... I'd like to set up a system where I can tag parts of midi files and then use random weights to create new pieces that are similar to the source material. For example, I'd like to create a new melody from the openings of three different pieces where each of the source motifs are tagged with something like "dark" "rhythmic" "complex" In my day job the way I'd do this is to have all the motifs, melodies, basslines, chord progressions, descriptive tags, etc. stored in a database, and I'd run a query: "SELECT * from motifs WHERE tag LIKE 'dark' LIMIT 3. And then I'd basically use random numbers to select which of the resultant notes would play and when. I'd then rate the result, and if it's good enough INSERT it back in to the database to provide a new generation of material So my question is, would I need a database in OpusModus, or is there a "Lispy-way" to do this kind of genetic manipulation? If I need a database, any recommendations? Thanks for your patience!! Lance Quote Link to comment Share on other sites More sharing options...
Stephane Boussuge Posted April 23, 2016 Share Posted April 23, 2016 Hi, you can use all the Opusmodus Library functions to store and retrieve material like phrases, motives, chords, scales and full part of song you have imported from midi. In library, you can put this material in sections, named for example: dark, clear, joyful etc... and call this material with rules and structures. Try the demo version of Opusmodus and have a look to the Library functions and associates. SB. Lance Massey 1 Quote Link to comment Share on other sites More sharing options...
Rangarajan Posted April 23, 2016 Share Posted April 23, 2016 SB, Can you point me to a couple of library functions to read midi files and access its parts? -Rangarajan Quote Link to comment Share on other sites More sharing options...
opmo Posted April 23, 2016 Share Posted April 23, 2016 You need to import the midi file first. The output of the import is OMN format. Quote Link to comment Share on other sites More sharing options...
Rangarajan Posted April 23, 2016 Share Posted April 23, 2016 Just now noticed that the function MIDI-TO-SCORE is not documented. -Rangarajan Quote Link to comment Share on other sites More sharing options...
opmo Posted April 23, 2016 Share Posted April 23, 2016 You export the midi file to score from the main menu: File -> Export -> Midi To Score... Quote Link to comment Share on other sites More sharing options...
Rangarajan Posted April 23, 2016 Share Posted April 23, 2016 What if wanted to do it from a function, not from the IDE? -Rangarajan Quote Link to comment Share on other sites More sharing options...
opmo Posted April 23, 2016 Share Posted April 23, 2016 OK, I will make a doc and examples (howto) for that soon. Quote Link to comment Share on other sites More sharing options...
Rangarajan Posted April 23, 2016 Share Posted April 23, 2016 That would be very helpful, thanks. -Rangarajan Quote Link to comment Share on other sites More sharing options...
Lance Massey Posted April 24, 2016 Author Share Posted April 24, 2016 Thanks Stephane! I have the demo - lots to learn... Quote Link to comment Share on other sites More sharing options...
Stephane Boussuge Posted April 24, 2016 Share Posted April 24, 2016 Hi Lance, don't hesitate to ask on this forum if you need help. stephane Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.