0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

なんでもナイトコアにする2

Last updated at Posted at 2021-12-08

これの続き

# 今回やること
早くした上でさらにピッチを上げる

なんかこれでやった実装でピッチ上がったから流用する

ナイトコアにする

ピッチ上げて早くする

import librosa
import soundfile as sf
import pydub
from pydub import AudioSegment

path = "motoneta.mp3"
path_pitchup = "pitchup.wav"
path_nightcore = "nightcore.mp3"

# ピッチあげる
y, sr   = librosa.load(path , mono=True)
y_slow  = librosa.effects.time_stretch(y, 0.5)
sf.write(path_pitchup, y_slow, 44100, format='wav', subtype='PCM_24')

#早くする
base_sound = AudioSegment.from_file(path_pitchup, format="wav")
base_sound = base_sound.speedup(playback_speed=2, crossfade=0)
base_sound.export(path_nightcore, format="mp3")

おしまい

聞いてみた

ゴミ

原曲

今後の展望

リミックスの加工は主に原曲の再生速度を数%速くして、テンポとピッチを上げている

wikiに書いてあるのこれだけど、これ以上なんかやることあるかな?
音的なところでなんかあったらコメントください

あとなんかyoutubeのナイトコア動画のサムネみたいな画像作ってみようかな

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?