Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Analyzing PSB tracks with R
Search
nonki1974
April 06, 2019
0
580
Analyzing PSB tracks with R
nonki1974
April 06, 2019
Tweet
Share
More Decks by nonki1974
See All by nonki1974
GTFS with Tidytransit package
nonki1974
0
300
TokyoR#84_Rexams
nonki1974
0
200
都道府県別焼き鳥屋ランキングの作成
nonki1974
1
860
Introduction to R
nonki1974
0
330
Introduction to dplyr
nonki1974
0
450
Introduction to ggplot2
nonki1974
1
490
introduction to fukuoka.R @ Fukuoka.LT
nonki1974
0
59
所要時間のヒートマップを作成する
nonki1974
0
520
gtfsr package @ fukuoka.R #11
nonki1974
0
320
Featured
See All Featured
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
3.9k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
35
2.3k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
29
2.7k
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
657
60k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
34
5.9k
Into the Great Unknown - MozCon
thekraken
39
1.9k
Producing Creativity
orderedlist
PRO
346
40k
Learning to Love Humans: Emotional Interface Design
aarron
273
40k
What’s in a name? Adding method to the madness
productmarketing
PRO
23
3.5k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
31
1.2k
Bootstrapping a Software Product
garrettdimon
PRO
307
110k
Fashionably flexible responsive web design (full day workshop)
malarkey
407
66k
Transcript
祝 Pet Shop Boys 来日! @nonki1974 Fukuoka.R#14 2019/04/07
2019年4月1日 日本武道館
None
None
None
spotifyr package API経由でspotifyのDBにアクセス 曲の特徴量を取得できる 曲の再生履歴,再生数の多いアーティスト, アーティストごとの曲リストなど
PSBの全トラックリストを取得 get_artist_audio_features() 関数を使う
None
acousticness 電子音楽(?) 0.0 ------- 1.0 アコースティック
danceability テンポ,リズムの安定性,ビートの強さ,全体の規則性 最も踊れない 0.0 ------- 1.0 最高に踊れる
energy 激しさや活発さを表す知覚尺度 典型的にはenergyの高いトラックは テンポが早く,音が大きく派手である:例えばデスメタル
liveness Audienceの存在を検出 0.8を越えるとライブの可能性が高い
instrumentalness Rap 0.0 ------- 1.0 No vocal
loudness 平均的な音の強さ,大きさ [dB]
mode 0: minor, 1: major
speechiness トラック全体における言葉が話された割合 0.6~1.0:トークショー,オーディオブック,ポエム 0.3~0.6:音楽としゃべりの両方を含む 0~0.3:音楽もしくはしゃべりではないトラック
tempo [BPM]
valence ネガティブ 0.0 ---------- 1.0 ポジティブ
None
クラスタリング
k = 9
クラスターごとの特徴
クラスターごとの特徴
分類木
分類木
例えばクラスター6 acousticness danceability energy valence mode エレクトロな感じでなく 踊れる感じでもなく おとなしくて ちょっと悲しげな
マイナーコード主体の曲
各クラスターごとの プレイリストを作る!
create_playlist() add_tracks_to_playlist() プレイリストの作成 プレイリストへトラックを追加
できた!!!
よろしければお聴きください プレイリスト名 イメージ 再生 PSB_nonki1974_C1 ダンス、ボーカル多め 再生 PSB_nonki1974_C2 ダンス、マイナー 再生
PSB_nonki1974_C3 7のボーカル少なめ 再生 PSB_nonki1974_C4 7より少しおとなしめ 再生 PSB_nonki1974_C5 2のボーカル少なめ 再生 PSB_nonki1974_C6 静か、マイナー 再生 PSB_nonki1974_C7 ビート強め、ダンス 再生 PSB_nonki1974_C8 ネガティブ系 再生 PSB_nonki1974_C9 6のメジャー版 再生 ※ 要Spotifyへのユーザー登録。今月中いっぱいこのまま残します。
Enjoy!!