Class: Musicality::Audition
- Inherits:
-
Object
- Object
- Musicality::Audition
- Defined in:
- lib/musicality/notation/model/audition.rb
Instance Attribute Summary collapse
-
#part_name ⇒ Object
readonly
Returns the value of attribute part_name.
-
#performers ⇒ Object
readonly
Returns the value of attribute performers.
-
#program ⇒ Object
readonly
Returns the value of attribute program.
Instance Method Summary collapse
-
#initialize(part_name, program) ⇒ Audition
constructor
A new instance of Audition.
- #performer(name, supercollider_settings) ⇒ Object
Constructor Details
#initialize(part_name, program) ⇒ Audition
Returns a new instance of Audition.
5 6 7 8 9 |
# File 'lib/musicality/notation/model/audition.rb', line 5 def initialize part_name, program @part_name = part_name @program = program.is_a?(Array) ? program : [program] @performers = {} end |
Instance Attribute Details
#part_name ⇒ Object (readonly)
Returns the value of attribute part_name.
4 5 6 |
# File 'lib/musicality/notation/model/audition.rb', line 4 def part_name @part_name end |
#performers ⇒ Object (readonly)
Returns the value of attribute performers.
4 5 6 |
# File 'lib/musicality/notation/model/audition.rb', line 4 def performers @performers end |
#program ⇒ Object (readonly)
Returns the value of attribute program.
4 5 6 |
# File 'lib/musicality/notation/model/audition.rb', line 4 def program @program end |
Instance Method Details
#performer(name, supercollider_settings) ⇒ Object
11 12 13 |
# File 'lib/musicality/notation/model/audition.rb', line 11 def performer name, supercollider_settings @performers[name] = supercollider_settings end |