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
590
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
320
TokyoR#84_Rexams
nonki1974
0
210
都道府県別焼き鳥屋ランキングの作成
nonki1974
1
900
Introduction to R
nonki1974
0
350
Introduction to dplyr
nonki1974
0
530
Introduction to ggplot2
nonki1974
1
520
introduction to fukuoka.R @ Fukuoka.LT
nonki1974
0
69
所要時間のヒートマップを作成する
nonki1974
0
560
gtfsr package @ fukuoka.R #11
nonki1974
0
340
Featured
See All Featured
The State of eCommerce SEO: How to Win in Today's Products SERPs - #SEOweek
aleyda
2
9.2k
Become a Pro
speakerdeck
PRO
31
5.8k
Bootstrapping a Software Product
garrettdimon
PRO
307
120k
HU Berlin: Industrial-Strength Natural Language Processing with spaCy and Prodigy
inesmontani
PRO
0
120
Exploring anti-patterns in Rails
aemeredith
2
220
We Have a Design System, Now What?
morganepeng
54
8k
More Than Pixels: Becoming A User Experience Designer
marktimemedia
2
270
Primal Persuasion: How to Engage the Brain for Learning That Lasts
tmiket
0
200
How to Think Like a Performance Engineer
csswizardry
28
2.4k
Navigating Algorithm Shifts & AI Overviews - #SMXNext
aleyda
0
1.1k
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
49
3.3k
Navigating the moral maze — ethical principles for Al-driven product design
skipperchong
1
220
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!!