Jump to content

JulioHerrlein

Members
  • Posts

    809
  • Joined

  • Last visited

Posts posted by JulioHerrlein

  1. Dear All,

     

    I´m looking for some way of retrieving musical information from sets of notes.

    Some problems, for example:

     

    1) This is the first and more needed now:

    Given some UNORDERED amount of pitches, how retrive the prime

     form and/or Forte Number.

    2) How to do this from an existing midi file or XML ? Is t possible to

     retrive the forte number of every "n" notes of the pitch collection (melody or chord)?

    3) Can you circunscribe some notes for analysis in a large file ?
     

    Thanks, everyone !

     

    Best,

    Julio

  2. Hello, Friends !

     

    I'm using the code below to generate combinations of rhythm in 12/8 time signature.

    I'd like to have my XML with correct beaming of the notes, related to the most common

     interpretation of a 12/8 time signature, i. e., beaming every 3 8th notes.

    Instead, I'm getting it more beamed like a 6/4 time signature:

     

    image.png.6fc8554d763712b94a688c70c8359c39.png

    Is there some form of force the right beaming?

     

    All the best !

    Please help this doctorate student !

    Julio

     

    (setf some-pitches (integer-to-pitch (gen-integer-step 7 145 '(0))))
    (setf some-lengths (span some-pitches '(e e e -e -e -e -e -e -e -e -e -e -e e e e -e -e -e -e -e -e -e -e -e -e e e e -e -e -e -e -e -e -e -e -e -e e e e -e -e -e -e -e -e -e -e -e -e e e e -e -e -e -e -e -e -e -e -e -e e e e -e -e -e -e -e -e -e -e -e -e e e e -e -e -e -e -e -e -e -e -e -e e e e -e -e -e -e -e -e -e -e -e -e e e e -e -e -e -e -e -e -e -e -e -e e e e e -e -e -e -e -e -e -e -e -e e e e e -e -e -e -e -e -e -e -e -e e -e - - = = = = = = = = = = - - - = = = = = = = = = = - - - = = = = = = = = = = - - - = = = = = = = = = = - - - = = = = = = = = = = - - - = = = = = = = = = = - - - = = = = = = = = = = - - - = = = = = = = = = = - - - = = = = = = = = = = - - - - = = = = = = = = = - - - - = = = = = = = = = -)))
    ;(setf some-division '(12))
    ;(setf length-div (gen-divide some-division some-lengths))
    (setf time-sig '(12 8))
    (def-score time
               (
                :key-signature 'chromatic
                :time-signature time-sig
                :tempo 112
                :layout (clarinet-layout 'clarinet)
                )

    (clarinet
     :length length-div
     :pitch some-pitches
     :channel 1
     :sound 'gm
     :program 'clarinet
     ))

  3. Thanks a lot, Stephane ! This is great ! And thank you for

     showing me more functions.

    However, there some issues: how to control to get a 12/8 instead of a 6/4?

    Or: how to get always a time signature with x/8 ? Or always

    with a X/4, or mix them ?

    In the example you provide, a 12 generates a 6/4 instead of a 12/8.

    I changed the code a little:

     

    (setf some-pitches (integer-to-pitch (gen-integer-step 7 480 '(0))))

    ;>>> here, because I want to stay in the same note g4
    (setf lengths (span some-pitches '(q q e q q q e)))

    ;>>> here, because I want this specific rhythm, not random sample
    (setf some-division '(21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3))

    ;here, there's that problem of 6/4 versus 12/8 and one more problem occurred because OM stop changing the timesignature after the  number 14 (xml attached) I don't know why.
    (setf length-div (gen-divide some-division some-lengths))
    (setf time-sig (get-time-signature length-div))
    (def-score time
               (
                :key-signature 'chromatic
                :time-signature time-sig
                :tempo 112
                :layout (clarinet-layout 'clarinet)
                )

    (clarinet
     :length lengths
     :pitch some-pitches
     :channel 1
     :sound 'gm
     :program 'clarinet
     ))

     

    Best !!

    Julio

    test_timesigchange21to3.xml

  4. This is even more simple:

     

    (setf pitches '((g4 g4 g4 g4 g4 g4 g4 g4 g4 g4 g4 g4 g4 g4 g4 g4 g4 HERE COMES THE Pitch List :type :pitch)))
    (setf lengths (span pitches '(e -e -e -e HERE COMES THE Rhythm pattern list - same size or less than the pitches)))
    (def-score Stage-1
               (:key-signature 'chromatic
                :time-signature '(4 4) '(1 8)  >>>>>>>> Here is the problem: How to span the content through different Time Signatures using the same rhythm list and pitches ?
                :tempo 80
                :layout (treble-layout 'piano-rh))
     (piano-rh
       :length lengths
       :pitch pitches
       :channel 1
       :sound 'gm
       :program 'clarinet)
    )

  5. Hello, friends !

    I'm trying to make some rhythm patterns and I'd like to use the same pattern

     changing just the time signature order/or sequence.

    For example, assuming an 8th note as the number 1.

    2 2 1 2 2 2 1 (african bembé rhythm) as a pattern.

    This pattern could match in a 12/8 time signature or also

     in a 3/4 time signature. This is ok, no problem.

    But what if I like to span it as a 10/8 + 2/8 or 9/8 + 3/8

     or 7/8 + 5/8 or in a sequence like 3/8 + 2/8 + 4/8 + 3/8 always

     repeating the time signature sequences until have al the notes

     spanned ?

     

    Thanks for help !

    Best !

    Julio

     

    This works for me with ONE time signature only. I need the same

     stuff with a SEQUENCE of time signatures.

     

    (setf padrao '((0 1 2 3)))
    (setf pitches '((g4 g4 g4 g4  HERE COME THE PITCH LIST,  padrao :type :pitch)))
    (setf lengths (span pitches '(e e -e e HERE COMES THE Rhythm pattern list - same size or less than the pitches)))
    (setf text (span pitches padrao))
    
    (def-score Stage-1
               (:key-signature 'chromatic
                :time-signature '(4 4)
                :tempo 80
                :layout (treble-layout 'piano-rh))
     (piano-rh
       :length lengths
       :pitch pitches
       ;text text
       :channel 1
       :sound 'gm
       :program 'clarinet)
    )

     

  6. Dear Friends,

     

    Is there some tutorial covering the basic rhythm notation

     coding, showing how to write the basic code for

     tuplets, beaming, ties, etc ?

     

    For example, here in Lilypond there are a very detailed manual on rhythm coding.

    http://lilypond.org/doc/v2.18/Documentation/notation/writing-rhythms

     

    Is there something similar in Opusmodus ?

    I´m working in a kind translation of Puredata to Opusmodus, so I need the syntax.

     

    Thanks,

    Julio

     

     

×
×
  • Create New...

Important Information

Terms of Use Privacy Policy