Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Analyzing PSB tracks with R
Search
nonki1974
April 06, 2019
640
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Analyzing PSB tracks with R
nonki1974
April 06, 2019
More Decks by nonki1974
See All by nonki1974
GTFS with Tidytransit package
nonki1974
0
350
TokyoR#84_Rexams
nonki1974
0
240
都道府県別焼き鳥屋ランキングの作成
nonki1974
1
940
Introduction to R
nonki1974
0
400
Introduction to dplyr
nonki1974
0
570
Introduction to ggplot2
nonki1974
1
560
introduction to fukuoka.R @ Fukuoka.LT
nonki1974
0
85
所要時間のヒートマップを作成する
nonki1974
0
620
gtfsr package @ fukuoka.R #11
nonki1974
0
370
Featured
See All Featured
Impact Scores and Hybrid Strategies: The future of link building
tamaranovitovic
0
460
Why You Should Never Use an ORM
jnunemaker
PRO
61
10k
Building Flexible Design Systems
yeseniaperezcruz
330
41k
How to Ace a Technical Interview
jacobian
280
24k
Building a A Zero-Code AI SEO Workflow
portentint
PRO
0
780
We Have a Design System, Now What?
morganepeng
55
8.4k
The #1 spot is gone: here's how to win anyway
tamaranovitovic
4
1.2k
Fantastic passwords and where to find them - at NoRuKo
philnash
53
4k
Hiding What from Whom? A Critical Review of the History of Programming languages for Music
tomoyanonymous
3
1.4k
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
9
1.6k
Paper Plane
katiecoart
PRO
5
54k
Building AI with AI
inesmontani
PRO
1
1.3k
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!!