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
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
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
610
gtfsr package @ fukuoka.R #11
nonki1974
0
370
Featured
See All Featured
SEOcharity - Dark patterns in SEO and UX: How to avoid them and build a more ethical web
sarafernandez
0
290
Art, The Web, and Tiny UX
lynnandtonic
304
22k
Testing 201, or: Great Expectations
jmmastey
46
8.3k
Building an army of robots
kneath
307
47k
The Straight Up "How To Draw Better" Workshop
denniskardys
239
140k
Leveraging Curiosity to Care for An Aging Population
cassininazir
1
520
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
9
1.6k
Organizational Design Perspectives: An Ontology of Organizational Design Elements
kimpetersen
PRO
1
840
GraphQLとの向き合い方2022年版
quramy
50
15k
Git: the NoSQL Database
bkeepers
PRO
432
67k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
141
35k
Data-driven link building: lessons from a $708K investment (BrightonSEO talk)
szymonslowik
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!!