NoteWorthy Composer Forum

Forums => General Discussion => Topic started by: Warren Porter on 2009-09-09 01:46 pm

Title: Twelve Tone Row
Post by: Warren Porter on 2009-09-09 01:46 pm
This is the first javascript I have attempted for NWC here (http://www.wjporter.com/nwc/ttr.htm) and will create a twelve tone row starting at middle C.  I may add options for other starting locations, clefs, and note durations later depending on feedback.

I am still a novice at javascript, but some other examples can be found by chopping ttr.htm off the above link (my home page).

Edited change:  Moved my website.

Another edited change:  Again
Title: Re: Twelve Tone Row
Post by: William Ashworth on 2009-09-09 04:58 pm
Hi Warren -

Interesting script, and possibly useful. The NWCtext it generates is missing its header and footer; you might consider adding these, although it's easy enough to add them by hand. Also, the row it generated for me started on B natural rather than middle C. It's probably more accurate to state that it creates a twelve-tone row in the octave from middle C upward.

Just a couple of small suggestions....

Cheers,

Bill
Title: Re: Twelve Tone Row
Post by: Rick G. on 2009-09-09 06:14 pm
It's probably more accurate to state that it creates a twelve-tone row in the octave from middle C upward.
Or that it deals a hand from a 12 card deck consisting of the chromatic scale using sharps...

BTW, the checkbox adds the headers and footers. Perhaps it should be checked by default.
Title: Re: Twelve Tone Row
Post by: Warren Porter on 2009-09-10 02:23 am
I don't have it ready to upload yet, but I have added options for any key and choose your clef.  Including headers and footers is now a default and I dropped the checkbox for that.

Rick, I remembered an algorhythm(sp?) for dealing a card deck which is where I got that means for randomly finding twelve notes.  I see you looked at the source <g>.  Thanks for your interest!

P.S. Also am adding a note duration dropbox.
Title: Re: Twelve Tone Row
Post by: Rick G. on 2009-09-10 08:16 am
P.S. Also am adding a note duration dropbox.
Why bother? It's easier to simply select it in NWC2 and change the duration.
Just because you can doesn't mean that you should.
Title: Re: Twelve Tone Row
Post by: Warren Porter on 2009-09-10 02:40 pm
Why bother? It's easier to simply select it in NWC2 and change the duration.
Just because you can doesn't mean that you should.
Good point.  I changed it (link in 1st post) to allow a choice of the bottom note, but the generated code will be only for the treble clef in quarter notes.
Title: Re: Twelve Tone Row
Post by: William Ashworth on 2009-09-10 05:10 pm
Thanks for the improvements, Warren. This should be fun to play with. My usual practice, when writing 12-tone music (which is most of what I write), is to create the row and the first theme of the work simultaneously, rather than to create a row and then attempt to derive themes from it. This produces a row that is a musical thought rather than a random collection of notes. However, I have bookmarked your tone-row generator, and will try printing a few generated rows out and playing around with them at the piano to see what music may lie within them. Who knows what beauty may lie in that direction?

Cheers,

Bill
Title: Re: Twelve Tone Row
Post by: Warren Porter on 2009-09-11 11:56 am
You're welcome, I appreciate the feedback.

Since putting in the counter, my first four visitors (not counting me) have been from Korea, Australia, Italy, and New Hampshire.
Title: Re: Twelve Tone Row
Post by: Flurmy on 2009-09-11 12:03 pm
Italy? I think I know that one... ;-)
Title: Re: Twelve Tone Row
Post by: Warren Porter on 2009-09-14 12:21 pm
I just added options for inversion and retrograde once a random pattern has been created as well as links to the NoteWorthy website.  We welcome new visitors from Belgium and Connecticut.
Title: Re: Twelve Tone Row
Post by: William Ashworth on 2009-09-14 03:23 pm
Nice, Warren. Any chance you can get it to paste the inversion and retrograde in below the original form, instead of replacing the original?

Another nice enhancement would be to be able to paste NWCtext into the applet's window and let the inversion and retrograde loops work on it.

Cheers,

Bill
Title: Re: Twelve Tone Row
Post by: Christian Carlsson on 2009-09-14 04:58 pm
Maybe your system does not see it, but you have had a visitor from Finland as well :)

Christian
Title: Re: Twelve Tone Row
Post by: Warren Porter on 2009-09-14 05:29 pm
Nice, Warren. Any chance you can get it to paste the inversion and retrograde in below the original form, instead of replacing the original?

Another nice enhancement would be to be able to paste NWCtext into the applet's window and let the inversion and retrograde loops work on it.
I'll try to look into that soon, perhaps generating a text comment between sets.
Title: Re: Twelve Tone Row
Post by: Warren Porter on 2009-09-19 03:28 pm
Nice, Warren. Any chance you can get it to paste the inversion and retrograde in below the original form, instead of replacing the original?

Another nice enhancement would be to be able to paste NWCtext into the applet's window and let the inversion and retrograde loops work on it.
I got in a fresh supply of round tuits and made a few of those of changes.

Cheers
Title: Re: Twelve Tone Row
Post by: Warren Porter on 2010-02-18 05:18 am
Another nice enhancement would be to be able to paste NWCtext into the applet's window and let the inversion and retrograde loops work on it.
It can be changed to accept a user's twelve notes if they are all on the treble clef, accidentals are forced (naturals and sharps only), and twelve contiguous notes must be between middle C and the first B above the treble staff.  Output would be as it is now (quarter notes), but it could accept notes of any duration.

I just noticed the key selection (bottom note) wasn't working--it read the pull-down window before the user had changed it.  At any rate, it should work now.
Title: Re: Twelve Tone Row
Post by: Warren Porter on 2010-02-19 10:04 pm
I got the ttr (http://www.wjporter.com/nwc/ttr.htm) to accept data from the textarea (or its own output) and show the bottom note in the dropdown if the data are correct.
Title: Re: Twelve Tone Row
Post by: Warren Porter on 2010-03-09 04:18 pm
I added an option to start on the bottom note.