Jump to content
  • System Functions

     

    opmows-functions.png

     

     

    The first icon on the left brings up all the ‘help’ guidance about the System Functions that form the vocabulary of the scripting language of Opusmodus. To find our way around the many hundreds of words in this dictionary of functions there is a contextual menu: to find, learn about and see / hear examples of what might be useful. By scrolling up and down the list, you will notice that it is organised into groups of functions of similar types. You can see the hierarchy of this organisation, and quickly locate the types of function you require via a contextual menu accessed by right-clicking on the Utilities panel.

     

     

    Ambitus
    Generate:

    • gen-ambitus-series
      ambitus-instrument

    Process:

    • ambitus-chord
      ambitus-field
      ambitus-filter
      ambitus-integer
      ambitus-interval
      ambitus-octaves
      ambitus-remove
      ambitus-rhythmic-unison
      ambitus-scale
      ambitus

    Utilities:

    • find-ambitus

     


    Binary Tools
    Cellular Automaton:

    • cellular-automaton

    Generate:

    • gen-binary-ambitus
      gen-binary-anacrusis
      gen-binary-change
      gen-binary-euclidean
      gen-binary-interval
      gen-binary-length
      gen-binary-remove
      gen-binary-rnd
      gen-binary-row
      gen-binary-series
      gen-binary-sync
      gen-binary

    Layer:

    • binary-layer

    Mapping:

    • binary-length-map
      binary-list-map
      binary-map
      binary-section-map

    Misc:

    • binary-to-section
      section-to-binary

    OMN:

    • gen-euclidean-omn
      gen-rnd-omn

    Position:

    • binary-position

    Quantize:

    • binary-quantize

    Rhythm:

    • binary-rhythm
      euclidean-rhythm

    Variants:

    • binary-variant

     


    Conversions
    Herz:

    • hertz-to-integer
      hertz-to-interval
      hertz-to-midi
      hertz-to-pitch

    Integer:

    • integer-to-hertz
      integer-to-interval
      integer-to-midi
      integer-to-pitch

    Interval:

    • interval-to-hertz
      interval-to-integer
      interval-to-midi
      interval-to-pitch

    MIDI:

    • midi-to-hertz
      midi-to-integer
      midi-to-interval
      midi-to-pitch

    Misc:

    • binary-to-decimal
      cents-to-ratio 
      db-to-linear
      decimal-to-binary
      degree-to-radian
      float-to-ratio
      hertz-to-radian
      linear-to-db
      msec-to-ratio
      radian-to-degree
      radian-to-hertz
      ratio-to-cents
      ratio-to-float
      ratio-to-msec
      ratio-to-sec
      ratio-to-tick
      sec-to-ratio
      tick-to-ratio

    Pitch:

    • pitch-to-hertz
      pitch-to-integer
      pitch-to-interval
      pitch-to-midi
      pitch-to-velocity

     


    Filters
    Generate:

    • gen-filter-ambitus
      gen-filter-anacrusis
      gen-filter-change
      gen-filter-remove

    Process:

    • filter-exclude
      filter-first
      filter-last
      filter-preserve
      filter-remove
      filter-repeat
      filter-tie

     


    Find

    • find-above
      find-below
      find-between
      find-closest
      find-complement
      find-even
      find-everyother
      find-max
      find-min
      find-odd
      find-sum
      find-unique

     


    Generate
    Fractal:

    • gen-mandelbrot

    Process:

    • gen-curve
      gen-direction-series
      gen-eval
      gen-palindrome
      gen-process
      gen-retrograde
      gen-rotate
      gen-surround
      gen-swallow
      gen-transform

    Repeat:

    • gen-repeat-seq
      gen-repeat

    Rubin:

    • gen-rubin-series
      gen-rubin-velocity-series
      gen-rubin-velocity
      gen-rubin

    Scale:

    • gen-sieve
      make-scale

    Symmetrical:

    • gen-multisymmetrical
      gen-symmetrical

    Transition:

    • gen-steps
      gen-transition

    Trim:

    • gen-trim-sum
      gen-trim

     


    Graph Tools

    • length-list-plot
      length-pitch-list-plot
      list-plot
      omn-list-plot
      pitch-list-plot
      velocity-list-plot

     


    Integers
    Generate:

    • gen-accumulate
      gen-integer-seq
      gen-integer-step
      gen-integer

    Percent:

    • percent-amount
      percent

    Transpose:

    • integer-transpose-start
      integer-transpose

    Variants:

    • integer-invert
      integer-normalize
      integer-variant

     


    All Intervals Rows

    • air-group
      air 
      rnd-air

     


    Pitch Class Set

    • directed-interval-vector 
      interval-vector 
      pcs-analysis
      pcs-cardinal
      pcs-complement
      pcs-invert
      pcs-normal-order
      pcs-prime-form
      pcs-sub-power
      pcs-sub-prime-form
      pcs-sub-relation
      pcs-subcomplex 
      pcs-super-sets
      pcs-transpose
      pcs

     


    Rows
    Directions:

    • interval-direction-series-rnd
      interval-direction-series

    Generate:

    • interval-expansion-series
      interval-randomize
      interval-repeat
      interval-series

    Mapping:

    • interval-chordize-to-length
      interval-map

    Modification:

    • interval-ambitus
      interval-insert
      interval-modus

    Scale:

    • interval-scale
      interval-scale2

    Variants:

    • interval-invert
      interval-row-invert
      interval-row-matrix
      interval-row-transpose
      interval-row-variant
      interval-transpose-series
      interval-variant

     


    Twelve Tone
    Analysis:

    • get-form-set 
      twelve-tone-analysis
      twelve-tone-filter 
      twelve-tone-matrix

    Combinations:

    • interpolation
      rosette
      row-group-combination
      row-group-modification
      row-group-rotation-combination
      row-group-rotation
      row-group-rotation6+6
      row-rotation

    Generate:

    • rnd-form-set
      rnd-row

    Hexachord:

    • ac-hexachord-complement-form-set
      gen-ac-hexachord 
      hexachord-complement

    Klangreihen:

    • klangreihen

    Trope:

    • gen-trope
      trope-analysis
      trope-hexachord
      trope-intervals

    Variants:

    • modus
      row-invert
      row-matrix
      row-transpose
      row-variant-segment
      row-variant

     


    L-System

    • length-lsystem
      pitch-lsystem
      rewrite-lsystem

     


    Lengths

    • Alignment:
      length-adjust
      length-align

    Division:

    • length-divide
      length-divide2
      length-divide3

    Generate:

    • gen-length-cartesian
      gen-length-constant
      gen-length-density
      gen-length
      gen-tuplet
      ql

    Mapping:

    • length-delta-map
      length-tempo-map

    Modification:

    • length-augmentation
      length-diminution
      length-expansion-variant
      length-legato
      length-modify
      length-rational-quantize

    Notes & Rests:

    • length-note-remove
      length-rest-invert
      length-rest-remove
      length-rest-series
      length-to-rest
      length-weight

    Time Point System:

    • time-point-system

    Tools:

    • length-fit
      length-merge
      length-note-merge
      length-note-position
      length-note-unique
      length-rest-merge
      length-rest-position
      length-rest-unique
      length-trim

    Variants:

    • length-invert
      length-retrograde
      length-value-invert

    Quantisation:

    • quantize

     


    Mapping
    Distribution:

    • collect-seq
      distribute-seq
      Interleave
      interleave-map

    Length:

    • length-chordize-map
      length-map

    Map:

    • read-map
      replace-pitch-map

    Octave:

    • octave-map

    Pattern:

    • passing-intervals
      pattern-map

    Substitute:

    • def-case
      replace-map
      substitute-map

    Vector:

    • vector-map

     


    Maths
    Adding:

    • x+b
      x+y

    Gamma:

    • digamma
      factorial
      log-of-gamma
      trigamma

    Multiplying:

    • a.x
      a.x+b
      a.x+y
      x.y

    Sequences:

    • add-sequences
      cumulative-sums
      difference
      multiply-sequences

    Subtracting:

    • x-y

    Sum:

    • sum-to-size

       


    MIDI Controllers

    • gen-controller
      gen-dynamic-controller

     


    Noergaar Infinity Series

    • infinity-series

     


    Number Theory

    • factor
      fibonacci
      goldbach
      happy-numbers
      magic-square
      power-of-two
      primes-to
      primes
      pythagorean-triples
      spiral-array
      square
      sum-of-squares

     


    OMN
    Attributes:

    • attribute-map 
      position-attribute

    Eventes:

    • events-analysis 
      filter-events 
      single-events

    Make & Disassemble:

    • disassemble-omn 
      get-articulation
      make-omn
      omn

    Merge Voices:

    • merge-voices 
      dissolve-voices

    Misc:

    • tie-bars

    Reduction:

    • block-chord-reduce

    Replace:

    • omn-replace

     


    Permutation

    • cartesian
      combination
      combination2
      messiaen-permutation
      permute-n
      permute
      power-set
      strawinski-rotation

     


    Pitches
    Chords:

    • chord-closest-path
      chord-inner-remove
      chord-interval-add
      chord-interval-remove
      chord-interval-replace
      chord-inversion
      chord-library
      chord-parallel-invert
      chord-pitch-unique
      chord-relative-path
      chord-variation
      chordize-list
      chordize
      create-chord
      expand-chord-name
      expand-chord

    Generate:

    • gen-chord-series 
      gen-chord
      gen-chord2
      gen-chord3
      gen-cluster

    Invert:

    • pitch-invert-start
      pitch-invert

    Mapping:

    • melodize-to-length
      pitch-replace-to-length
      pitch-variation-to-length

    Mix:

    • pitch-demix
      pitch-fragment
      pitch-mix

    Octaves:

    • rnd-octave
      rnd-octaves

    Ornamentation:

    • pitch-figurate
      pitch-ornament

    Process:

    • pitch-direction-series
      pitch-expansion-series
      pitch-expansion-variant
      pitch-melodize
      pitch-row

    Repeat:

    • pitch-repeat
      pitch-repeat2
      pitch-repeat3
      pitch-repeat4

    Respell:

    • respell

    Transpose:

    • pitch-transpose-n
      pitch-transpose-repeat
      pitch-transpose-rnd
      pitch-transpose-start
      pitch-transpose

    Variants:

    • pitch-rotate
      pitch-variant
      pitch-variation

     


    Position

    • position-filter
      position-insert
      position-item
      position-remove
      position-replace 
      position-swap

     


    Probability
    Brownian Motion:

    • brownian-motion-sample
      gen-brownian-motion

    Evolutionary:

    • gen-crossover
      gen-mutate-population
      gen-mutate
      gen-population

    Gaussian Noise:

    • gen-gaussian-noise

    MA & AR Distribution:

    • gen-ar-time-series
      gen-ma-time-series

    Markov:

    • gen-markov-from-transitions
      gen-markov-transitions
      gen-markov

    Pink Noise:

    • gen-pink-noise
      pink-noise-sample

    Tendency:

    • gen-tendency

    Walk:

    • gen-walk

    Weight:

    • gen-weight

    White Noise:

    • gen-white-noise

     


    Randomisation
    Generate:

    • rnd-centered
      rnd-number
      rnd-round
      rnd-variance
      rnd
      rnd1

    Misc:

    • init-seed 
      prob

    Process:

    • rnd-order
      rnd-pick
      rnd-repeat
      rnd-replace
      rnd-sample-seq
      rnd-sample
      rnd-sum-to-size
      rnd-sum
      rnd-unique

       


    Schillinger Interference

    • axis-plot
      axis-sub-plot
      distributive-cube
      distributive-square
      interference-series
      interference-square
      interference2
      interference3

     


    Signature

    • get-time-signature
      key-signature-length
      modify-time-signature
      omn-to-measure
      omn-to-time-signature
      time-signature-length

     


    Sort

    • gen-sort 
      sort-asc
      sort-count-asc
      sort-count-desc
      sort-desc
      sort-series

     

     

    Snippe

    • snippet

     

    Span

    • get-span
      length-span
      span

     


    Spectral Tools
    Partials:

    • highest-partial
      lowest-partial
      normalize-partials
      partial-divide 
      partial
      remove-partial
      partial-row
      sort-partial

    SPEAR Data Import:

    • import-spectral-spear

    Tuning:

    • get-tuning

     


    Structure
    Assemble:

    • assemble-map
      assemble-section
      assemble-seq
      assemble-subseq

    Bars:

    • find-bar
      insert-bar
      remove-bar
      replace-bar
      split-lengths

    Group:

    • gen-group
      gen-unison

    Mix:

    • gen-collect
      gen-combine
      gen-divide
      gen-fragment
      gen-interleave
      gen-mix
      gen-morph

    Pause:

    • gen-pause

    Section:

    • do-section

    Timeline:

    • do-timeline
      do-timeline2
      section-to-timeline
      timeline-to-section

     


    System
    Layout:

    • layout

    Libraries:

    • create-library
      def-library
      library
      live-coding-midi

    MIDI:

    • display-midi
      midi-destinations

    Notation:

    • display-musicxml

    Playing Techniques:

    • add-program-attributes
      add-text-attributes

    Score:

    • compile-score
      def-score

    Sound Set:

    • def-sound-set

    Tempo:

    • gen-tempo
      make-tempo
      tempo-length

     


    Tonality

    • create-tonality
      expand-tonality
      get-harmonic-path
      harmonic-path
      harmonic-progression
      harmonics
      tonality-map
      tonality-series

     


    Utilities
    Assignment:

    • assign-variable 
      create-assignment

    Count:

    • count-item
      count-repeat
      get-chord-size
      get-count

    External Programs:

    • load-instrument
      musicxml-to-editor

    Flatten:

    • flatten 
      flatten-omn
      mcflatten

    List Operations:

    • 1~100~ 
      decode-seq 
      encode-seq 
      matrix-transpose 
      mclist

    Metronome:

    • metronome

    Misc:

    • apply-eval
      make-alias

    PPrint:

    • pprint-instrument
      pprint-last-score

     


    Vector
    Arrays:

    • build-array
      get-array

    Convert:

    • array-to-list
      array-to-vector
      list-to-vector
      vector-to-length
      vector-to-list
      vector-to-pitch
      vector-to-section
      vector-to-velocity

    Process:

    • vector-add
      vector-append
      vector-multiply
      vector-offset
      vector-range
      vector-round
      vector-smooth
      vector-to-envelope
      vector-to-envelope2

       


    Velocity
    Accent:

    • gen-accent
      

    Dynamic:

    • gen-cresc-dim
      gen-cresc
      gen-dim-cresc
      gen-dim
      gen-dynamic
      velocity-to-dynamic

    Tools:

    • get-velocity
      Variants
      velocity-invert
      velocity-retrograde
      velocity-variant

     


    Wave
    Sawtooth:

    • add-sawtooth-waves
      gen-sawtooth 
      half-sawtooth
      mod-sawtooth-waves

    Sine:

    • add-sine-waves
      gen-sine 
      half-sine
      mod-sine-waves

    Square:

    • add-square-waves
      gen-square 
      half-square
      mod-square-waves

    Triangle:

    • add-triangle-waves
      gen-triangle 
      half-triangle
      mod-triangle-waves

     


    Developer
    Attributes:

    • disjoin-attributes 
      join-attributes

    MIDI:

    • midi-to-score
      show-midi-events
      Number Operations
      abs!
      neg!

    Predicates:

    • ac-hexachordp
      attribute-symbolp 
      contain-attributep
      chordp 
      event-restp
      length-notep
      length-restp
      lengthp
      omn-formp
      pattern-matchp
      pitchp 
      twelve-tone-segmentp
      twelve-tonep
      velocityp

    Random:

    • choose-option 
      random*
      rnd-seed

       

    Misc:

    • ambitus-form
      maybe-omn-decode
      maybe-section

     

×