Melodeon.net Forums

Please login or register.

Login with username, password and session length
Advanced search  

News:

Welcome to the new melodeon.net forum

Pages: [1] 2   Go Down

Author Topic: Computer generated Melodeon tune  (Read 5188 times)

0 Members and 1 Guest are viewing this topic.

Broadland Boy

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 1243
  • Awful noises from Pokerwork, HA114G, BbEb Liliputs
Computer generated Melodeon tune
« on: July 31, 2015, 12:48:53 AM »

I like to refresh my acquaintance with some of the diverse players who appear on Guy's Youtube videos from time to time, and see what new delights are to be found, well I just found this, composed and named by a computer and played by GbH himself

https://www.youtube.com/watch?v=hmvbr8U5yb0

Have we reached the 'roll over Playford you are obsolete' point in Human history?
What ought such a new genre of algorythmic compositions be called ?? 
Should existing and budding composers / arrangers be worried ???
Who should the PRS send their numerous and bountiful cheques to, the software developer or the PC operator ????
What equivalents to the Asimov three Laws of Robotics should be imposed on the programmers ?????
(ed why have some of me strings of incremental questioning marks turned into grotesque faces)

These and many other challenging questions require multiple letters to the Times and much discussion on Melnet

All joking apart, it sounded more 'human' than some of the computer generated 'music' I have heard previously.



Logged
Richard A
Venit ventus contrarius ventus egrediente,
Omnes prope quid ventum est circa

Grape Ape

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 1209
Re: Computer generated Melodeon tune
« Reply #1 on: July 31, 2015, 01:08:46 AM »

Tonight, I think I will sleep UNDER the bed.
Logged

Matt (Kings Norton)

  • Respected Sage
  • ****
  • Offline Offline
  • Posts: 304
  • West Midlands, UK
Re: Computer generated Melodeon tune
« Reply #2 on: July 31, 2015, 03:16:53 PM »

It would be interesting to know what the seeds were, the tune sounded to me a bit English and a bit Irish.  It got me thinking about what would come out with other inputs.  Experimenting with different seeds and listening to the results might give us a clue about how different musical styles work.  Or it might be just as hard to pin down as ever.

Anyway GbH is a genius, even if, or maybe because, I often have no idea what he had in mind in one of his videos.
Logged

blue eyed sailor

  • Melodeon renegade - partly reverted - Preciosa maniac
  • Respected Sage
  • ****
  • Offline Offline
  • Posts: 264
  • since folk process is running, take an active part
    • My Sound Cloud
Re: Computer generated Melodeon tune
« Reply #3 on: July 31, 2015, 03:20:07 PM »

Yes - f.i. wondering where the mixolydian progression later on had been coming from...
Logged
Hohners: 2x Preciosa Bb/Eb (tremolo / light swing) - Club IV Bb/Eb - Morino Club C/F
Presswood C/F - Pokerwork C - Verdi II (PA) - Lucia IV (PA) - Starlet (PA)

Weltmeister 509 G/C/F - Juwel (PA) -- Horch C/F (12 bass) -- Cantulia Bambi 26 (PA)
and: Castagnari Giordy G/C

be warned of my SC page, mainly concertina thus far

Pete Dunk

  • Typo Expert
  • Hero Member
  • *****
  • Offline Offline
  • Posts: 3706
Re: Computer generated Melodeon tune
« Reply #4 on: August 01, 2015, 11:19:50 AM »

"Developed and Nurtured by Ben Potton". There's your answer right there then! He's a well known associate of 'Derek the Nutter', 'Jimbo' and 'Selam', a collection of lunatics from the morris community. Now getting himself mixed up with the terminally experimental 'GbH', no good will come of I tell ya!  >:E :M :|glug
Logged
Squeezing on the Isle of Oxney, UK
Primo (Serenellini) D/G
Isis D/G
Hohner B/E, G/C, C/F, Bb/Eb G/C/F
Liliputs D/G (G scale), C/F, Bb/Eb, Albrecht Custom D/G (G scale)

GBbox

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 615
Re: Computer generated Melodeon tune
« Reply #5 on: August 01, 2015, 11:22:04 AM »

The so called generative programs, and in general those using the fractals or other mathematical functions to generate musical data, aren't the only choice. Also, even if you can end up with some inspiring raw melodic material to manipulate, it's unlikely you'll be able to generate structured compositions resembling a folk tune. They usually produce music that falls in the avant-garde category – say the “math” compositions of Iannis Xenakis -, or i8  the ambient genre (Brian Eno's music for airports/elevators/toilets...).

The other approach is to use a number of compositions as a database to deduct rules to apply to the composition process. This way you are more likely to produce music that fits a genre, and even the idiom of a specific composer. The best know example is probably David Cope's Emily Howell (link below), but there are others. The interaction of the men with the machine in composing is inversely proportional to the level of detail of the analysis.

http://www.bbc.com/future/story/20140808-music-like-never-heard-before

I assume the free/cheap programs currently available to composer music mainly work relying on a simplified similar approach – basic diatonic harmony rules, predefined rhythmic patterns, frequency of the appearance of the notes in a given key/genre...

It would be nice to know which program has been used to generate the tune in the video... maybe we could ask it to the (hem...) author? To me, it's sound more like the fruit of a program like Microwork CAMPS, that strictly speaking is not a composition tool, but offers a re-composition function that could produce interesting variants of a given melody. Or even like one of the counterpoint voices generated by Tonica Fugata.

Given this, I dare say that a huge quantity of the music that's currently produced – even if the humans that claim to be the copyright holder will never admit it – hes been written, or at lest co-written, by some computer software. Not to tell that the border between a computer generated composition and an arrangement is vague, and there are programs like Band in a Box that claim to do both (don't think much of the Irish tunes produced with it I had a chance to listen to, but the ragtimes really sound excellent!). If this is not the case in the folk music world, I fear that's just because of the conservative attitude of the majority of the musicians toward the computers.
Logged

Broadland Boy

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 1243
  • Awful noises from Pokerwork, HA114G, BbEb Liliputs
Re: Computer generated Melodeon tune
« Reply #6 on: August 02, 2015, 01:00:03 AM »

Tonight, I think I will sleep UNDER the bed.

Ah, you progressed to watching 'The Final Plough', 'Strange Practice' or similar then Grape Ape ?

GbH's abilities and inventiveness are the antithesis of mine, as a younger person I wished I could play the melodeon really badly, sadly, those in charge of granting such things must have paid more attention to punctuation than myself  :(
Logged
Richard A
Venit ventus contrarius ventus egrediente,
Omnes prope quid ventum est circa

Ben Potton

  • Member
  • *
  • Offline Offline
  • Posts: 6
Re: Computer generated Melodeon tune
« Reply #7 on: August 10, 2015, 07:44:17 AM »

Hello all,

I'm afraid I'm the one responsible for this program. Thank you for your interest in it. I thought I'd take this opportunity to clear up some misconceptions and explain a little on how it works.

First off, it's not a fractal music generator or anything like that. I've not given it any rules on how music (or Irish music in particular) works, there are no seeds (if I understand what you mean by that term). It's a recurrent neural network which learns the probability of which characters follow other characters in a piece of text. The closest system you probably use everyday is the auto complete on an IPhone, where you can keep pressing the suggested word and it will generate some random sentence. By being trained on a large amount of input data it can effectively learn the grammar of a format like ABC, along with the common strings of characters you get in an "Irish abc tune"

It has no knowledge of musical structure, it is trained on pure text ABC, and outputs pure ABC (including header fields and titles). You simply tell it how many characters of text you want and it happily whirs away outputting tune after tune. It generates Irish music because there is a huge amount of training material easily accessible on the web. I used a combination of all the reels from the most popular collections (thesession, norbeck etc...) which amounted to around 10,000 tunes (some being duplicates or variations).

Yes is does produce a load of old guff as well as the more interesting tunes, so that's where the human input comes in. It has a surprisingly reasonable hit rate though. It's pretty hard to tell how it works after it has been trained, as neural networks are effectively a black box. You can get some inkling of what its doing under the hood by analysing some of the mistakes it makes, and by checking out the kind of tune titles it generates.

So anyway, its an interesting project but I don't quite think we're ready to hand over our composition duties to our robot overlords quite yet. However if you write very generic tunes you may well be worried.

If anyone has any further questions (or would like some tunes written!) let me know,
Ben
Logged

Nick Collis Bird

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 3785
  • Been squeezing melodeons for over 48 years (badly)
Re: Computer generated Melodeon tune
« Reply #8 on: August 10, 2015, 08:22:39 AM »

Wow! Welcome to the Forum Ben. What a great addition to our ever knowledgable world wide gang you are.
Logged
Has anyone heard of the song. “ Broken Alarm-clock Blues” ? It starts   â€œI woke up this Afternoon”

blue eyed sailor

  • Melodeon renegade - partly reverted - Preciosa maniac
  • Respected Sage
  • ****
  • Offline Offline
  • Posts: 264
  • since folk process is running, take an active part
    • My Sound Cloud
Re: Computer generated Melodeon tune
« Reply #9 on: August 10, 2015, 10:19:10 AM »

Ben, this is amazing stuff..!

I seem to understand that you're not giving the network any further information - be it extra random seed or, say, increase of uncommon phrasing or modulating...

Would that be a way to go in order to expect more imagination or novelty then?

Best wishes - Wolf
Logged
Hohners: 2x Preciosa Bb/Eb (tremolo / light swing) - Club IV Bb/Eb - Morino Club C/F
Presswood C/F - Pokerwork C - Verdi II (PA) - Lucia IV (PA) - Starlet (PA)

Weltmeister 509 G/C/F - Juwel (PA) -- Horch C/F (12 bass) -- Cantulia Bambi 26 (PA)
and: Castagnari Giordy G/C

be warned of my SC page, mainly concertina thus far

Ben Potton

  • Member
  • *
  • Offline Offline
  • Posts: 6
Re: Computer generated Melodeon tune
« Reply #10 on: August 10, 2015, 10:53:40 AM »

Yes it does have an element of randomness (and a seed in this regards). You can choose how 'safe' you want the results to be, and getting this value right appears to be key. Too high and it strays away from listenable music (and often valid ABC), and too low it can result in plagiarism, or some very odd and interesting mistakes. So at any point in the output, it will have a probability value for each character that could be output next. As an example if you're at the start of a tune and the current character is 'X' you have an extremely high probability that the next character will be ':'. Later on, in the tune data or the title field for instance, you'll have a range of possible characters with a range of probabilities assigned to each one.

As an indication of how the system works, and the use of randomness in generation, I had an early run where I trained on a much smaller data set, and chose a very safe output. In one tune this resulted in the program getting stuck on a particular sequence of four notes. I seem to remember this being a simple arpeggio or similar that you hear often in Irish music. It had presumably learned that this particular phrase is often repeated, so that's what it decided to do, again and again, in fact around 60 times or so in the middle of the tune, after which it promptly stopped and continued with the rest of the tune. It's the crazy stuff like this that gives you insight into how the generation works.
Logged

Broadland Boy

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 1243
  • Awful noises from Pokerwork, HA114G, BbEb Liliputs
Re: Computer generated Melodeon tune
« Reply #11 on: August 10, 2015, 11:37:08 AM »

Absolutely fascinating Ben, thanks for coming up and giving us an idea of how it works.

Would you consider this type of learning as similar to muscle memory?
Logged
Richard A
Venit ventus contrarius ventus egrediente,
Omnes prope quid ventum est circa

brazilian.BOX

  • Respected Sage
  • ****
  • Offline Offline
  • Posts: 416
  • youtube search: 8 baixos
Logged
The Brazilian chromatic tuning: www.youtube.com/watch?v=HwLF1tH3q5Y

Ben Potton

  • Member
  • *
  • Offline Offline
  • Posts: 6
Re: Computer generated Melodeon tune
« Reply #13 on: August 10, 2015, 12:48:41 PM »

It's an interesting thought. I've considered this a bit already, and I actually think this form of music generation isn't a million miles away from how some humans would approach the task. In my opinion composition is largely a remixing task, rather than the generation of truly unique content. A great composer of Irish music for instance has to be completely immersed in the tradition, with a head full of the kind of phrases and turns that are a signature of the style. The composition process is then a case of evaluating the possible opportunities at each point in the tune, and then picking from their library of phrases. The truly great composers would then incorporate their own particular stylistic elements, which I think is a more directed task. You can hear this quite clearly with someone like Liz Carroll for instance, with lots of extremely familiar Irish motives, but always a unique twist in there somewhere which makes it undeniably a Liz Carroll tune.

Compared to a human, this program falls down in three main areas.

Firstly, the complexity of the network doesn't appear to be great enough to keep track of some higher level elements of the tune, such as the structure. This means it can end up putting in extra bars where it shouldn't for instance. This isn't surprising as deducing the correlation between musical length of a chunk of ABC and the text is actually quite difficult.

It can't really evaluate how pleasing a tune or phrase is, apart from knowing how often it appears in other tunes. A human might make a judgement call that a particular phrase is too clichéd, or too quirky.

It can't really add that extra unique twist in a directed way, although the random element does mean it sometimes comes up with some surprisingly inventive tunes.

If anyone's interested I'll stick up some additional tunes it created.
« Last Edit: August 10, 2015, 12:55:08 PM by Ben Potton »
Logged

blue eyed sailor

  • Melodeon renegade - partly reverted - Preciosa maniac
  • Respected Sage
  • ****
  • Offline Offline
  • Posts: 264
  • since folk process is running, take an active part
    • My Sound Cloud
Re: Computer generated Melodeon tune
« Reply #14 on: August 10, 2015, 12:51:12 PM »

If anyone's interested I'll stick up some additional tunes it created.

Yes, please do so...!
Logged
Hohners: 2x Preciosa Bb/Eb (tremolo / light swing) - Club IV Bb/Eb - Morino Club C/F
Presswood C/F - Pokerwork C - Verdi II (PA) - Lucia IV (PA) - Starlet (PA)

Weltmeister 509 G/C/F - Juwel (PA) -- Horch C/F (12 bass) -- Cantulia Bambi 26 (PA)
and: Castagnari Giordy G/C

be warned of my SC page, mainly concertina thus far

Ben Potton

  • Member
  • *
  • Offline Offline
  • Posts: 6
Re: Computer generated Melodeon tune
« Reply #15 on: August 10, 2015, 01:40:55 PM »

Ok, here's a small selection of tunes. I've generally chosen the ones that sound the most convincing, or that are reasonably interesting in some way. If you look at the titles it generates, you can get some idea of what it might be doing with the music. BTW I've not checked these thoroughly to see if they are plagarised, so bear that in mind.

I really like this rather odd tune. I did cheat a little by removing the C part which was pretty ropey.  I recorded a rough and ready version of it here (although I think I fudged the E to a more natural sounding F).
https://www.facebook.com/ben.potton/videos/10153505025364258/?l=5008640309213018926
X:9630
T:Chorolie
M:4/4
R:reel
K:Gdor
G,2B,D GFGA|BG~G2 ABGA|BGAF GBdg|1 fdcA G2GE:|2 fdcA G2Bc||
|:d2gd fdgd|fd~d2 efge|d2BG cG~G2|Addc AGFG|
~G2Bd gdBd|g2dg fgag|fdcA BGAF|GBAF G3z||

X:3965
T:Jenny's Reel
M:4/4
R:reel
K:G
G2BG DGBG|AGFD EFGA|BG~G2 Bcde|1 fdcA BGG2:|2 fdcA GABc||
|:dB~B2 GBdB|~G3B defg|agfe dBed|1cAFA G2GG:|2cAFA G2Bd||

X:5505
T:Mintront Road To Coushey
M:4/4
R:Reel
K:Adorian
eA~A2 eddB|~c2Bc AGEG|~A3A ~B3d|cAAG EAAB|
c2Bc AcBA|GE~E2 cBAB|cBcd efge|dBGB cAA2:|
|:ea~a2 c'bag|eaag edcd|ea~a2 c'2ab|c'bag edBd|
c'bag ea~a2|gedB GABd|eaag egdc|BAGB A2AG|

X:972
T:Brench Of The Reel, The
M:4/4
R:reel
K:Ador
A,2EA, G,A,CD|EA,~A,2 EA,CE|DEFG ABce|dBAG FDD2:|
|:defg afdf|gfed edBA|~G3A Beed|eddB A2Bd|
ea~a2 bgaf|g2fg edBd|e2de gedB|ABdf edBA|

Here's an example of a not quite so successful one. The b part has an extra bar in it.

X:5091
T:Mrivereass
M:4/4
R:Reel
K:Dmixolydian
AD~D2 AGFA|dcAG FDDC|DEFG AddB|cAGE FDD2:|
|:dg~g2 ag~g2|fdcA AGGB|cA~A2 GAFA|dg~g2 dggf|dcAF G2:|
Logged

blue eyed sailor

  • Melodeon renegade - partly reverted - Preciosa maniac
  • Respected Sage
  • ****
  • Offline Offline
  • Posts: 264
  • since folk process is running, take an active part
    • My Sound Cloud
Re: Computer generated Melodeon tune
« Reply #16 on: August 10, 2015, 02:14:17 PM »

Thank's a lot Ben!

Having had a glimpse at "Mintront Road To Coushey" (because I immediately fancied the title) it might be said that it's sort of promising; guess I will give it a try in the evening..., and maybe try out the some more of them...

Maybe one's a winner as is, or requiring resp. allowing some accomodation or variation - who knows?

Best wishes - Wolf
Logged
Hohners: 2x Preciosa Bb/Eb (tremolo / light swing) - Club IV Bb/Eb - Morino Club C/F
Presswood C/F - Pokerwork C - Verdi II (PA) - Lucia IV (PA) - Starlet (PA)

Weltmeister 509 G/C/F - Juwel (PA) -- Horch C/F (12 bass) -- Cantulia Bambi 26 (PA)
and: Castagnari Giordy G/C

be warned of my SC page, mainly concertina thus far

blue eyed sailor

  • Melodeon renegade - partly reverted - Preciosa maniac
  • Respected Sage
  • ****
  • Offline Offline
  • Posts: 264
  • since folk process is running, take an active part
    • My Sound Cloud
Re: Computer generated Melodeon tune
« Reply #17 on: August 11, 2015, 08:44:17 AM »

Too tired from work to play any tune last evening - the human factor in dealing with computer-generated music...  :|glug

Scheduled for this evening once again...

Best wishes - Wolf
Logged
Hohners: 2x Preciosa Bb/Eb (tremolo / light swing) - Club IV Bb/Eb - Morino Club C/F
Presswood C/F - Pokerwork C - Verdi II (PA) - Lucia IV (PA) - Starlet (PA)

Weltmeister 509 G/C/F - Juwel (PA) -- Horch C/F (12 bass) -- Cantulia Bambi 26 (PA)
and: Castagnari Giordy G/C

be warned of my SC page, mainly concertina thus far

Matt (Kings Norton)

  • Respected Sage
  • ****
  • Offline Offline
  • Posts: 304
  • West Midlands, UK
Re: Computer generated Melodeon tune
« Reply #18 on: August 23, 2015, 08:27:50 PM »

Well this is unsolicited, unauthorised and the playing is of no value but I found some evidence today of the mrs's involvement with computer generated music in the 1970s, and I liked the title of this one, a bit of Finnegans Wake, maybe a reference to Tony Macmahon's opinions of popularisations of the music, and a bit of radiography, so here's what I did with my first half hour on any box this year. http://youtu.be/jZpxaBaaZvc
« Last Edit: August 23, 2015, 09:25:14 PM by matt vrs »
Logged

gettabettabox

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 684
Re: Computer generated Melodeon tune
« Reply #19 on: August 23, 2015, 09:47:49 PM »

Well this is unsolicited, unauthorised and the playing is of no value but I found some evidence today of the mrs's involvement with computer generated music in the 1970s, and I liked the title of this one, a bit of Finnegans Wake, maybe a reference to Tony Macmahon's opinions of popularisations of the music, and a bit of radiography, so here's what I did with my first half hour on any box this year. http://youtu.be/jZpxaBaaZvc

29 minutes and 43 seconds of my life spared.  ;)
Logged
Pages: [1] 2   Go Up
 


Melodeon.net - (c) Theo Gibb; Clive Williams 2010. The access and use of this website and forum featuring these terms and conditions constitutes your acceptance of these terms and conditions.
SimplePortal 2.3.5 © 2008-2012, SimplePortal