Class: Spotted::Models::AudioAnalysisRetrieveResponse::Track
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Spotted::Models::AudioAnalysisRetrieveResponse::Track
- Defined in:
- lib/spotted/models/audio_analysis_retrieve_response.rb
Overview
Instance Attribute Summary collapse
-
#analysis_channels ⇒ Integer?
The number of channels used for analysis.
-
#analysis_sample_rate ⇒ Integer?
The sample rate used to decode and analyze this track.
-
#code_version ⇒ Float?
A version number for the Echo Nest Musical Fingerprint format used in the codestring field.
-
#codestring ⇒ String?
An [Echo Nest Musical Fingerprint (ENMFP)](academiccommons.columbia.edu/doi/10.7916/D8Q248M4) codestring for this track.
-
#duration ⇒ Float?
Length of the track in seconds.
-
#echoprint_version ⇒ Float?
A version number for the EchoPrint format used in the echoprintstring field.
-
#echoprintstring ⇒ String?
An [EchoPrint](github.com/spotify/echoprint-codegen) codestring for this track.
-
#end_of_fade_in ⇒ Float?
The time, in seconds, at which the track’s fade-in period ends.
-
#key ⇒ Integer?
The key the track is in.
-
#key_confidence ⇒ Float?
The confidence, from 0.0 to 1.0, of the reliability of the ‘key`.
-
#loudness ⇒ Float?
The overall loudness of a track in decibels (dB).
-
#mode ⇒ Integer?
Mode indicates the modality (major or minor) of a track, the type of scale from which its melodic content is derived.
-
#mode_confidence ⇒ Float?
The confidence, from 0.0 to 1.0, of the reliability of the ‘mode`.
-
#num_samples ⇒ Integer?
The exact number of audio samples analyzed from this track.
-
#offset_seconds ⇒ Integer?
An offset to the start of the region of the track that was analyzed.
-
#rhythm_version ⇒ Float?
A version number for the Rhythmstring used in the rhythmstring field.
-
#rhythmstring ⇒ String?
A Rhythmstring for this track.
-
#sample_md5 ⇒ String?
This field will always contain the empty string.
-
#start_of_fade_out ⇒ Float?
The time, in seconds, at which the track’s fade-out period starts.
-
#synch_version ⇒ Float?
A version number for the Synchstring used in the synchstring field.
-
#synchstring ⇒ String?
A [Synchstring](github.com/echonest/synchdata) for this track.
-
#tempo ⇒ Float?
The overall estimated tempo of a track in beats per minute (BPM).
-
#tempo_confidence ⇒ Float?
The confidence, from 0.0 to 1.0, of the reliability of the ‘tempo`.
-
#time_signature ⇒ Integer?
An estimated time signature.
-
#time_signature_confidence ⇒ Float?
The confidence, from 0.0 to 1.0, of the reliability of the ‘time_signature`.
-
#window_seconds ⇒ Integer?
The length of the region of the track was analyzed, if a subset of the track was analyzed.
Instance Method Summary collapse
-
#initialize(analysis_channels: nil, analysis_sample_rate: nil, code_version: nil, codestring: nil, duration: nil, echoprint_version: nil, echoprintstring: nil, end_of_fade_in: nil, key: nil, key_confidence: nil, loudness: nil, mode: nil, mode_confidence: nil, num_samples: nil, offset_seconds: nil, rhythm_version: nil, rhythmstring: nil, sample_md5: nil, start_of_fade_out: nil, synch_version: nil, synchstring: nil, tempo: nil, tempo_confidence: nil, time_signature: nil, time_signature_confidence: nil, window_seconds: nil) ⇒ Object
constructor
Some parameter documentations has been truncated, see Track for more details.
Methods inherited from Internal::Type::BaseModel
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(analysis_channels: nil, analysis_sample_rate: nil, code_version: nil, codestring: nil, duration: nil, echoprint_version: nil, echoprintstring: nil, end_of_fade_in: nil, key: nil, key_confidence: nil, loudness: nil, mode: nil, mode_confidence: nil, num_samples: nil, offset_seconds: nil, rhythm_version: nil, rhythmstring: nil, sample_md5: nil, start_of_fade_out: nil, synch_version: nil, synchstring: nil, tempo: nil, tempo_confidence: nil, time_signature: nil, time_signature_confidence: nil, window_seconds: nil) ⇒ Object
Some parameter documentations has been truncated, see Spotted::Models::AudioAnalysisRetrieveResponse::Track for more details.
|
|
# File 'lib/spotted/models/audio_analysis_retrieve_response.rb', line 570
|
Instance Attribute Details
#analysis_channels ⇒ Integer?
The number of channels used for analysis. If 1, all channels are summed together to mono before analysis.
396 |
# File 'lib/spotted/models/audio_analysis_retrieve_response.rb', line 396 optional :analysis_channels, Integer |
#analysis_sample_rate ⇒ Integer?
The sample rate used to decode and analyze this track. May differ from the actual sample rate of this track available on Spotify.
403 |
# File 'lib/spotted/models/audio_analysis_retrieve_response.rb', line 403 optional :analysis_sample_rate, Integer |
#code_version ⇒ Float?
A version number for the Echo Nest Musical Fingerprint format used in the codestring field.
410 |
# File 'lib/spotted/models/audio_analysis_retrieve_response.rb', line 410 optional :code_version, Float |
#codestring ⇒ String?
An [Echo Nest Musical Fingerprint (ENMFP)](academiccommons.columbia.edu/doi/10.7916/D8Q248M4) codestring for this track.
418 |
# File 'lib/spotted/models/audio_analysis_retrieve_response.rb', line 418 optional :codestring, String |
#duration ⇒ Float?
Length of the track in seconds.
424 |
# File 'lib/spotted/models/audio_analysis_retrieve_response.rb', line 424 optional :duration, Float |
#echoprint_version ⇒ Float?
A version number for the EchoPrint format used in the echoprintstring field.
430 |
# File 'lib/spotted/models/audio_analysis_retrieve_response.rb', line 430 optional :echoprint_version, Float |
#echoprintstring ⇒ String?
An [EchoPrint](github.com/spotify/echoprint-codegen) codestring for this track.
437 |
# File 'lib/spotted/models/audio_analysis_retrieve_response.rb', line 437 optional :echoprintstring, String |
#end_of_fade_in ⇒ Float?
The time, in seconds, at which the track’s fade-in period ends. If the track has no fade-in, this will be 0.0.
444 |
# File 'lib/spotted/models/audio_analysis_retrieve_response.rb', line 444 optional :end_of_fade_in, Float |
#key ⇒ Integer?
The key the track is in. Integers map to pitches using standard [Pitch Class notation](en.wikipedia.org/wiki/Pitch_class). E.g. 0 = C, 1
C♯/D♭, 2 = D, and so on. If no key was detected, the value is -1.
452 |
# File 'lib/spotted/models/audio_analysis_retrieve_response.rb', line 452 optional :key, Integer |
#key_confidence ⇒ Float?
The confidence, from 0.0 to 1.0, of the reliability of the ‘key`.
458 |
# File 'lib/spotted/models/audio_analysis_retrieve_response.rb', line 458 optional :key_confidence, Float |
#loudness ⇒ Float?
The overall loudness of a track in decibels (dB). Loudness values are averaged across the entire track and are useful for comparing relative loudness of tracks. Loudness is the quality of a sound that is the primary psychological correlate of physical strength (amplitude). Values typically range between -60 and 0 db.
468 |
# File 'lib/spotted/models/audio_analysis_retrieve_response.rb', line 468 optional :loudness, Float |
#mode ⇒ Integer?
Mode indicates the modality (major or minor) of a track, the type of scale from which its melodic content is derived. Major is represented by 1 and minor is 0.
475 |
# File 'lib/spotted/models/audio_analysis_retrieve_response.rb', line 475 optional :mode, Integer |
#mode_confidence ⇒ Float?
The confidence, from 0.0 to 1.0, of the reliability of the ‘mode`.
481 |
# File 'lib/spotted/models/audio_analysis_retrieve_response.rb', line 481 optional :mode_confidence, Float |
#num_samples ⇒ Integer?
The exact number of audio samples analyzed from this track. See also ‘analysis_sample_rate`.
488 |
# File 'lib/spotted/models/audio_analysis_retrieve_response.rb', line 488 optional :num_samples, Integer |
#offset_seconds ⇒ Integer?
An offset to the start of the region of the track that was analyzed. (As the entire track is analyzed, this should always be 0.)
495 |
# File 'lib/spotted/models/audio_analysis_retrieve_response.rb', line 495 optional :offset_seconds, Integer |
#rhythm_version ⇒ Float?
A version number for the Rhythmstring used in the rhythmstring field.
501 |
# File 'lib/spotted/models/audio_analysis_retrieve_response.rb', line 501 optional :rhythm_version, Float |
#rhythmstring ⇒ String?
A Rhythmstring for this track. The format of this string is similar to the Synchstring.
508 |
# File 'lib/spotted/models/audio_analysis_retrieve_response.rb', line 508 optional :rhythmstring, String |
#sample_md5 ⇒ String?
This field will always contain the empty string.
514 |
# File 'lib/spotted/models/audio_analysis_retrieve_response.rb', line 514 optional :sample_md5, String |
#start_of_fade_out ⇒ Float?
The time, in seconds, at which the track’s fade-out period starts. If the track has no fade-out, this should match the track’s length.
521 |
# File 'lib/spotted/models/audio_analysis_retrieve_response.rb', line 521 optional :start_of_fade_out, Float |
#synch_version ⇒ Float?
A version number for the Synchstring used in the synchstring field.
527 |
# File 'lib/spotted/models/audio_analysis_retrieve_response.rb', line 527 optional :synch_version, Float |
#synchstring ⇒ String?
A [Synchstring](github.com/echonest/synchdata) for this track.
533 |
# File 'lib/spotted/models/audio_analysis_retrieve_response.rb', line 533 optional :synchstring, String |
#tempo ⇒ Float?
The overall estimated tempo of a track in beats per minute (BPM). In musical terminology, tempo is the speed or pace of a given piece and derives directly from the average beat duration.
541 |
# File 'lib/spotted/models/audio_analysis_retrieve_response.rb', line 541 optional :tempo, Float |
#tempo_confidence ⇒ Float?
The confidence, from 0.0 to 1.0, of the reliability of the ‘tempo`.
547 |
# File 'lib/spotted/models/audio_analysis_retrieve_response.rb', line 547 optional :tempo_confidence, Float |
#time_signature ⇒ Integer?
An estimated time signature. The time signature (meter) is a notational convention to specify how many beats are in each bar (or measure). The time signature ranges from 3 to 7 indicating time signatures of “3/4”, to “7/4”.
555 |
# File 'lib/spotted/models/audio_analysis_retrieve_response.rb', line 555 optional :time_signature, Integer |
#time_signature_confidence ⇒ Float?
The confidence, from 0.0 to 1.0, of the reliability of the ‘time_signature`.
561 |
# File 'lib/spotted/models/audio_analysis_retrieve_response.rb', line 561 optional :time_signature_confidence, Float |
#window_seconds ⇒ Integer?
The length of the region of the track was analyzed, if a subset of the track was analyzed. (As the entire track is analyzed, this should always be 0.)
568 |
# File 'lib/spotted/models/audio_analysis_retrieve_response.rb', line 568 optional :window_seconds, Integer |