File:Mel-scale from 200 to 1500, in intervals of 50.ogg

Mel-scale_from_200_to_1500,_in_intervals_of_50.ogg(Ogg Vorbis sound file, length 14 s, 21 kbps, file size: 34 KB)

Captions

Captions

Mel-scale from 200 to 1500, in intervals of 50.

Summary

edit
Description
English: Mel-scale from 200 to 1500, in intervals of 50. Each note is played as a sine-wave, for 0.5 seconds.

```python import numpy as np from pydub import AudioSegment

def mel_to_hz(m):

 return (10**(m/2595) - 1)*700

sample_rate = 44100 duration = 0.5

samples = [] for freq in [mel_to_hz(m) for m in range(200, 1501, 50)]:

 sample = (np.sin(2*np.pi*np.arange(sample_rate*duration)*freq/sample_rate)*32767).astype(np.int16)
 samples.append(sample)

samples = np.concatenate(samples)

  1. Create audio segment from the samples

audio = AudioSegment(samples.tobytes(), frame_rate=sample_rate, sample_width=samples.dtype.itemsize, channels=1) audio

```
Date
Source Own work
Author Cosmia Nebula

Licensing

edit
I, the copyright holder of this work, hereby publish it under the following license:
Creative Commons CC-Zero This file is made available under the Creative Commons CC0 1.0 Universal Public Domain Dedication.
The person who associated a work with this deed has dedicated the work to the public domain by waiving all of their rights to the work worldwide under copyright law, including all related and neighboring rights, to the extent allowed by law. You can copy, modify, distribute and perform the work, even for commercial purposes, all without asking permission.

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current21:17, 26 February 202314 s (34 KB)Cosmia Nebula (talk | contribs)Uploaded own work with UploadWizard

There are no pages that use this file.

Transcode status

Update transcode status
Format Bitrate Download Status Encode time
MP3 73 kbps Completed 21:17, 26 February 2023 1.0 s

File usage on other wikis

The following other wikis use this file:

Metadata