class Musicality::LilypondSettings
Constants
- ACCORDIAN
- ACOUSTIC_BASS
- ACOUSTIC_GRAND_PIANO
- ACOUSTIC_GUITAR
- ALTO_SAX
- BARITONE_SAX
- BASSOON
- BRIGHT_ACOUSTIC_PIANO
- CELESTA
- CELLO
- CHURCH_ORGAN
- CLARINET
- CLAVINET
- CONTRABASS
- DISTORTION_GUITAR
- DRAWBAR_ORGAN
- DULCIMER
- ELECTRIC_BASS
- ELECTRIC_GRAND_PIANO
- ELECTRIC_GUITAR
- ELECTRIC_PIANO
- ENGLISH_HORN
- FRENCH_HORN
- FRETLESS_BASS
- GLOCKENSPIEL
- GUITAR_HARMONICS
- HARMONICA
- HARPSICHORD
- HONKY_TONK_PIANO
- MARIMBA
- MUSIC_BOX
- OBOE
- ORCHESTRAL_HARP
- OVERDRIVEN_GUITAR
- PERCUSSIVE_ORGAN
- PICCOLO
- PIZZICATO_STRINGS
- REED_ORGAN
- ROCK_ORGAN
- SLAP_BASS
- SOPRANO_SAX
- STRING_ENSEMBLE
- SYNTH_BASS
- TANGO_ACCORDIAN
- TENOR_SAX
- TIMPANI
- TREMOLO_STRINGS
- TROMBONE
- TRUMPET
- TUBA
- TUBULAR_BELLS
- VIBRAPHONE
- VIOLA
- VIOLIN
- XYLOPHONE
Attributes
clefs[R]
instrument_name[R]
transpose_interval[R]
Public Class Methods
bass(instrument_name, transpose_interval: 0)
click to toggle source
# File lib/musicality/printing/lilypond/lilypond_settings.rb, line 23 def self.bass(instrument_name, transpose_interval: 0) new(instrument_name, clefs: [Clef::BASS], transpose_interval: transpose_interval) end
bass_guitar(instrument_name)
click to toggle source
# File lib/musicality/printing/lilypond/lilypond_settings.rb, line 31 def self.bass_guitar(instrument_name) new(instrument_name, clefs: [Clef::BASS], transpose_interval: 12) end
guitar(instrument_name)
click to toggle source
# File lib/musicality/printing/lilypond/lilypond_settings.rb, line 27 def self.guitar(instrument_name) new(instrument_name, clefs: [Clef::TENOR], transpose_interval: 12) end
new(instrument_name, clefs: [Clef::TREBLE, Clef::BASS], transpose_interval: 0)
click to toggle source
# File lib/musicality/printing/lilypond/lilypond_settings.rb, line 8 def initialize instrument_name, clefs: [Clef::TREBLE, Clef::BASS], transpose_interval: 0 raise ArgumentError unless (clefs & CLEFS) == clefs @instrument_name = instrument_name @clefs = clefs @transpose_interval = transpose_interval end
treble(instrument_name, transpose_interval: 0)
click to toggle source
# File lib/musicality/printing/lilypond/lilypond_settings.rb, line 19 def self.treble(instrument_name, transpose_interval: 0) new(instrument_name, clefs: [Clef::TREBLE], transpose_interval: transpose_interval) end
treble_bass(instrument_name, transpose_interval: 0)
click to toggle source
# File lib/musicality/printing/lilypond/lilypond_settings.rb, line 15 def self.treble_bass(instrument_name, transpose_interval: 0) new(instrument_name, clefs: [Clef::TREBLE, Clef::BASS], transpose_interval: transpose_interval) end