PageRenderTime 333ms CodeModel.GetById 211ms app.highlight 4ms RepoModel.GetById 117ms app.codeStats 0ms

/flash/echo-nest-flash-api/src/com/ryanberdeen/echonest/api/v3/track/Segment.as

http://echo-nest-remix.googlecode.com/
ActionScript | 86 lines | 60 code | 17 blank | 9 comment | 0 complexity | 2aa3a5dc3b2b08dff0a539acebcefa1c MD5 | raw file
 1/*
 2 * Copyright 2009 Ryan Berdeen. All rights reserved.
 3 * Distributed under the terms of the MIT License.
 4 * See accompanying file LICENSE.txt
 5 */
 6
 7package com.ryanberdeen.echonest.api.v3.track {
 8  /**
 9  * @see TrackApi#processSegmentsResponse()
10  * @see http://developer.echonest.com/docs/method/get_segments/
11  */
12  public class Segment {
13    private var _start:Number;
14    private var _duration:Number;
15    private var _startLoudness:Number;
16    private var _endLoudness:Number;
17    private var _maxLoudness:Number;
18    private var _maxLoudnessTimeOffset:Number;
19    private var _pitches:Array;
20    private var _timbre:Array;
21
22    public function get start():Number {
23      return _start;
24    }
25
26    public function set start(start:Number):void {
27      _start = start;
28    }
29
30    public function get duration():Number {
31      return _duration;
32    }
33
34    public function set duration(duration:Number):void {
35      _duration = duration;
36    }
37
38    public function get startLoudness():Number {
39      return _startLoudness;
40    }
41
42    public function set startLoudness(startLoudness:Number):void {
43      _startLoudness = startLoudness;
44    }
45
46    public function get endLoudness():Number {
47      return _endLoudness;
48    }
49
50    public function set endLoudness(endLoudness:Number):void {
51      _endLoudness = endLoudness;
52    }
53
54    public function get maxLoudness():Number {
55      return _maxLoudness;
56    }
57
58    public function set maxLoudness(maxLoudness:Number):void {
59      _maxLoudness = maxLoudness;
60    }
61
62    public function get maxLoudnessTimeOffset():Number {
63      return _maxLoudnessTimeOffset;
64    }
65
66    public function set maxLoudnessTimeOffset(maxLoudnessTimeOffset:Number):void {
67      _maxLoudnessTimeOffset = maxLoudnessTimeOffset;
68    }
69
70    public function get pitches():Array {
71      return _pitches;
72    }
73
74    public function set pitches(pitches:Array):void {
75      _pitches = pitches;
76    }
77
78    public function get timbre():Array {
79      return _timbre;
80    }
81
82    public function set timbre(timbre:Array):void {
83      _timbre = timbre;
84    }
85  }
86}