This module generates specific PDF content.
guitar_chord();
This generates a guitar chord grid.
ONO::Lib::PDF::Elements::Music->guitar_chord( $canvas, $x1, $y1, $width, $height, $strings, $frets, $top_fret, $tuning, $fingering, $rotate, $weight, $color, $color_dots, $start_fret, $switches, $display );
guitar_chord_rotate();
This generates a rotated guitar chord grid.
ONO::Lib::PDF::Elements::Music->guitar_chord_rotate( $rotate,$orig_x, $orig_y,$orig_w );
guitar_fretboard();
This generates a guitar fretboard.
Not implemented yet
ONO::Lib::PDF::Elements::Music->guitar_fretboard( );
hardware_button();
This generates a music hardware button.
ONO::Lib::PDF::Elements::Music->hardware_button( $canvas, $x1, $y1, $type, $size, $label, $status, $switches );
hardware_fader();
This generates a music hardware fader.
Switches:
-h fader cap height = half of width
status goes from 0 (bottom) to 100 (top), negative = no status
ONO::Lib::PDF::Elements::Music->hardware_fader( $canvas, $x1, $y1, $type, $width, $height, $label, $status, $switches );
hardware_geq();
This generates a music hardware graphics equalizer.
Switches:
-e empty (no fader knobs)
-h fader cap height = half of width
-v v-shape light (5-band only, can be combined with -V)
-V v-shape harder (5-band only, can be combined with -v)
ONO::Lib::PDF::Elements::Music->hardware_geq( $canvas, $x1, $y1, $bands, $width, $height, $label, $status_ref, $switches );
hardware_input();
This generates a music hardware input connector.
ONO::Lib::PDF::Elements::Music->hardware_input( $canvas, $x1, $y1, $type, $size, $label, $status, $switches );
hardware_knob();
This generates a music hardware knob.
ONO::Lib::PDF::Elements::Music->hardware_knob( $canvas, $x1, $y1, $type, $size, $label, $status, $switches );
hardware_led();
This generates a music hardware LED.
ONO::Lib::PDF::Elements::Music->hardware_led( $canvas, $x1, $y1, $type, $size, $label, $status, $switches );
hardware_section();
This generates a music hardware box.
ONO::Lib::PDF::Elements::Music->hardware_section( $canvas, $x1, $y1, $width, $height );
hardware_switch();
This generates a music hardware switch:
status:
-1 = none at all
0 = down, 1 = mid, 2 = up
ONO::Lib::PDF::Elements::Music->hardware_switch( $canvas, $x1, $y1, $type, $size, $label, $status, $switches );
hardware_test();
This is a test for the music hardware display features.
ONO::Lib::PDF::Elements::Music->hardware_test( $canvas, $x1, $y1 );
keyboard();
This generates a music keyboard.
ONO::Lib::PDF::Elements::Music->keyboard( $canvas, $x1, $y1, $width, $height, $keys, $first_key, $fingering, $display_notes );
lines_notes();
This generates a notes line.
Switches:
-k display key (treble)
-K display key (bass)
-s display separator (4 columns)
-S display double separator (left - note that this is NON-STANDARD)
-t display time signature (4/4)
-T display time signature (3/4)
ONO::Lib::PDF::Elements::Music->lines_notes( $canvas, $x1, $y1, $x2, $height, $weight, $color, $cols, $switches, $offset_y_fix );
returns: $DEBUG
lines_tabs();
This generates a guitar tabs line.
Switches:
-N display notes
-s display separator (4 columns)
-S display double separator (left)
-T display "TAB"
ONO::Lib::PDF::Elements::Music->lines_tabs( $canvas, $x1, $y1, $x2, $height, $weight, $color, $cols, $switches );